Changeset 46117 for trunk/src/wp-content/themes/twentyeleven/functions.php
- Timestamp:
- 09/14/2019 08:59:29 PM (5 years ago)
- File:
-
- 1 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>
Note: See TracChangeset
for help on using the changeset viewer.