Ticket #43857: 43857.12.diff
File 43857.12.diff, 2.0 KB (added by , 6 years ago) |
---|
-
src/wp-includes/class-walker-comment.php
263 263 $tag = 'li'; 264 264 $add_below = 'div-comment'; 265 265 } 266 267 $commenter = wp_get_current_commenter(); 268 266 269 ?> 267 270 <<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>"> 268 271 <?php if ( 'div' != $args['style'] ) : ?> … … 282 285 ?> 283 286 </div> 284 287 <?php if ( '0' == $comment->comment_approved ) : ?> 285 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></em> 288 <em class="comment-awaiting-moderation"> 289 <?php _e( 'Your comment is awaiting moderation.' ); ?> 290 <?php 291 if ( empty( $commenter['comment_author_email'] ) ) { 292 _e( 'It is visible only to you and only after it is posted.' ); 293 } 294 ?> 295 </em> 286 296 <br /> 287 297 <?php endif; ?> 288 298 … … 345 355 */ 346 356 protected function html5_comment( $comment, $depth, $args ) { 347 357 $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; 358 $commenter = wp_get_current_commenter(); 359 348 360 ?> 349 361 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>> 350 362 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> … … 376 388 </div><!-- .comment-metadata --> 377 389 378 390 <?php if ( '0' == $comment->comment_approved ) : ?> 379 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></p> 391 <p class="comment-awaiting-moderation"> 392 <?php _e( 'Your comment is awaiting moderation.' ); ?> 393 <?php 394 if ( empty( $commenter['comment_author_email'] ) ) { 395 _e( 'It is visible only to you and only after it is posted.' ); 396 } 397 ?> 398 </p> 380 399 <?php endif; ?> 381 400 </footer><!-- .comment-meta --> 382 401