Skip to content

Commit

Permalink
Load Stats on Simple sites during admin_menu hook (#36712)
Browse files Browse the repository at this point in the history
* Load Stats on admin_menu for Simple sites

* changelog
  • Loading branch information
DustyReagan authored Apr 3, 2024
1 parent bddbeb9 commit efa4b81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Load Stats on admin_menu hook for Simple sites so Jetpack menu loads for admin-menu API
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function init() {
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
add_action( 'plugins_loaded', array( __CLASS__, 'load_verbum_comments' ) );
add_action( 'wp_loaded', array( __CLASS__, 'load_verbum_comments_admin' ) );
add_action( 'plugins_loaded', array( __CLASS__, 'load_wpcom_simple_odyssey_stats' ) );
add_action( 'admin_menu', array( __CLASS__, 'load_wpcom_simple_odyssey_stats' ) );
}

// Unified navigation fix for changes in WordPress 6.2.
Expand Down

0 comments on commit efa4b81

Please sign in to comment.