mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Validation fixes. Props ocean90, peaceablewhale. see #17364
git-svn-id: https://develop.svn.wordpress.org/trunk@18010 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -508,7 +508,7 @@ case 'add-link-category' : // On the Fly
|
||||
$x->send();
|
||||
break;
|
||||
case 'add-tag' :
|
||||
check_ajax_referer( 'add-tag' );
|
||||
check_ajax_referer( 'add-tag', '_wpnonce_add-tag' );
|
||||
$post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post';
|
||||
$taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
|
||||
$tax = get_taxonomy($taxonomy);
|
||||
|
||||
Reference in New Issue
Block a user