From d928ce089a3780ef273e4032e3689bf1708e1908 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 24 May 2012 21:38:01 +0000 Subject: [PATCH] _wp_ajax_add_hierarchical_term() no longer gets passed an action, so pull it from POST. see #20699. git-svn-id: http://core.svn.wordpress.org/trunk@20888 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ajax-actions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index bed8f09460..cf953f007b 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -303,7 +303,8 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { * POST-based Ajax handlers. */ -function _wp_ajax_add_hierarchical_term( $action ) { +function _wp_ajax_add_hierarchical_term() { + $action = $_POST['action']; $taxonomy = get_taxonomy(substr($action, 4)); check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name ); if ( !current_user_can( $taxonomy->cap->edit_terms ) )