From a8c55b6f8136f613caf656b3db1f061d5bc9dc16 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 2 Jan 2006 20:55:45 +0000 Subject: [PATCH] Decode entities in inline uploader. fixes #2208 git-svn-id: https://develop.svn.wordpress.org/trunk@3392 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/inline-uploading.php | 38 ++++++++++++++++------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/wp-admin/inline-uploading.php b/wp-admin/inline-uploading.php index c2706320c2..55b7a4265d 100644 --- a/wp-admin/inline-uploading.php +++ b/wp-admin/inline-uploading.php @@ -32,7 +32,7 @@ break; case 'delete': -if ( !current_user_can('edit_post', (int) $attachment) ) +if ( !current_user_can('edit_post', (int) $attachment) ) die(__('You are not allowed to delete this attachment.').' ".__('Go back').''); wp_delete_attachment($attachment); @@ -296,7 +296,16 @@ die(__('This script was not meant to be called directly.'));