projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c25d29
)
dev/core#2213 Protect against 404s when wpBasePage is mixed case
author
Christian Wach
<needle@haystack.co.uk>
Fri, 27 Nov 2020 16:13:53 +0000
(16:13 +0000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Mon, 30 Nov 2020 21:56:40 +0000
(08:56 +1100)
CRM/Utils/System/WordPress.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/System/WordPress.php
b/CRM/Utils/System/WordPress.php
index f13ad3883035fa22d9a7fb56bb4a62b560919673..72a2a9cdf2a2546eb119cf2586d60c8f14854232 100644
(file)
--- 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'), '/')
);
}
/**