packages/connection/src/class-manager.php 1 location
|
@@ 1031-1038 (lines=8) @@
|
1028 |
|
* @since 5.4 |
1029 |
|
* @param Integer $min_timeout the minimum timeout value. |
1030 |
|
**/ |
1031 |
|
public function set_min_time_limit( $min_timeout ) { |
1032 |
|
$timeout = $this->get_max_execution_time(); |
1033 |
|
if ( $timeout < $min_timeout ) { |
1034 |
|
$timeout = $min_timeout; |
1035 |
|
set_time_limit( $timeout ); |
1036 |
|
} |
1037 |
|
return $timeout; |
1038 |
|
} |
1039 |
|
|
1040 |
|
/** |
1041 |
|
* Get our assumed site creation date. |
class.jetpack.php 1 location
|
@@ 5180-5187 (lines=8) @@
|
5177 |
|
* |
5178 |
|
* @since 5.4 |
5179 |
|
**/ |
5180 |
|
public static function set_min_time_limit( $min_timeout ) { |
5181 |
|
$timeout = self::get_max_execution_time(); |
5182 |
|
if ( $timeout < $min_timeout ) { |
5183 |
|
$timeout = $min_timeout; |
5184 |
|
set_time_limit( $timeout ); |
5185 |
|
} |
5186 |
|
return $timeout; |
5187 |
|
} |
5188 |
|
|
5189 |
|
/** |
5190 |
|
* Takes the response from the Jetpack register new site endpoint and |