Making WordPress.org

Changeset 3133


Ignore:
Timestamp:
05/13/2016 07:51:37 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Check if DOING_CRON is defined before accessing it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-loader.php

    r3126 r3133  
    5151
    5252        // Require admin files.
    53         if ( is_admin() || DOING_CRON ) {
     53        if ( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) ) {
    5454            require_once ( WCPT_DIR . 'wcpt-admin.php' );
    5555            require_once ( WCPT_DIR . 'wcpt-wordcamp/wordcamp-admin.php' );
     
    5959    function core_admin() {
    6060        // Quick admin check
    61         if ( ! is_admin() && ! DOING_CRON ) {
     61        if ( ! is_admin() && ( ! defined( 'DOING_CRON' ) || ! DOING_CRON ) ) {
    6262            return;
    6363        }
Note: See TracChangeset for help on using the changeset viewer.