diff options
Diffstat (limited to 'plugins/jetpack/class.jetpack-admin.php')
-rw-r--r-- | plugins/jetpack/class.jetpack-admin.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/jetpack/class.jetpack-admin.php b/plugins/jetpack/class.jetpack-admin.php index 14020c4a..cce0b2ba 100644 --- a/plugins/jetpack/class.jetpack-admin.php +++ b/plugins/jetpack/class.jetpack-admin.php @@ -252,15 +252,26 @@ class Jetpack_Admin { function admin_menu_debugger() { Jetpack_Debugger::disconnect_and_redirect(); - $debugger_hook = add_submenu_page( null, __( 'Jetpack Debugging Center', 'jetpack' ), '', 'manage_options', 'jetpack-debugger', array( $this, 'debugger_page' ) ); + $debugger_hook = add_submenu_page( + null, + __( 'Debugging Center', 'jetpack' ), + '', + 'manage_options', + 'jetpack-debugger', + array( $this, 'wrap_debugger_page' ) + ); add_action( "admin_head-$debugger_hook", array( 'Jetpack_Debugger', 'jetpack_debug_admin_head' ) ); } - function debugger_page() { + function wrap_debugger_page( ) { nocache_headers(); if ( ! current_user_can( 'manage_options' ) ) { die( '-1' ); } + Jetpack_Admin_Page::wrap_ui( array( $this, 'debugger_page' ) ); + } + + function debugger_page() { Jetpack_Debugger::jetpack_debug_display_handler(); } } |