| @@ -248,20 +248,9 @@ | ||
| 248 | 248 | if ( ! Stats_Options::get_option( 'enable_odyssey_stats' ) || isset( $_GET['noheader'] ) ) { |
| 249 | 249 | // Show old Jetpack Stats interface for: |
| 250 | 250 | // - When the "enable_odyssey_stats" option is disabled. |
| 251 | 251 | // - When being shown in the adminbar outside of wp-admin. |
| 252 | - $hook = Admin_Menu::add_menu( | |
| 253 | - __( 'Stats', 'jetpack' ), | |
| 254 | - __( 'Stats', 'jetpack' ), | |
| 255 | - 'view_stats', | |
| 256 | - 'stats', | |
| 257 | - 'jetpack_admin_ui_stats_report_page_wrapper', | |
| 258 | - null, | |
| 259 | - array( | |
| 260 | - 'product' => 'stats', | |
| 261 | - 'key' => 'jetpack-stats', | |
| 262 | - ) | |
| 263 | - ); | |
| 252 | + $hook = Admin_Menu::add_menu( __( 'Stats', 'jetpack' ), __( 'Stats', 'jetpack' ), 'view_stats', 'stats', 'jetpack_admin_ui_stats_report_page_wrapper' ); | |
| 264 | 253 | add_action( "load-$hook", 'stats_reports_load' ); |
| 265 | 254 | } else { |
| 266 | 255 | // Enable the new Odyssey Stats experience. |
| 267 | 256 | Stats_Dashboard::init(); |