### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
|
| 700 | 700 | * @static |
| 701 | 701 | * @return boolean False means this class can not be used, true means it can. |
| 702 | 702 | */ |
| 703 | | function test( $args = array() ) { |
| | 703 | function test( $args = array(), $url = '' ) { |
| 704 | 704 | if ( false !== ($option = get_option( 'disable_fsockopen' )) && time()-$option < 43200 ) // 12 hours |
| 705 | 705 | return false; |
| 706 | 706 | |
| … |
… |
|
| 868 | 868 | * |
| 869 | 869 | * @return boolean False means this class can not be used, true means it can. |
| 870 | 870 | */ |
| 871 | | function test($args = array()) { |
| | 871 | function test($args = array(), $url = '' ) { |
| 872 | 872 | if ( ! function_exists('fopen') || (function_exists('ini_get') && true != ini_get('allow_url_fopen')) ) |
| 873 | 873 | return false; |
| 874 | 874 | |
| … |
… |
|
| 1021 | 1021 | * |
| 1022 | 1022 | * @return boolean False means this class can not be used, true means it can. |
| 1023 | 1023 | */ |
| 1024 | | function test($args = array()) { |
| | 1024 | function test($args = array(), $url = '' ) { |
| 1025 | 1025 | return apply_filters('use_http_extension_transport', function_exists('http_request'), $args ); |
| 1026 | 1026 | } |
| 1027 | 1027 | } |
| … |
… |
|
| 1207 | 1207 | * |
| 1208 | 1208 | * @return boolean False means this class can not be used, true means it can. |
| 1209 | 1209 | */ |
| 1210 | | function test($args = array()) { |
| | 1210 | function test($args = array(), $url = '' ) { |
| 1211 | 1211 | if ( function_exists('curl_init') && function_exists('curl_exec') ) |
| 1212 | 1212 | return apply_filters('use_curl_transport', true, $args); |
| 1213 | 1213 | |