Changeset 2606
- Timestamp:
- 05/13/2005 09:53:18 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r2581 r2606 1860 1860 1861 1861 function wp_remote_fopen( $uri ) { 1862 if ( function_exists('curl_init') ) { 1862 if ( ini_get('allow_url_fopen') ) { 1863 $fp = fopen( $uri, 'r' ); 1864 if ( !$fp ) 1865 return false; 1866 $linea = ''; 1867 while( $remote_read = fread($fp, 4096) ) 1868 $linea .= $remote_read; 1869 fclose($fp); 1870 return $linea; 1871 } else if ( function_exists('curl_init') ) { 1863 1872 $handle = curl_init(); 1864 1873 curl_setopt ($handle, CURLOPT_URL, $uri); … … 1869 1878 return $buffer; 1870 1879 } else { 1871 $fp = fopen( $uri, 'r' ); 1872 if ( !$fp ) 1873 return false; 1874 $linea = ''; 1875 while( $remote_read = fread($fp, 4096) ) 1876 $linea .= $remote_read; 1877 return $linea; 1880 return false; 1878 1881 } 1879 1882 } -
trunk/xmlrpc.php
r2581 r2606 1186 1186 $context = str_replace('&', '&', $context); 1187 1187 } 1188 1189 fclose($fp);1190 1188 1191 1189 if (empty($context)) {
Note: See TracChangeset
for help on using the changeset viewer.