Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

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