class.jetpack.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 5380-5387 (lines=8) @@
                                 | 
                            
                                                            
                                    | 5377 | 
                                     | 
                                    	 *  | 
                                
                                                            
                                    | 5378 | 
                                     | 
                                    	 * @since 5.4  | 
                                
                                                            
                                    | 5379 | 
                                     | 
                                    	 **/  | 
                                
                                                            
                                    | 5380 | 
                                     | 
                                    	public static function set_min_time_limit( $min_timeout ) { | 
                                
                                                            
                                    | 5381 | 
                                     | 
                                    		$timeout = self::get_max_execution_time();  | 
                                
                                                            
                                    | 5382 | 
                                     | 
                                    		if ( $timeout < $min_timeout ) { | 
                                
                                                            
                                    | 5383 | 
                                     | 
                                    			$timeout = $min_timeout;  | 
                                
                                                            
                                    | 5384 | 
                                     | 
                                    			set_time_limit( $timeout );  | 
                                
                                                            
                                    | 5385 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 5386 | 
                                     | 
                                    		return $timeout;  | 
                                
                                                            
                                    | 5387 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 5388 | 
                                     | 
                                     | 
                                
                                                            
                                    | 5389 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 5390 | 
                                     | 
                                    	 * Takes the response from the Jetpack register new site endpoint and  | 
                                
                                                                        
                 
                                                            
                    
packages/connection/src/class-manager.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 1118-1125 (lines=8) @@
                                 | 
                            
                                                            
                                    | 1115 | 
                                     | 
                                    	 * @since 5.4  | 
                                
                                                            
                                    | 1116 | 
                                     | 
                                    	 * @param Integer $min_timeout the minimum timeout value.  | 
                                
                                                            
                                    | 1117 | 
                                     | 
                                    	 **/  | 
                                
                                                            
                                    | 1118 | 
                                     | 
                                    	public function set_min_time_limit( $min_timeout ) { | 
                                
                                                            
                                    | 1119 | 
                                     | 
                                    		$timeout = $this->get_max_execution_time();  | 
                                
                                                            
                                    | 1120 | 
                                     | 
                                    		if ( $timeout < $min_timeout ) { | 
                                
                                                            
                                    | 1121 | 
                                     | 
                                    			$timeout = $min_timeout;  | 
                                
                                                            
                                    | 1122 | 
                                     | 
                                    			set_time_limit( $timeout );  | 
                                
                                                            
                                    | 1123 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1124 | 
                                     | 
                                    		return $timeout;  | 
                                
                                                            
                                    | 1125 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 1126 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1127 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 1128 | 
                                     | 
                                    	 * Get our assumed site creation date.  |