From a53a2f0f04323dbd1dff5259bab5213e90375e17 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 7 Dec 2010 23:05:27 +0000 Subject: [PATCH] Define IFRAME_REQUEST only for framed requests. Props ocean90. fixes #15721 git-svn-id: https://develop.svn.wordpress.org/trunk@16780 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/update.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/update.php b/wp-admin/update.php index aedda30d3a..57d0cceaa8 100644 --- a/wp-admin/update.php +++ b/wp-admin/update.php @@ -6,7 +6,8 @@ * @subpackage Administration */ -define('IFRAME_REQUEST' , true); +if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ) ) ) + define('IFRAME_REQUEST' , true); /** WordPress Administration Bootstrap */ require_once('./admin.php');