Make WordPress Core

Ticket #19487: remove_set_time_limit2.patch

File remove_set_time_limit2.patch, 846 bytes (added by dllh, 12 years ago)

Remove unnecessary calls to set_time_limit()

  • wp-includes/comment.php

     
    18071807                $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );
    18081808
    18091809                if ( $pingback_server_url ) {
    1810                         @ set_time_limit( 60 );
    18111810                         // Now, the RPC call
    18121811                        $pagelinkedfrom = get_permalink($post_ID);
    18131812
  • wp-includes/functions.php

     
    12841284 * @return bool|string False on failure and string of headers if HEAD request.
    12851285 */
    12861286function wp_get_http( $url, $file_path = false, $red = 1 ) {
    1287         @set_time_limit( 60 );
    1288 
    12891287        if ( $red > 5 )
    12901288                return false;
    12911289