_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
|
@@ 98-110 (lines=13) @@
|
95 |
|
. "</script>"; |
96 |
|
} |
97 |
|
|
98 |
|
function jetpack_menu_order( $menu_order ) { |
99 |
|
$jp_menu_order = array(); |
100 |
|
|
101 |
|
foreach ( $menu_order as $index => $item ) { |
102 |
|
if ( $item != 'jetpack' ) |
103 |
|
$jp_menu_order[] = $item; |
104 |
|
|
105 |
|
if ( $index == 0 ) |
106 |
|
$jp_menu_order[] = 'jetpack'; |
107 |
|
} |
108 |
|
|
109 |
|
return $jp_menu_order; |
110 |
|
} |
111 |
|
|
112 |
|
// Render the configuration page for the module if it exists and an error |
113 |
|
// screen if the module is not configurable |
class.jetpack.php 1 location
|
@@ 3157-3171 (lines=15) @@
|
3154 |
|
return true; |
3155 |
|
} |
3156 |
|
|
3157 |
|
function jetpack_menu_order( $menu_order ) { |
3158 |
|
$jp_menu_order = array(); |
3159 |
|
|
3160 |
|
foreach ( $menu_order as $index => $item ) { |
3161 |
|
if ( $item != 'jetpack' ) { |
3162 |
|
$jp_menu_order[] = $item; |
3163 |
|
} |
3164 |
|
|
3165 |
|
if ( $index == 0 ) { |
3166 |
|
$jp_menu_order[] = 'jetpack'; |
3167 |
|
} |
3168 |
|
} |
3169 |
|
|
3170 |
|
return $jp_menu_order; |
3171 |
|
} |
3172 |
|
|
3173 |
|
function admin_head() { |
3174 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |