packages/connection/src/Manager.php 1 location
|
@@ 916-923 (lines=8) @@
|
913 |
|
* @since 5.4 |
914 |
|
* @param Integer $min_timeout the minimum timeout value. |
915 |
|
**/ |
916 |
|
public function set_min_time_limit( $min_timeout ) { |
917 |
|
$timeout = $this->get_max_execution_time(); |
918 |
|
if ( $timeout < $min_timeout ) { |
919 |
|
$timeout = $min_timeout; |
920 |
|
set_time_limit( $timeout ); |
921 |
|
} |
922 |
|
return $timeout; |
923 |
|
} |
924 |
|
|
925 |
|
/** |
926 |
|
* Get our assumed site creation date. |
class.jetpack.php 1 location
|
@@ 5016-5023 (lines=8) @@
|
5013 |
|
* |
5014 |
|
* @since 5.4 |
5015 |
|
**/ |
5016 |
|
public static function set_min_time_limit( $min_timeout ) { |
5017 |
|
$timeout = self::get_max_execution_time(); |
5018 |
|
if ( $timeout < $min_timeout ) { |
5019 |
|
$timeout = $min_timeout; |
5020 |
|
set_time_limit( $timeout ); |
5021 |
|
} |
5022 |
|
return $timeout; |
5023 |
|
} |
5024 |
|
|
5025 |
|
/** |
5026 |
|
* Takes the response from the Jetpack register new site endpoint and |