WordPress.org

Make WordPress Core

Ticket #31410: 31410-with-30947.patch

File 31410-with-30947.patch, 759 bytes (added by elusiveunit, 6 years ago)
Line 
1Index: src/wp-includes/default-filters.php
2===================================================================
3--- src/wp-includes/default-filters.php (revision 31240)
4+++ src/wp-includes/default-filters.php (working copy)
5@@ -358,7 +358,7 @@
6 add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
7
8// Update
9-if ( ( is_main_site() || is_network_admin() ) && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
10+if ( ( is_main_site() || is_network_admin() ) && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) && ! ( defined( 'DISABLE_UPDATES' ) && DISABLE_UPDATES ) ) {
11        add_action( 'admin_init', '_maybe_update_core' );
12        add_action( 'wp_version_check', 'wp_version_check' );
13        add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );