*/
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 );');
$config = CRM_Core_Config::singleton();
if ($loadCMSBootstrap) {
- self::loadBootstrap($name, $password);
+ $config->userSystem->loadBootStrap($name, $password);
}
$user = wp_authenticate($name, $password);