mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
General: Check that set_time_limit() function is available before using it in core.
This avoids a fatal error if the function is disabled on certain environments. Props theode, jokerrs, johnbillion, hellofromTonya, costdev, jrf, azaozz, SergeyBiryukov. Fixes #55711. git-svn-id: https://develop.svn.wordpress.org/trunk@55258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3659,7 +3659,9 @@ function post_permalink( $post = 0 ) {
|
||||
function wp_get_http( $url, $file_path = false, $red = 1 ) {
|
||||
_deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' );
|
||||
|
||||
@set_time_limit( 60 );
|
||||
if ( function_exists( 'set_time_limit' ) ) {
|
||||
@set_time_limit( 60 );
|
||||
}
|
||||
|
||||
if ( $red > 5 )
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user