From b60db381c7f3bfcd963bd20a7c254d79ab7bbcdc Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 2 Jan 2006 20:55:45 +0000 Subject: [PATCH] Decode entities in inline uploader. fixes #2208 git-svn-id: http://svn.automattic.com/wordpress/trunk@3392 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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.'));