mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
adb8409d4d
commit
75a62f2e1e
@ -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']) {
|
||||
|
Loading…
Reference in New Issue
Block a user