_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 92-104 (lines=13) @@ | 
                                                            
                                    | 89 |  | 			. "</script>"; | 
                                                            
                                    | 90 |  | 	} | 
                                                            
                                    | 91 |  |  | 
                                                            
                                    | 92 |  | 	function jetpack_menu_order( $menu_order ) { | 
                                                            
                                    | 93 |  | 		$jp_menu_order = array(); | 
                                                            
                                    | 94 |  |  | 
                                                            
                                    | 95 |  | 		foreach ( $menu_order as $index => $item ) { | 
                                                            
                                    | 96 |  | 			if ( $item != 'jetpack' ) | 
                                                            
                                    | 97 |  | 				$jp_menu_order[] = $item; | 
                                                            
                                    | 98 |  |  | 
                                                            
                                    | 99 |  | 			if ( $index == 0 ) | 
                                                            
                                    | 100 |  | 				$jp_menu_order[] = 'jetpack'; | 
                                                            
                                    | 101 |  | 		} | 
                                                            
                                    | 102 |  |  | 
                                                            
                                    | 103 |  | 		return $jp_menu_order; | 
                                                            
                                    | 104 |  | 	} | 
                                                            
                                    | 105 |  |  | 
                                                            
                                    | 106 |  | 	// Render the configuration page for the module if it exists and an error | 
                                                            
                                    | 107 |  | 	// screen if the module is not configurable | 
                                                                        
                 
                                                            
                    
class.jetpack.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 3819-3833 (lines=15) @@ | 
                                                            
                                    | 3816 |  | 		return true; | 
                                                            
                                    | 3817 |  | 	} | 
                                                            
                                    | 3818 |  |  | 
                                                            
                                    | 3819 |  | 	function jetpack_menu_order( $menu_order ) { | 
                                                            
                                    | 3820 |  | 		$jp_menu_order = array(); | 
                                                            
                                    | 3821 |  |  | 
                                                            
                                    | 3822 |  | 		foreach ( $menu_order as $index => $item ) { | 
                                                            
                                    | 3823 |  | 			if ( $item != 'jetpack' ) { | 
                                                            
                                    | 3824 |  | 				$jp_menu_order[] = $item; | 
                                                            
                                    | 3825 |  | 			} | 
                                                            
                                    | 3826 |  |  | 
                                                            
                                    | 3827 |  | 			if ( $index == 0 ) { | 
                                                            
                                    | 3828 |  | 				$jp_menu_order[] = 'jetpack'; | 
                                                            
                                    | 3829 |  | 			} | 
                                                            
                                    | 3830 |  | 		} | 
                                                            
                                    | 3831 |  |  | 
                                                            
                                    | 3832 |  | 		return $jp_menu_order; | 
                                                            
                                    | 3833 |  | 	} | 
                                                            
                                    | 3834 |  |  | 
                                                            
                                    | 3835 |  | 	function admin_head() { | 
                                                            
                                    | 3836 |  | 		if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) ) |