Ticket #14510: t14510-comment-notes-before-position-condition.diff
| File t14510-comment-notes-before-position-condition.diff, 2.3 KB (added by , 15 years ago) |
|---|
-
wp-includes/comment-template.php
1533 1533 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 1534 1534 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1535 1535 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1536 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',1536 'comment_notes_before' => is_user_logged_in() ? '' : '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 1537 1537 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 1538 1538 'id_form' => 'commentform', 1539 1539 'id_submit' => 'submit', … … 1556 1556 <?php else : ?> 1557 1557 <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"> 1558 1558 <?php do_action( 'comment_form_top' ); ?> 1559 <?php echo $args['comment_notes_before']; ?> 1559 1560 <?php if ( is_user_logged_in() ) : ?> 1560 1561 <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?> 1561 1562 <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?> 1562 1563 <?php else : ?> 1563 <?php echo $args['comment_notes_before']; ?>1564 1564 <?php 1565 1565 do_action( 'comment_form_before_fields' ); 1566 1566 foreach ( (array) $args['fields'] as $name => $field ) {