Skip to content

Commit

Permalink
only queues cron and add a page if it's an event.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Aug 30, 2023
1 parent 3b44be1 commit 0a1fdd4
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ function load() {
return;
}

require_once get_includes_path() . 'cron.php';

if ( WORDCAMP_ROOT_BLOG_ID === get_current_blog_id() ) {
require_once get_includes_path() . 'admin-page.php';
}

// We only want to admin panel on central, nothing else.
if ( ! is_wordcamp_type( 'next-gen' ) ) {
return;
}

require_once get_includes_path() . 'cron.php';

add_action( 'init', __NAMESPACE__ . '\maybe_activate_on_current_site' );
}

Expand Down

0 comments on commit 0a1fdd4

Please sign in to comment.