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

@@ 3542-3556 (lines=15) @@
3539
		return true;
3540
	}
3541
3542
	function jetpack_menu_order( $menu_order ) {
3543
		$jp_menu_order = array();
3544
3545
		foreach ( $menu_order as $index => $item ) {
3546
			if ( $item != 'jetpack' ) {
3547
				$jp_menu_order[] = $item;
3548
			}
3549
3550
			if ( $index == 0 ) {
3551
				$jp_menu_order[] = 'jetpack';
3552
			}
3553
		}
3554
3555
		return $jp_menu_order;
3556
	}
3557
3558
	function admin_head() {
3559
		if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) )