Changeset 6151 for trunk/wp-admin/includes/update.php
- Timestamp:
- 09/22/2007 12:08:50 AM (17 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.