Ticket #15509: 15509-network-admin.patch

File 15509-network-admin.patch, 2.1 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/network/plugin-install.php

     
    77 * @since 3.1.0 
    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' ); 
    1215 
  • wp-admin/network/theme-install.php

     
    77 * @since 3.1.0 
    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' ); 
    1215 
  • wp-admin/plugin-install.php

     
    66 * @subpackage Administration 
    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 */ 
    1313require_once('./admin.php'); 
  • wp-admin/theme-install.php

     
    66 * @subpackage Administration 
    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         
    1212/** WordPress Administration Bootstrap */