CRM-19154 SOAP auth for WP - reprise of CRM-13007
authorAndrew Hunt <andrew@aghstrategies.com>
Fri, 29 Jul 2016 19:04:06 +0000 (15:04 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Fri, 29 Jul 2016 19:05:05 +0000 (15:05 -0400)
----------------------------------------
* CRM-19154: SOAP Authentication Fails on WP
  https://issues.civicrm.org/jira/browse/CRM-19154
* CRM-13007: SOAP authentication fails on WP with CCRM 4.3+
  https://issues.civicrm.org/jira/browse/CRM-13007

CRM/Utils/SoapServer.php

index 223f8f014dade6ddc0f4c2a72358c56c48a8ab5e..2357d34dcbd48b9516fcfc7ff32b50c27fe162ac 100644 (file)
@@ -117,7 +117,8 @@ class CRM_Utils_SoapServer {
   public function authenticate($name, $pass, $loadCMSBootstrap = FALSE) {
     require_once str_replace('_', DIRECTORY_SEPARATOR, $this->ufClass) . '.php';
 
-    if ($this->ufClass == 'CRM_Utils_System_Joomla') {
+    if ($this->ufClass == 'CRM_Utils_System_Joomla'
+      || $this->ufClass == 'CRM_Utils_System_WordPress') {
       $loadCMSBootstrap = TRUE;
     }