_inc/lib/admin-pages/class.jetpack-react-page.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 95-107 (lines=13) @@
                                 | 
                            
                                                            
                                    | 92 | 
                                     | 
                                    			. "</script>";  | 
                                
                                                            
                                    | 93 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 94 | 
                                     | 
                                     | 
                                
                                                            
                                    | 95 | 
                                     | 
                                    	function jetpack_menu_order( $menu_order ) { | 
                                
                                                            
                                    | 96 | 
                                     | 
                                    		$jp_menu_order = array();  | 
                                
                                                            
                                    | 97 | 
                                     | 
                                     | 
                                
                                                            
                                    | 98 | 
                                     | 
                                    		foreach ( $menu_order as $index => $item ) { | 
                                
                                                            
                                    | 99 | 
                                     | 
                                    			if ( $item != 'jetpack' )  | 
                                
                                                            
                                    | 100 | 
                                     | 
                                    				$jp_menu_order[] = $item;  | 
                                
                                                            
                                    | 101 | 
                                     | 
                                     | 
                                
                                                            
                                    | 102 | 
                                     | 
                                    			if ( $index == 0 )  | 
                                
                                                            
                                    | 103 | 
                                     | 
                                    				$jp_menu_order[] = 'jetpack';  | 
                                
                                                            
                                    | 104 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 105 | 
                                     | 
                                     | 
                                
                                                            
                                    | 106 | 
                                     | 
                                    		return $jp_menu_order;  | 
                                
                                                            
                                    | 107 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 108 | 
                                     | 
                                     | 
                                
                                                            
                                    | 109 | 
                                     | 
                                    	// Render the configuration page for the module if it exists and an error  | 
                                
                                                            
                                    | 110 | 
                                     | 
                                    	// screen if the module is not configurable  | 
                                
                                                                        
                 
                                                            
                    
class.jetpack.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 3331-3345 (lines=15) @@
                                 | 
                            
                                                            
                                    | 3328 | 
                                     | 
                                    		return true;  | 
                                
                                                            
                                    | 3329 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 3330 | 
                                     | 
                                     | 
                                
                                                            
                                    | 3331 | 
                                     | 
                                    	function jetpack_menu_order( $menu_order ) { | 
                                
                                                            
                                    | 3332 | 
                                     | 
                                    		$jp_menu_order = array();  | 
                                
                                                            
                                    | 3333 | 
                                     | 
                                     | 
                                
                                                            
                                    | 3334 | 
                                     | 
                                    		foreach ( $menu_order as $index => $item ) { | 
                                
                                                            
                                    | 3335 | 
                                     | 
                                    			if ( $item != 'jetpack' ) { | 
                                
                                                            
                                    | 3336 | 
                                     | 
                                    				$jp_menu_order[] = $item;  | 
                                
                                                            
                                    | 3337 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 3338 | 
                                     | 
                                     | 
                                
                                                            
                                    | 3339 | 
                                     | 
                                    			if ( $index == 0 ) { | 
                                
                                                            
                                    | 3340 | 
                                     | 
                                    				$jp_menu_order[] = 'jetpack';  | 
                                
                                                            
                                    | 3341 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 3342 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 3343 | 
                                     | 
                                     | 
                                
                                                            
                                    | 3344 | 
                                     | 
                                    		return $jp_menu_order;  | 
                                
                                                            
                                    | 3345 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 3346 | 
                                     | 
                                     | 
                                
                                                            
                                    | 3347 | 
                                     | 
                                    	function admin_head() { | 
                                
                                                            
                                    | 3348 | 
                                     | 
                                    		if ( isset( $_GET['configure'] ) && Jetpack::is_module( $_GET['configure'] ) && current_user_can( 'manage_options' ) )  |