packages/connection/src/Manager.php 1 location
|
@@ 954-961 (lines=8) @@
|
| 951 |
|
* @since 5.4 |
| 952 |
|
* @param Integer $min_timeout the minimum timeout value. |
| 953 |
|
**/ |
| 954 |
|
public function set_min_time_limit( $min_timeout ) { |
| 955 |
|
$timeout = $this->get_max_execution_time(); |
| 956 |
|
if ( $timeout < $min_timeout ) { |
| 957 |
|
$timeout = $min_timeout; |
| 958 |
|
set_time_limit( $timeout ); |
| 959 |
|
} |
| 960 |
|
return $timeout; |
| 961 |
|
} |
| 962 |
|
|
| 963 |
|
/** |
| 964 |
|
* Get our assumed site creation date. |
class.jetpack.php 1 location
|
@@ 5006-5013 (lines=8) @@
|
| 5003 |
|
* |
| 5004 |
|
* @since 5.4 |
| 5005 |
|
**/ |
| 5006 |
|
public static function set_min_time_limit( $min_timeout ) { |
| 5007 |
|
$timeout = self::get_max_execution_time(); |
| 5008 |
|
if ( $timeout < $min_timeout ) { |
| 5009 |
|
$timeout = $min_timeout; |
| 5010 |
|
set_time_limit( $timeout ); |
| 5011 |
|
} |
| 5012 |
|
return $timeout; |
| 5013 |
|
} |
| 5014 |
|
|
| 5015 |
|
/** |
| 5016 |
|
* Takes the response from the Jetpack register new site endpoint and |