Ticket #7550: 7550.r8927.diff
File 7550.r8927.diff, 2.6 KB (added by , 15 years ago) |
---|
-
general-template.php
1731 1731 * @param string $file Style handle name or file name (without ".css" extension) relative to wp-admin/ 1732 1732 * @param bool $force_echo Optional. Force the stylesheet link to be printed rather than enqueued. 1733 1733 */ 1734 1735 1734 function wp_admin_css( $file = 'wp-admin', $force_echo = false ) { 1736 1735 global $wp_styles; 1737 1736 if ( !is_a($wp_styles, 'WP_Styles') ) -
update.php
3 3 * A simple set of functions to check our version 1.0 update service. 4 4 * 5 5 * @package WordPress 6 * @since 2.3 6 * @since 2.3.0 7 7 */ 8 8 9 9 /** … … 84 84 * 85 85 * The WordPress version, PHP version, and Locale is sent along with a list of 86 86 * all plugins installed. Checks against the WordPress server at 87 * api.wordpress.org. Will only check if PHP has fsockopen enabled and WordPress 88 * isn't installing. 87 * api.wordpress.org. Will only check if WordPress isn't installing. 89 88 * 90 89 * @package WordPress 91 90 * @since 2.3.0 … … 169 168 * Check theme versions against the latest versions hosted on WordPress.org. 170 169 * 171 170 * A list of all themes installed in sent to WP. Checks against the 172 * WordPress server at api.wordpress.org. Will only check if PHP has173 * fsockopen enabled and WordPress isn'tinstalling.171 * WordPress server at api.wordpress.org. Will only check if WordPress isn't 172 * installing. 174 173 * 175 174 * @package WordPress 176 175 * @since 2.7.0 … … 233 232 update_option( 'update_themes', $new_option ); 234 233 } 235 234 235 /** 236 * Check the last time plugins were run before checking plugin versions. 237 * 238 * This might have been backported to WordPress 2.6.1 for performance reasons. 239 * This is used for the wp-admin to check only so often instead of every page 240 * load. 241 * 242 * @since 2.7.0 243 * @access private 244 */ 236 245 function _maybe_update_plugins() { 237 246 $current = get_option( 'update_plugins' ); 238 247 if ( isset( $current->last_checked ) && 43200 > ( time() - $current->last_checked ) ) … … 240 249 wp_update_plugins(); 241 250 } 242 251 252 /** 253 * Check themes versions only after a duration of time. 254 * 255 * This is for performance reasons to make sure that on the theme version 256 * checker is not run on every page load. 257 * 258 * @since 2.7.0 259 * @access private 260 */ 243 261 function _maybe_update_themes( ) { 244 262 $current = get_option( 'update_themes' ); 245 263 if( isset( $current->last_checked ) && 43200 > ( time( ) - $current->last_checked ) )