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/admin.php

    r34059 r34265  
    359359}
    360360
    361 $_action = wp_validate_action();
    362 if ( ! empty( $_action ) ) {
     361if ( ! empty( $_REQUEST['action'] ) ) {
    363362    /**
    364363     * Fires when an 'action' request variable is sent.
    365364     *
    366      * The dynamic portion of the hook name, `$_action`,
     365     * The dynamic portion of the hook name, `$_REQUEST['action']`,
    367366     * refers to the action derived from the `GET` or `POST` request.
    368367     *
    369368     * @since 2.6.0
    370369     */
    371     do_action( 'admin_action_' . $_action );
    372 }
    373 unset( $_action );
     370    do_action( 'admin_action_' . $_REQUEST['action'] );
     371}
Note: See TracChangeset for help on using the changeset viewer.