From f25b78a49d01f20e40f96445f234952b414e2eec Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Thu, 2 May 2019 16:00:19 -0400 Subject: [PATCH] wordpress#26 - fix REST --- CRM/Utils/System/WordPress.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 5beecc51ea..acc0a88b05 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -472,9 +472,6 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { $name = CRM_Utils_Array::value('name', $params); $pass = CRM_Utils_Array::value('pass', $params); - if (isset($params['uid'])) { - throw new \RuntimeException("Not implemented WordPress::loadBootStrap([uid=>\$num]))"); - } if (!defined('WP_USE_THEMES')) { define('WP_USE_THEMES', FALSE); @@ -500,7 +497,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { CRM_Core_Config::singleton()->userSystem->setMySQLTimeZone(); } require_once $cmsRootPath . DIRECTORY_SEPARATOR . 'wp-includes/pluggable.php'; - $uid = CRM_Utils_Array::value('uid', $name); + $uid = CRM_Utils_Array::value('uid', $params); if (!$uid) { $name = $name ? $name : trim(CRM_Utils_Array::value('name', $_REQUEST)); $pass = $pass ? $pass : trim(CRM_Utils_Array::value('pass', $_REQUEST)); -- 2.25.1