Fix edit slug ajax nonce. props nbachiyski. see #5816

git-svn-id: http://svn.automattic.com/wordpress/trunk@6788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-02-11 17:40:16 +00:00
parent 1e4cf4d54d
commit 2b7ea6a824
3 changed files with 3 additions and 2 deletions

View File

@@ -525,7 +525,7 @@ case 'closed-postboxes' :
update_usermeta($current_user->ID, 'closedpostboxes_'.$page, $closed);
break;
case 'sample-permalink':
check_ajax_referer( $action );
check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' );
$post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
die(get_sample_permalink_html($post_id, $_POST['new_slug']));
break;