wp_die() improvements from Sewar. fixes #2902
git-svn-id: http://svn.automattic.com/wordpress/trunk@4006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -18,7 +18,7 @@ switch ($action) {
|
||||
|
||||
// check the current user's level first.
|
||||
if (!current_user_can('manage_links'))
|
||||
wp_die(__("Cheatin' uh ?"));
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
//for each link id (in $linkcheck[]) change category to selected value
|
||||
if (count($linkcheck) == 0) {
|
||||
@@ -42,7 +42,7 @@ switch ($action) {
|
||||
|
||||
// check the current user's level first.
|
||||
if (!current_user_can('manage_links'))
|
||||
wp_die(__("Cheatin' uh ?"));
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
//for each link id (in $linkcheck[]) change category to selected value
|
||||
if (count($linkcheck) == 0) {
|
||||
@@ -79,7 +79,7 @@ switch ($action) {
|
||||
check_admin_referer('delete-bookmark_' . $link_id);
|
||||
|
||||
if (!current_user_can('manage_links'))
|
||||
wp_die(__("Cheatin' uh ?"));
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
wp_delete_link($link_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user