Ticket #39459: 39459.2.diff
File 39459.2.diff, 794 bytes (added by , 4 years ago) |
---|
-
src/wp-admin/admin.php
35 35 36 36 nocache_headers(); 37 37 38 if ( get_option( 'db_upgraded' ) ) {38 if ( ! wp_doing_ajax() && get_option( 'db_upgraded' ) ) { 39 39 40 40 flush_rewrite_rules(); 41 41 update_option( 'db_upgraded', false ); … … 47 47 */ 48 48 do_action( 'after_db_upgrade' ); 49 49 50 } elseif ( (int) get_option( 'db_version' ) !== $wp_db_version && empty( $_POST ) ) {50 } elseif ( ! wp_doing_ajax() && (int) get_option( 'db_version' ) !== $wp_db_version && empty( $_POST ) ) { 51 51 52 52 if ( ! is_multisite() ) { 53 53 wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );