WordPress.org

Make WordPress Core

Changeset 20888


Ignore:
Timestamp:
05/24/2012 09:38:01 PM (7 years ago)
Author:
nacin
Message:

_wp_ajax_add_hierarchical_term() no longer gets passed an action, so pull it from POST. see #20699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r20866 r20888  
    304304 */
    305305
    306 function _wp_ajax_add_hierarchical_term( $action ) {
     306function _wp_ajax_add_hierarchical_term() {
     307    $action = $_POST['action'];
    307308    $taxonomy = get_taxonomy(substr($action, 4));
    308309    check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name );
Note: See TracChangeset for help on using the changeset viewer.