mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
wp_die() improvements from Sewar. fixes #2902
git-svn-id: https://develop.svn.wordpress.org/trunk@4006 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -13,7 +13,7 @@ case 'addcat':
|
||||
check_admin_referer('add-category');
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
die (__('Cheatin’ uh?'));
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
wp_insert_category($_POST);
|
||||
|
||||
@@ -25,7 +25,7 @@ case 'delete':
|
||||
check_admin_referer('delete-category_' . $cat_ID);
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
die (__('Cheatin’ uh?'));
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
$cat_name = get_catname($cat_ID);
|
||||
|
||||
@@ -56,7 +56,7 @@ case 'editedcat':
|
||||
check_admin_referer('update-category_' . $cat_ID);
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
die (__('Cheatin’ uh?'));
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
wp_update_category($_POST);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user