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
This commit is contained in:
parent
64fd3c3e59
commit
3b5d738ec8
|
@ -2123,15 +2123,17 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
||||||
echo '<div id="submitted-on">';
|
echo '<div id="submitted-on">';
|
||||||
printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
|
printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
comment_text(); ?>
|
comment_text();
|
||||||
|
if ( $user_can ) { ?>
|
||||||
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
|
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
|
||||||
<textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
|
<textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars($comment->comment_content, ENT_QUOTES); ?></textarea>
|
||||||
<div class="author-email"><?php if ( $user_can ) echo esc_attr( $comment->comment_author_email ); ?></div>
|
<div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
|
||||||
<div class="author"><?php if ( $user_can ) echo esc_attr( $comment->comment_author ); ?></div>
|
<div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
|
||||||
<div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
|
<div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
|
||||||
<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
|
<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
}
|
||||||
$actions = array();
|
$actions = array();
|
||||||
|
|
||||||
if ( $user_can ) {
|
if ( $user_can ) {
|
||||||
|
|
|
@ -732,7 +732,7 @@ p.pagenav {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column-comment p {
|
.widefat .column-comment p {
|
||||||
margin: 0.6em 0;
|
margin: 0.6em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue