CRM-15629, more cleanup
authorkurund <kurund@civicrm.org>
Mon, 18 May 2015 06:38:12 +0000 (12:08 +0530)
committerkurund <kurund@civicrm.org>
Mon, 18 May 2015 06:38:12 +0000 (12:08 +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 8f7df4a9aa383df38effe8b641004f3be91e8094..2ab8a2eae2ebf261e1c9b9fab85263e252bbe4ba 100644 (file)
@@ -62,7 +62,7 @@ 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)) {
+    if (!defined('ABSPATH') || !defined('WPINC')) {
       require_once 'CRM/Utils/System.php';
       CRM_Utils_System::loadBootStrap();
     }