dev/core#2213 Protect against 404s when wpBasePage is mixed case
authorChristian Wach <needle@haystack.co.uk>
Fri, 27 Nov 2020 16:13:53 +0000 (16:13 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 30 Nov 2020 21:56:40 +0000 (08:56 +1100)
CRM/Utils/System/WordPress.php

index f13ad3883035fa22d9a7fb56bb4a62b560919673..72a2a9cdf2a2546eb119cf2586d60c8f14854232 100644 (file)
@@ -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'), '/'));
   }
 
   /**