Don't trigger Database Upgrades for POST requests with a body. Fixes #18712
git-svn-id: http://svn.automattic.com/wordpress/trunk@18731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
456753acce
commit
5daf7aa2b0
|
@ -39,7 +39,7 @@ if ( get_option('db_upgraded') ) {
|
||||||
* @since 2.8
|
* @since 2.8
|
||||||
*/
|
*/
|
||||||
do_action('after_db_upgrade');
|
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() ) {
|
if ( !is_multisite() ) {
|
||||||
wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
|
wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue