| @@ 130-142 (lines=13) @@ | ||
| 127 | return $module_name; |
|
| 128 | } |
|
| 129 | ||
| 130 | function jetpack_menu_order( $menu_order ) { |
|
| 131 | $jp_menu_order = array(); |
|
| 132 | ||
| 133 | foreach ( $menu_order as $index => $item ) { |
|
| 134 | if ( $item != 'jetpack' ) |
|
| 135 | $jp_menu_order[] = $item; |
|
| 136 | ||
| 137 | if ( $index == 0 ) |
|
| 138 | $jp_menu_order[] = 'jetpack'; |
|
| 139 | } |
|
| 140 | ||
| 141 | return $jp_menu_order; |
|
| 142 | } |
|
| 143 | ||
| 144 | function js_templates() { |
|
| 145 | Jetpack::init()->load_view( 'admin/landing-page-templates.php' ); |
|
| @@ 42-54 (lines=13) @@ | ||
| 39 | // add_action( 'jetpack_notices_update_settings', array( $this, 'show_notices_update_settings' ), 10, 1 ); |
|
| 40 | } |
|
| 41 | ||
| 42 | function jetpack_menu_order( $menu_order ) { |
|
| 43 | $jp_menu_order = array(); |
|
| 44 | ||
| 45 | foreach ( $menu_order as $index => $item ) { |
|
| 46 | if ( $item != 'jetpack' ) |
|
| 47 | $jp_menu_order[] = $item; |
|
| 48 | ||
| 49 | if ( $index == 0 ) |
|
| 50 | $jp_menu_order[] = 'jetpack'; |
|
| 51 | } |
|
| 52 | ||
| 53 | return $jp_menu_order; |
|
| 54 | } |
|
| 55 | ||
| 56 | // Render the configuration page for the module if it exists and an error |
|
| 57 | // screen if the module is not configurable |
|
| @@ 3361-3375 (lines=15) @@ | ||
| 3358 | return true; |
|
| 3359 | } |
|
| 3360 | ||
| 3361 | function jetpack_menu_order( $menu_order ) { |
|
| 3362 | $jp_menu_order = array(); |
|
| 3363 | ||
| 3364 | foreach ( $menu_order as $index => $item ) { |
|
| 3365 | if ( $item != 'jetpack' ) { |
|
| 3366 | $jp_menu_order[] = $item; |
|
| 3367 | } |
|
| 3368 | ||
| 3369 | if ( $index == 0 ) { |
|
| 3370 | $jp_menu_order[] = 'jetpack'; |
|
| 3371 | } |
|
| 3372 | } |
|
| 3373 | ||
| 3374 | return $jp_menu_order; |
|
| 3375 | } |
|
| 3376 | ||
| 3377 | function admin_head() { |
|
| 3378 | if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |
|