Code Duplication    Length = 13-15 lines in 2 locations

_inc/lib/admin-pages/class.jetpack-landing-page.php 1 location

@@ 132-144 (lines=13) @@
129
		return $jumpstart_module_list;
130
	}
131
132
	function jetpack_menu_order( $menu_order ) {
133
		$jp_menu_order = array();
134
135
		foreach ( $menu_order as $index => $item ) {
136
			if ( $item != 'jetpack' )
137
				$jp_menu_order[] = $item;
138
139
			if ( $index == 0 )
140
				$jp_menu_order[] = 'jetpack';
141
		}
142
143
		return $jp_menu_order;
144
	}
145
146
	function js_templates() {
147
		Jetpack::init()->load_view( 'admin/landing-page-templates.php' );

class.jetpack.php 1 location

@@ 3551-3565 (lines=15) @@
3548
		return true;
3549
	}
3550
3551
	function jetpack_menu_order( $menu_order ) {
3552
		$jp_menu_order = array();
3553
3554
		foreach ( $menu_order as $index => $item ) {
3555
			if ( $item != 'jetpack' ) {
3556
				$jp_menu_order[] = $item;
3557
			}
3558
3559
			if ( $index == 0 ) {
3560
				$jp_menu_order[] = 'jetpack';
3561
			}
3562
		}
3563
3564
		return $jp_menu_order;
3565
	}
3566
3567
	function admin_head() {
3568
		if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) )