From 9663c7c5b3fa629dc347567fcda0403a981df111 Mon Sep 17 00:00:00 2001 From: Christian Wach Date: Fri, 27 Nov 2020 16:13:53 +0000 Subject: [PATCH] dev/core#2213 Protect against 404s when wpBasePage is mixed case --- CRM/Utils/System/WordPress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index f13ad38830..72a2a9cdf2 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -24,7 +24,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { * Get a normalized version of the wpBasePage. */ public static function getBasePage() { - return rtrim(Civi::settings()->get('wpBasePage'), '/'); + return strtolower(rtrim(Civi::settings()->get('wpBasePage'), '/')); } /** -- 2.25.1