Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set IFRAME_REQUEST for theme/plugin information iframe. Props SergeyB…

…iryukov, fixes #15509

git-svn-id: http://svn.automattic.com/wordpress/trunk@16658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 1065472816bd2de400a63f0dd6561850332894a2 1 parent 98208ed
PeteMall authored
View
3  wp-admin/network/plugin-install.php
@@ -7,6 +7,9 @@
* @since 3.1.0
*/
+if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
+ define( 'IFRAME_REQUEST', true );
+
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
View
3  wp-admin/network/theme-install.php
@@ -7,6 +7,9 @@
* @since 3.1.0
*/
+if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
+ define( 'IFRAME_REQUEST', true );
+
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
View
4 wp-admin/plugin-install.php
@@ -6,8 +6,8 @@
* @subpackage Administration
*/
// TODO route this pages via a specific iframe handler instead of the do_action below
-if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
- define('IFRAME_REQUEST' , true);
+if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
+ define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */
require_once('./admin.php');
View
2  wp-admin/theme-install.php
@@ -6,7 +6,7 @@
* @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 );
/** WordPress Administration Bootstrap */
Please sign in to comment.
Something went wrong with that request. Please try again.