class.jetpack.php 1 location
|
@@ 3124-3138 (lines=15) @@
|
| 3121 |
|
return true; |
| 3122 |
|
} |
| 3123 |
|
|
| 3124 |
|
function jetpack_menu_order( $menu_order ) { |
| 3125 |
|
$jp_menu_order = array(); |
| 3126 |
|
|
| 3127 |
|
foreach ( $menu_order as $index => $item ) { |
| 3128 |
|
if ( $item != 'jetpack' ) { |
| 3129 |
|
$jp_menu_order[] = $item; |
| 3130 |
|
} |
| 3131 |
|
|
| 3132 |
|
if ( $index == 0 ) { |
| 3133 |
|
$jp_menu_order[] = 'jetpack'; |
| 3134 |
|
} |
| 3135 |
|
} |
| 3136 |
|
|
| 3137 |
|
return $jp_menu_order; |
| 3138 |
|
} |
| 3139 |
|
|
| 3140 |
|
function admin_head() { |
| 3141 |
|
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
|
@@ 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 |