Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3833-3847 (lines=15) @@
3830
		return true;
3831
	}
3832
3833
	function jetpack_menu_order( $menu_order ) {
3834
		$jp_menu_order = array();
3835
3836
		foreach ( $menu_order as $index => $item ) {
3837
			if ( $item != 'jetpack' ) {
3838
				$jp_menu_order[] = $item;
3839
			}
3840
3841
			if ( $index == 0 ) {
3842
				$jp_menu_order[] = 'jetpack';
3843
			}
3844
		}
3845
3846
		return $jp_menu_order;
3847
	}
3848
3849
	function admin_banner_styles() {
3850
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

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

@@ 76-88 (lines=13) @@
73
		echo '</noscript>';
74
	}
75
76
	function jetpack_menu_order( $menu_order ) {
77
		$jp_menu_order = array();
78
79
		foreach ( $menu_order as $index => $item ) {
80
			if ( $item != 'jetpack' )
81
				$jp_menu_order[] = $item;
82
83
			if ( $index == 0 )
84
				$jp_menu_order[] = 'jetpack';
85
		}
86
87
		return $jp_menu_order;
88
	}
89
90
	function page_render() {
91
		/** This action is already documented in views/admin/admin-page.php */