Changeset 46117
- Timestamp:
- 09/14/2019 08:59:29 PM (5 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/functions.php
r45932 r46117 744 744 </div><!-- .comment-author .vcard --> 745 745 746 <?php if ( $comment->comment_approved == '0' ) : ?> 747 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyeleven' ); ?></em> 746 <?php 747 $commenter = wp_get_current_commenter(); 748 if ( $commenter['comment_author_email'] ) { 749 $moderation_note = __( 'Your comment is awaiting moderation.', 'twentyeleven' ); 750 } else { 751 $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentyeleven' ); 752 } 753 ?> 754 755 <?php if ( '0' == $comment->comment_approved ) : ?> 756 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 748 757 <br /> 749 <?php endif; ?>758 <?php endif; ?> 750 759 751 760 </footer> -
trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r45932 r46117 89 89 </div><!-- .comment-metadata --> 90 90 91 <?php 92 $commenter = wp_get_current_commenter(); 93 if ( $commenter['comment_author_email'] ) { 94 $moderation_note = __( 'Your comment is awaiting moderation.', 'twentynineteen' ); 95 } else { 96 $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentynineteen' ); 97 } 98 ?> 99 91 100 <?php if ( '0' == $comment->comment_approved ) : ?> 92 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentynineteen' ); ?></p>101 <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> 93 102 <?php endif; ?> 103 94 104 </footer><!-- .comment-meta --> 95 105 -
trunk/src/wp-content/themes/twentyten/functions.php
r45932 r46117 429 429 ?> 430 430 </div><!-- .comment-author .vcard --> 431 <?php if ( $comment->comment_approved == '0' ) : ?> 432 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 433 <br /> 431 432 <?php 433 $commenter = wp_get_current_commenter(); 434 if ( $commenter['comment_author_email'] ) { 435 $moderation_note = __( 'Your comment is awaiting moderation.', 'twentyten' ); 436 } else { 437 $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentyten' ); 438 } 439 ?> 440 441 <?php if ( '0' == $comment->comment_approved ) : ?> 442 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 443 <br /> 434 444 <?php endif; ?> 435 445 -
trunk/src/wp-content/themes/twentytwelve/functions.php
r45932 r46117 447 447 </header><!-- .comment-meta --> 448 448 449 <?php 450 $commenter = wp_get_current_commenter(); 451 if ( $commenter['comment_author_email'] ) { 452 $moderation_note = __( 'Your comment is awaiting moderation.', 'twentytwelve' ); 453 } else { 454 $moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentytwelve' ); 455 } 456 ?> 457 449 458 <?php if ( '0' == $comment->comment_approved ) : ?> 450 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>451 <?php endif; ?>459 <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> 460 <?php endif; ?> 452 461 453 462 <section class="comment-content comment">
Note: See TracChangeset
for help on using the changeset viewer.