| @@ 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 |
|
| @@ 3864-3878 (lines=15) @@ | ||
| 3861 | wp_enqueue_style( 'jetpack-icons' ); |
|
| 3862 | } |
|
| 3863 | ||
| 3864 | function jetpack_menu_order( $menu_order ) { |
|
| 3865 | $jp_menu_order = array(); |
|
| 3866 | ||
| 3867 | foreach ( $menu_order as $index => $item ) { |
|
| 3868 | if ( $item != 'jetpack' ) { |
|
| 3869 | $jp_menu_order[] = $item; |
|
| 3870 | } |
|
| 3871 | ||
| 3872 | if ( $index == 0 ) { |
|
| 3873 | $jp_menu_order[] = 'jetpack'; |
|
| 3874 | } |
|
| 3875 | } |
|
| 3876 | ||
| 3877 | return $jp_menu_order; |
|
| 3878 | } |
|
| 3879 | ||
| 3880 | function admin_head() { |
|
| 3881 | if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |
|