class.jetpack.php 1 location
|
@@ 3877-3891 (lines=15) @@
|
| 3874 |
|
return true; |
| 3875 |
|
} |
| 3876 |
|
|
| 3877 |
|
function jetpack_menu_order( $menu_order ) { |
| 3878 |
|
$jp_menu_order = array(); |
| 3879 |
|
|
| 3880 |
|
foreach ( $menu_order as $index => $item ) { |
| 3881 |
|
if ( $item != 'jetpack' ) { |
| 3882 |
|
$jp_menu_order[] = $item; |
| 3883 |
|
} |
| 3884 |
|
|
| 3885 |
|
if ( $index == 0 ) { |
| 3886 |
|
$jp_menu_order[] = 'jetpack'; |
| 3887 |
|
} |
| 3888 |
|
} |
| 3889 |
|
|
| 3890 |
|
return $jp_menu_order; |
| 3891 |
|
} |
| 3892 |
|
|
| 3893 |
|
function admin_head() { |
| 3894 |
|
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
|
@@ 76-88 (lines=13) @@
|
| 73 |
|
echo '</noscript>'; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
function jetpack_menu_order( $menu_order ) { |
| 77 |
|
$jp_menu_order = array(); |
| 78 |
|
|
| 79 |
|
foreach ( $menu_order as $index => $item ) { |
| 80 |
|
if ( $item != 'jetpack' ) |
| 81 |
|
$jp_menu_order[] = $item; |
| 82 |
|
|
| 83 |
|
if ( $index == 0 ) |
| 84 |
|
$jp_menu_order[] = 'jetpack'; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
return $jp_menu_order; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
// Render the configuration page for the module if it exists and an error |
| 91 |
|
// screen if the module is not configurable |