Add referer checks. Props masquerade.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50996fe3ba
commit
084d69c9ae
|
@ -30,7 +30,8 @@ $editing = true;
|
|||
|
||||
switch($action) {
|
||||
case 'post':
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
$post_ID = write_post();
|
||||
|
||||
// Redirect.
|
||||
|
@ -102,6 +103,8 @@ case 'editattachment':
|
|||
add_post_meta($post_id, '_wp_attachment_metadata', $newmeta);
|
||||
|
||||
case 'editpost':
|
||||
check_admin_referer();
|
||||
|
||||
$post_ID = edit_post();
|
||||
|
||||
if ($_POST['save']) {
|
||||
|
|
Loading…
Reference in New Issue