Make WordPress Core


Ignore:
Timestamp:
08/15/2009 12:01:04 PM (15 years ago)
Author:
azaozz
Message:

Add constants for ftp connections timeouts, props dd32, see #10522

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r11819 r11823  
    606606    $wp_filesystem = new $method($args);
    607607
     608    //Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default.
     609    if ( ! defined('FS_CONNECT_TIMEOUT') )
     610        define('FS_CONNECT_TIMEOUT', 30);
     611    if ( ! defined('FS_TIMEOUT') )
     612        define('FS_TIMEOUT', 30);
     613
    608614    if ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() )
    609615        return false;
Note: See TracChangeset for help on using the changeset viewer.