### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
872 | 872 | if ( ! function_exists('fopen') || (function_exists('ini_get') && true != ini_get('allow_url_fopen')) ) |
873 | 873 | return false; |
874 | 874 | |
875 | | return apply_filters('use_streams_transport', true, $args); |
| 875 | $use = in_array( 'http', stream_get_wrappers() ); |
| 876 | |
| 877 | if ( $use && isset( $args['ssl'] ) && $args['ssl'] ) { |
| 878 | $use = in_array( 'ssl', stream_get_transports() ); |
| 879 | } |
| 880 | |
| 881 | return (bool) apply_filters( 'use_streams_transport', $use, $args ); |
876 | 882 | } |
877 | 883 | } |
878 | 884 | |