Skip to content

Commit

Permalink
Jetpack Menu: Moves Stats to the top. (#39061)
Browse files Browse the repository at this point in the history
  • Loading branch information
lezama authored Aug 25, 2024
1 parent 0ce65bf commit d2a46b6
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: patch
Type: other

moves stats to the top of the Jetpack menu
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/modules/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function stats_admin_menu() {
} else {
// Enable the new Odyssey Stats experience.
$stats_dashboard = new Stats_Dashboard();
$hook = Admin_Menu::add_menu( __( 'Stats', 'jetpack' ), __( 'Stats', 'jetpack' ), 'view_stats', 'stats', array( $stats_dashboard, 'render' ) );
$hook = Admin_Menu::add_menu( __( 'Stats', 'jetpack' ), __( 'Stats', 'jetpack' ), 'view_stats', 'stats', array( $stats_dashboard, 'render' ), 1 );
add_action( "load-$hook", array( $stats_dashboard, 'admin_init' ) );
}
}
Expand Down

0 comments on commit d2a46b6

Please sign in to comment.