Skip to content

Commit

Permalink
Merge pull request #197 from Automattic/fix/loading-on-hook
Browse files Browse the repository at this point in the history
Stop loading on a hook
  • Loading branch information
philipjohn committed Sep 23, 2015
2 parents c4c0de0 + b58b89f commit 34ba2e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions liveblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,10 +1103,6 @@ private static function is_wp_too_old() {
return version_compare( $wp_version, self::min_wp_version, '<' );
}
}

function wpcom_liveblog_load() {
WPCOM_Liveblog::load();
}
add_action( 'plugins_loaded', 'wpcom_liveblog_load', 999 );
WPCOM_Liveblog::load();

endif;

0 comments on commit 34ba2e0

Please sign in to comment.