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:
Ryan Boren
2011-05-23 23:33:30 +00:00
parent ab6db3e04f
commit ccba8dfbf3
16 changed files with 31 additions and 31 deletions

View File

@@ -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);