packages/connection/src/Manager.php 1 location
|
@@ 952-959 (lines=8) @@
|
| 949 |
|
* @since 5.4 |
| 950 |
|
* @param Integer $min_timeout the minimum timeout value. |
| 951 |
|
**/ |
| 952 |
|
public function set_min_time_limit( $min_timeout ) { |
| 953 |
|
$timeout = $this->get_max_execution_time(); |
| 954 |
|
if ( $timeout < $min_timeout ) { |
| 955 |
|
$timeout = $min_timeout; |
| 956 |
|
set_time_limit( $timeout ); |
| 957 |
|
} |
| 958 |
|
return $timeout; |
| 959 |
|
} |
| 960 |
|
|
| 961 |
|
/** |
| 962 |
|
* Get our assumed site creation date. |
class.jetpack.php 1 location
|
@@ 5020-5027 (lines=8) @@
|
| 5017 |
|
* |
| 5018 |
|
* @since 5.4 |
| 5019 |
|
**/ |
| 5020 |
|
public static function set_min_time_limit( $min_timeout ) { |
| 5021 |
|
$timeout = self::get_max_execution_time(); |
| 5022 |
|
if ( $timeout < $min_timeout ) { |
| 5023 |
|
$timeout = $min_timeout; |
| 5024 |
|
set_time_limit( $timeout ); |
| 5025 |
|
} |
| 5026 |
|
return $timeout; |
| 5027 |
|
} |
| 5028 |
|
|
| 5029 |
|
/** |
| 5030 |
|
* Takes the response from the Jetpack register new site endpoint and |