From 3b5d738ec8aac19558d9811288ee53325180c53c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 14 Jul 2009 07:59:52 +0000 Subject: [PATCH] Fix converting of HTML entities in Quick editor for comments, don't output QE data when the user cannot edit comments, fixes #9935 git-svn-id: https://develop.svn.wordpress.org/trunk@11711 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 10 ++++++---- wp-admin/wp-admin.css | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 402cc34cb2..eb5ff41555 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2123,15 +2123,17 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, echo '
'; printf(__('Submitted on %2$s at %3$s'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia'))); echo '
'; - comment_text(); ?> + comment_text(); + if ( $user_can ) { ?>