Making WordPress.org


Ignore:
Timestamp:
05/12/2016 08:02:37 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Set WordCamp posts to Closed after the event is over.

File:
1 edited

Legend:

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

    r2898 r3126  
    5151
    5252        // Require admin files.
    53         if ( is_admin() ) {
     53        if ( is_admin() || 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() )
     61        if ( ! is_admin() && ! DOING_CRON ) {
    6262            return;
     63        }
    6364
    6465        // Create admin
Note: See TracChangeset for help on using the changeset viewer.