Changeset 46117 for trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
- Timestamp:
- 09/14/2019 08:59:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.