Don't trigger Database Upgrades for POST requests with a body. Fixes #18712
git-svn-id: https://develop.svn.wordpress.org/trunk@18731 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
865ccf2acb
commit
6147f81b33
@ -39,7 +39,7 @@ if ( get_option('db_upgraded') ) {
|
||||
* @since 2.8
|
||||
*/
|
||||
do_action('after_db_upgrade');
|
||||
} elseif ( get_option('db_version') != $wp_db_version ) {
|
||||
} elseif ( get_option('db_version') != $wp_db_version && empty($_POST) ) {
|
||||
if ( !is_multisite() ) {
|
||||
wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user