IFRAME_REQUEST for network/update.php. props duck_, see #15724.
git-svn-id: https://develop.svn.wordpress.org/trunk@16860 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1bbc935dec
commit
acdd0eff66
@ -7,6 +7,9 @@
|
||||
* @since 3.1.0
|
||||
*/
|
||||
|
||||
if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ) ) )
|
||||
define( 'IFRAME_REQUEST', true );
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( './admin.php' );
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ) ) )
|
||||
define('IFRAME_REQUEST' , true);
|
||||
if ( ! defined( 'IFRAME_REQUEST' ) && 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');
|
||||
|
Loading…
Reference in New Issue
Block a user