Changeset 44681 for trunk/src/wp-includes/class-walker-comment.php
- Timestamp:
- 01/21/2019 10:45:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-comment.php
r43571 r44681 264 264 $add_below = 'div-comment'; 265 265 } 266 267 $commenter = wp_get_current_commenter(); 268 if ( $commenter['comment_author_email'] ) { 269 $moderation_note = __( 'Your comment is awaiting moderation.' ); 270 } else { 271 $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.' ); 272 } 273 266 274 ?> 267 275 <<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>"> … … 283 291 </div> 284 292 <?php if ( '0' == $comment->comment_approved ) : ?> 285 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></em>293 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 286 294 <br /> 287 295 <?php endif; ?> … … 346 354 protected function html5_comment( $comment, $depth, $args ) { 347 355 $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; 356 357 $commenter = wp_get_current_commenter(); 358 if ( $commenter['comment_author_email'] ) { 359 $moderation_note = __( 'Your comment is awaiting moderation.' ); 360 } else { 361 $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.' ); 362 } 363 348 364 ?> 349 365 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>> … … 377 393 378 394 <?php if ( '0' == $comment->comment_approved ) : ?> 379 < p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></p>395 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 380 396 <?php endif; ?> 381 397 </footer><!-- .comment-meta -->
Note: See TracChangeset
for help on using the changeset viewer.