From: kurund Date: Mon, 18 May 2015 06:35:53 +0000 (+0530) Subject: CRM-15629, more cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4fdd4bc92d9d77d0decf71ece5c14412d563d9b7;p=civicrm-core.git CRM-15629, more cleanup ---------------------------------------- * CRM-15629: Paypal IPN not working on Wordpress the first time https://issues.civicrm.org/jira/browse/CRM-15629 --- diff --git a/CRM/Core/Permission/WordPress.php b/CRM/Core/Permission/WordPress.php index 8c5e6cf57c..8f7df4a9aa 100644 --- a/CRM/Core/Permission/WordPress.php +++ b/CRM/Core/Permission/WordPress.php @@ -62,10 +62,6 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base { // During some extern/* calls we don't bootstrap CMS hence // below constants are not set. In such cases, we don't need to // check permission, hence directly return TRUE - if (!defined('ABSPATH') || !defined('WPINC')) { - return TRUE; - } - if (!defined(ABSPATH) || !defined(WPINC)) { require_once 'CRM/Utils/System.php'; CRM_Utils_System::loadBootStrap();