From b6c54d162343d59baf40c7720eb4275509efc3cf Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Mon, 8 Jul 2013 13:38:17 +0530 Subject: [PATCH] CRM-13007 fix --- CRM/Utils/SoapServer.php | 6 +++--- CRM/Utils/System/WordPress.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Utils/SoapServer.php b/CRM/Utils/SoapServer.php index 8a580d3082..a0c39fedf7 100644 --- a/CRM/Utils/SoapServer.php +++ b/CRM/Utils/SoapServer.php @@ -124,9 +124,9 @@ 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'){ - $loadCMSBootstrap = true; + + if ($this->ufClass == 'CRM_Utils_System_Joomla' || $this->ufClass == 'CRM_Utils_System_WordPress'){ + $loadCMSBootstrap = TRUE; } eval('$result =& ' . $this->ufClass . '::authenticate($name, $pass, $loadCMSBootstrap );'); diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 3a840ddeb0..e38c63dc8a 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -361,7 +361,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { $config = CRM_Core_Config::singleton(); if ($loadCMSBootstrap) { - self::loadBootstrap($name, $password); + $config->userSystem->loadBootStrap($name, $password); } $user = wp_authenticate($name, $password); -- 2.25.1