From: kcristiano <kcristiano@tadpole.cc> Date: Tue, 22 Jul 2014 01:33:47 +0000 (-0400) Subject: CRM-15023 - Fatal errors thrown on Event Info, registration, Contribution Pages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=29f6fbb7c7c2c08aeb29db98d512709b64b7e51f;p=civicrm-core.git CRM-15023 - Fatal errors thrown on Event Info, registration, Contribution Pages Simple workaround to ensure that pluggable.php is loaded before we check capabilities in WordPress --- diff --git a/CRM/Core/Permission/WordPress.php b/CRM/Core/Permission/WordPress.php index e0f0acb776..dac689daaf 100644 --- a/CRM/Core/Permission/WordPress.php +++ b/CRM/Core/Permission/WordPress.php @@ -46,6 +46,7 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base { * @access public */ function check($str) { + require_once ABSPATH . WPINC . '/pluggable.php'; // Generic cms 'administer users' role tranlates to 'administrator' WordPress role $str = $this->translatePermission($str, 'WordPress', array( 'administer users' => 'administrator',