WordPress.org

Make WordPress Core

Changeset 16658


Ignore:
Timestamp:
12/01/2010 06:53:37 PM (9 years ago)
Author:
PeteMall
Message:

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

Location:
trunk/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/plugin-install.php

    r16272 r16658  
    88 */
    99
     10if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
     11    define( 'IFRAME_REQUEST', true );
     12
    1013/** Load WordPress Administration Bootstrap */
    1114require_once( './admin.php' );
  • trunk/wp-admin/network/theme-install.php

    r16272 r16658  
    88 */
    99
     10if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
     11    define( 'IFRAME_REQUEST', true );
     12
    1013/** Load WordPress Administration Bootstrap */
    1114require_once( './admin.php' );
  • trunk/wp-admin/plugin-install.php

    r16221 r16658  
    77 */
    88// TODO route this pages via a specific iframe handler instead of the do_action below
    9 if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
    10     define('IFRAME_REQUEST' , true);
     9if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) )
     10    define( 'IFRAME_REQUEST', true );
    1111
    1212/** WordPress Administration Bootstrap */
  • trunk/wp-admin/theme-install.php

    r16654 r16658  
    77 */
    88
    9 if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
     9if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
    1010    define( 'IFRAME_REQUEST', true );
    1111   
Note: See TracChangeset for help on using the changeset viewer.