CRM-15629, more cleanup
authorkurund <kurund@civicrm.org>
Mon, 18 May 2015 06:35:53 +0000 (12:05 +0530)
committerkurund <kurund@civicrm.org>
Mon, 18 May 2015 06:35:53 +0000 (12:05 +0530)
----------------------------------------
* CRM-15629: Paypal IPN not working on Wordpress the first time
  https://issues.civicrm.org/jira/browse/CRM-15629

CRM/Core/Permission/WordPress.php

index 8c5e6cf57c78c7ac08960c8ab2a6ef766881c4f0..8f7df4a9aa383df38effe8b641004f3be91e8094 100644 (file)
@@ -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();