WordPress.org

Make WordPress Core

Changeset 18731


Ignore:
Timestamp:
09/20/11 04:17:55 (4 years ago)
Author:
dd32
Message:

Don't trigger Database Upgrades for POST requests with a body. Fixes #18712

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r18640 r18731  
    4040     */ 
    4141    do_action('after_db_upgrade'); 
    42 } elseif ( get_option('db_version') != $wp_db_version ) { 
     42} elseif ( get_option('db_version') != $wp_db_version && empty($_POST) ) { 
    4343    if ( !is_multisite() ) { 
    4444        wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])))); 
Note: See TracChangeset for help on using the changeset viewer.