mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
Ref checks from mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@3665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -24,6 +24,8 @@ switch($action) {
|
||||
|
||||
case 'addcat':
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
die (__('Cheatin’ uh?'));
|
||||
|
||||
@@ -93,6 +95,8 @@ case 'edit':
|
||||
break;
|
||||
|
||||
case 'editedcat':
|
||||
check_admin_referer();
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
die (__('Cheatin’ uh?'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user