Set IFRAME_REQUEST for theme/plugin information iframe. Props SergeyBiryukov, fixes #15509

git-svn-id: https://develop.svn.wordpress.org/trunk@16658 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pete Mall 2010-12-01 18:53:37 +00:00
parent 8485c47b61
commit bf8b057f04
4 changed files with 9 additions and 3 deletions

View File

@ -7,6 +7,9 @@
* @since 3.1.0 * @since 3.1.0
*/ */
if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( './admin.php' );

View File

@ -7,6 +7,9 @@
* @since 3.1.0 * @since 3.1.0
*/ */
if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
define( 'IFRAME_REQUEST', true );
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */
require_once( './admin.php' ); require_once( './admin.php' );

View File

@ -6,8 +6,8 @@
* @subpackage Administration * @subpackage Administration
*/ */
// TODO route this pages via a specific iframe handler instead of the do_action below // TODO route this pages via a specific iframe handler instead of the do_action below
if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
define('IFRAME_REQUEST' , true); define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */
require_once('./admin.php'); require_once('./admin.php');

View File

@ -6,7 +6,7 @@
* @subpackage Administration * @subpackage Administration
*/ */
if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) ) if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
define( 'IFRAME_REQUEST', true ); define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */ /** WordPress Administration Bootstrap */