Changeset 6151
- Timestamp:
- 09/22/2007 12:08:50 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r6026 r6151 43 43 function wp_update_plugins() { 44 44 global $wp_version; 45 46 if ( !function_exists('fsockopen') ) 47 return false; 48 45 49 $plugins = get_plugins(); 46 50 $active = get_option( 'active_plugins' ); … … 84 88 85 89 $response = ''; 86 if( false != ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3) ) ) {90 if( false != ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3) ) && is_resource($fs) ) { 87 91 fwrite($fs, $http_request); 88 92 -
trunk/wp-includes/update.php
r6026 r6151 4 4 5 5 function wp_version_check() { 6 if ( strpos($_SERVER['PHP_SELF'], 'install.php') !== false || defined('WP_INSTALLING') )6 if ( !function_exists('fsockopen') || strpos($_SERVER['PHP_SELF'], 'install.php') !== false || defined('WP_INSTALLING') ) 7 7 return; 8 8 … … 31 31 32 32 $response = ''; 33 if ( false !== ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3 ) ) ) {33 if ( false !== ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3 ) ) && is_resource($fs) ) { 34 34 fwrite( $fs, $http_request ); 35 35 while ( !feof( $fs ) )
Note: See TracChangeset
for help on using the changeset viewer.