Make WordPress Core


Ignore:
Timestamp:
09/17/2015 12:32:20 PM (9 years ago)
Author:
helen
Message:

Superglobals: Revert [34059] until further notice.

see #33837.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r34163 r34265  
    77 */
    88
    9 // `wp_validate_action()` isn't loaded yet
    109if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
    1110    define( 'DOING_AJAX', true );
     
    2120    require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    2221
    23 if ( ! wp_validate_action( 'upload-attachment' ) ) {
     22if ( ! ( isset( $_REQUEST['action'] ) && 'upload-attachment' == $_REQUEST['action'] ) ) {
    2423    // Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
    2524    if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
     
    3635header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
    3736
    38 if ( wp_validate_action( 'upload-attachment' ) ) {
     37if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
    3938    include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
    4039
Note: See TracChangeset for help on using the changeset viewer.