_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
|
@@ 81-93 (lines=13) @@
|
78 |
|
echo '</noscript>'; |
79 |
|
} |
80 |
|
|
81 |
|
function jetpack_menu_order( $menu_order ) { |
82 |
|
$jp_menu_order = array(); |
83 |
|
|
84 |
|
foreach ( $menu_order as $index => $item ) { |
85 |
|
if ( $item != 'jetpack' ) |
86 |
|
$jp_menu_order[] = $item; |
87 |
|
|
88 |
|
if ( $index == 0 ) |
89 |
|
$jp_menu_order[] = 'jetpack'; |
90 |
|
} |
91 |
|
|
92 |
|
return $jp_menu_order; |
93 |
|
} |
94 |
|
|
95 |
|
// Render the configuration page for the module if it exists and an error |
96 |
|
// screen if the module is not configurable |
class.jetpack.php 1 location
|
@@ 3071-3085 (lines=15) @@
|
3068 |
|
return true; |
3069 |
|
} |
3070 |
|
|
3071 |
|
function jetpack_menu_order( $menu_order ) { |
3072 |
|
$jp_menu_order = array(); |
3073 |
|
|
3074 |
|
foreach ( $menu_order as $index => $item ) { |
3075 |
|
if ( $item != 'jetpack' ) { |
3076 |
|
$jp_menu_order[] = $item; |
3077 |
|
} |
3078 |
|
|
3079 |
|
if ( $index == 0 ) { |
3080 |
|
$jp_menu_order[] = 'jetpack'; |
3081 |
|
} |
3082 |
|
} |
3083 |
|
|
3084 |
|
return $jp_menu_order; |
3085 |
|
} |
3086 |
|
|
3087 |
|
function admin_head() { |
3088 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |