Changeset 46117 for trunk/src/wp-content/themes/twentytwelve/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/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.