Ticket #31011: add_filters.patch
File add_filters.patch, 1.2 KB (added by , 10 years ago) |
---|
-
wp-includes/update.php
21 21 * @return null|false Returns null if update is unsupported. Returns false if check is too soon. 22 22 */ 23 23 function wp_version_check( $extra_stats = array(), $force_check = false ) { 24 if ( defined('WP_INSTALLING') )24 if ( defined('WP_INSTALLING') || !apply_filters('check_update_core', true ) ) 25 25 return; 26 26 27 27 global $wpdb, $wp_local_package; … … 185 185 function wp_update_plugins( $extra_stats = array() ) { 186 186 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 187 187 188 if ( defined('WP_INSTALLING') )188 if ( defined('WP_INSTALLING') || !apply_filters('check_update_plugin', true ) ) 189 189 return false; 190 190 191 191 // If running blog-side, bail unless we've not checked in the last 12 hours … … 339 339 function wp_update_themes( $extra_stats = array() ) { 340 340 include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version 341 341 342 if ( defined( 'WP_INSTALLING' ) )342 if ( defined( 'WP_INSTALLING' ) || !apply_filters('check_update_theme', true ) ) 343 343 return false; 344 344 345 345 $installed_themes = wp_get_themes();