Add referer checks. Props masquerade.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-03-06 08:19:41 +00:00
parent adb8409d4d
commit 75a62f2e1e

View File

@ -23,7 +23,8 @@ $action = "delete";
switch($action) {
case 'post':
check_admin_referer();
$post_ID = write_post();
// Redirect.
@ -92,6 +93,8 @@ case 'editattachment':
add_post_meta($post_id, '_wp_attachment_metadata', $newmeta);
case 'editpost':
check_admin_referer();
$post_ID = edit_post();
if ($_POST['save']) {