diff --git a/projects/plugins/jetpack/changelog/update-jetpack-menu-order-stats-first b/projects/plugins/jetpack/changelog/update-jetpack-menu-order-stats-first new file mode 100644 index 0000000000000..9cd02b3b1b79d --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-jetpack-menu-order-stats-first @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +moves stats to the top of the Jetpack menu diff --git a/projects/plugins/jetpack/modules/stats.php b/projects/plugins/jetpack/modules/stats.php index bfaa0a3495636..20b7175e6f7d0 100644 --- a/projects/plugins/jetpack/modules/stats.php +++ b/projects/plugins/jetpack/modules/stats.php @@ -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' ) ); } }