class.jetpack.php 1 location
|
@@ 3491-3505 (lines=15) @@
|
3488 |
|
return true; |
3489 |
|
} |
3490 |
|
|
3491 |
|
function jetpack_menu_order( $menu_order ) { |
3492 |
|
$jp_menu_order = array(); |
3493 |
|
|
3494 |
|
foreach ( $menu_order as $index => $item ) { |
3495 |
|
if ( $item != 'jetpack' ) { |
3496 |
|
$jp_menu_order[] = $item; |
3497 |
|
} |
3498 |
|
|
3499 |
|
if ( $index == 0 ) { |
3500 |
|
$jp_menu_order[] = 'jetpack'; |
3501 |
|
} |
3502 |
|
} |
3503 |
|
|
3504 |
|
return $jp_menu_order; |
3505 |
|
} |
3506 |
|
|
3507 |
|
function admin_head() { |
3508 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |
_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
|
@@ 92-104 (lines=13) @@
|
89 |
|
. "</script>"; |
90 |
|
} |
91 |
|
|
92 |
|
function jetpack_menu_order( $menu_order ) { |
93 |
|
$jp_menu_order = array(); |
94 |
|
|
95 |
|
foreach ( $menu_order as $index => $item ) { |
96 |
|
if ( $item != 'jetpack' ) |
97 |
|
$jp_menu_order[] = $item; |
98 |
|
|
99 |
|
if ( $index == 0 ) |
100 |
|
$jp_menu_order[] = 'jetpack'; |
101 |
|
} |
102 |
|
|
103 |
|
return $jp_menu_order; |
104 |
|
} |
105 |
|
|
106 |
|
// Render the configuration page for the module if it exists and an error |
107 |
|
// screen if the module is not configurable |