Ticket #7265: 7265.4.diff
File 7265.4.diff, 1.1 KB (added by , 16 years ago) |
---|
-
wp-admin/includes/update.php
53 53 echo "<span id='wp-version-message'>$msg</span>"; 54 54 } 55 55 56 /** 57 * wp_update_plugins() - Check plugin versions against the latest versions hosted on WordPress.org. 58 * 59 * The WordPress version, PHP version, and Locale is sent along with a list of all plugins installed. 60 * Checks against the WordPress server at api.wordpress.org. 61 * Will only check if PHP has fsockopen enabled. 62 * 63 * @package WordPress 64 * @since 2.3 65 * @uses $wp_version Used to notidy the WordPress version. 66 * 67 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. 68 */ 56 69 function wp_update_plugins() { 57 70 global $wp_version; 58 71 … … 116 129 117 130 update_option( 'update_plugins', $new_option ); 118 131 } 119 add_action( ' init', 'wp_update_plugins' );132 add_action( 'admin_init', 'wp_update_plugins' ); 120 133 121 134 function wp_plugin_update_row( $file, $plugin_data ) { 122 135 $current = get_option( 'update_plugins' );