_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
|
@@ 90-102 (lines=13) @@
|
87 |
|
. "</script>"; |
88 |
|
} |
89 |
|
|
90 |
|
function jetpack_menu_order( $menu_order ) { |
91 |
|
$jp_menu_order = array(); |
92 |
|
|
93 |
|
foreach ( $menu_order as $index => $item ) { |
94 |
|
if ( $item != 'jetpack' ) |
95 |
|
$jp_menu_order[] = $item; |
96 |
|
|
97 |
|
if ( $index == 0 ) |
98 |
|
$jp_menu_order[] = 'jetpack'; |
99 |
|
} |
100 |
|
|
101 |
|
return $jp_menu_order; |
102 |
|
} |
103 |
|
|
104 |
|
// Render the configuration page for the module if it exists and an error |
105 |
|
// screen if the module is not configurable |
class.jetpack.php 1 location
|
@@ 3887-3901 (lines=15) @@
|
3884 |
|
return true; |
3885 |
|
} |
3886 |
|
|
3887 |
|
function jetpack_menu_order( $menu_order ) { |
3888 |
|
$jp_menu_order = array(); |
3889 |
|
|
3890 |
|
foreach ( $menu_order as $index => $item ) { |
3891 |
|
if ( $item != 'jetpack' ) { |
3892 |
|
$jp_menu_order[] = $item; |
3893 |
|
} |
3894 |
|
|
3895 |
|
if ( $index == 0 ) { |
3896 |
|
$jp_menu_order[] = 'jetpack'; |
3897 |
|
} |
3898 |
|
} |
3899 |
|
|
3900 |
|
return $jp_menu_order; |
3901 |
|
} |
3902 |
|
|
3903 |
|
function admin_head() { |
3904 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |