@@ 58-61 (lines=4) @@ | ||
55 | * @since 4.3.0 |
|
56 | */ |
|
57 | function jetpack_add_dashboard_sub_nav_item() { |
|
58 | if ( ( new Status() )->is_offline_mode() || Jetpack::is_connection_ready() ) { |
|
59 | add_submenu_page( 'jetpack', __( 'Dashboard', 'jetpack' ), __( 'Dashboard', 'jetpack' ), 'jetpack_admin_page', 'jetpack#/dashboard', '__return_null' ); |
|
60 | remove_submenu_page( 'jetpack', 'jetpack' ); |
|
61 | } |
|
62 | } |
|
63 | ||
64 | /** |
|
@@ 74-76 (lines=3) @@ | ||
71 | if ( ! ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! current_user_can( 'jetpack_connect' ) ) { |
|
72 | return; |
|
73 | } |
|
74 | if ( ( ( new Status() )->is_offline_mode() || Jetpack::is_connection_ready() ) && current_user_can( 'edit_posts' ) ) { |
|
75 | add_submenu_page( 'jetpack', __( 'Settings', 'jetpack' ), __( 'Settings', 'jetpack' ), 'jetpack_admin_page', 'jetpack#/settings', '__return_null' ); |
|
76 | } |
|
77 | } |
|
78 | ||
79 | function add_fallback_head_meta() { |