WordPress.org

Make WordPress Core

Changeset 16860


Ignore:
Timestamp:
12/10/10 18:25:18 (4 years ago)
Author:
nacin
Message:

IFRAME_REQUEST for network/update.php. props duck_, see #15724.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r16272 r16860  
    88 */ 
    99 
     10if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ) ) ) 
     11    define( 'IFRAME_REQUEST', true ); 
     12 
    1013/** Load WordPress Administration Bootstrap */ 
    1114require_once( './admin.php' ); 
  • trunk/wp-admin/update.php

    r16780 r16860  
    77 */ 
    88 
    9 if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ) ) ) 
    10     define('IFRAME_REQUEST' , true); 
     9if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selected', 'activate-plugin', 'update-selected-themes' ) ) ) 
     10    define( 'IFRAME_REQUEST', true ); 
    1111 
    1212/** WordPress Administration Bootstrap */ 
Note: See TracChangeset for help on using the changeset viewer.