----------------------------------------
* CRM-15629: Paypal IPN not working on Wordpress the first time
https://issues.civicrm.org/jira/browse/CRM-15629
return TRUE;
}
+ // During some extern/* calls we don't bootstrap CMS hence
+ // below constants are not set, so those cases, we don't need to
+ // check permission, hence return TRUE
+ if (!defined('ABSPATH') || !defined('WPINC')) {
+ return TRUE;
+ }
+
require_once ABSPATH . WPINC . '/pluggable.php';
// for administrators give them all permissions