_inc/lib/admin-pages/class.jetpack-landing-page.php 1 location
|
@@ 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' ); |
class.jetpack.php 1 location
|
@@ 3596-3610 (lines=15) @@
|
| 3593 |
|
return true; |
| 3594 |
|
} |
| 3595 |
|
|
| 3596 |
|
function jetpack_menu_order( $menu_order ) { |
| 3597 |
|
$jp_menu_order = array(); |
| 3598 |
|
|
| 3599 |
|
foreach ( $menu_order as $index => $item ) { |
| 3600 |
|
if ( $item != 'jetpack' ) { |
| 3601 |
|
$jp_menu_order[] = $item; |
| 3602 |
|
} |
| 3603 |
|
|
| 3604 |
|
if ( $index == 0 ) { |
| 3605 |
|
$jp_menu_order[] = 'jetpack'; |
| 3606 |
|
} |
| 3607 |
|
} |
| 3608 |
|
|
| 3609 |
|
return $jp_menu_order; |
| 3610 |
|
} |
| 3611 |
|
|
| 3612 |
|
function admin_head() { |
| 3613 |
|
if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |