Make WordPress Core


Ignore:
Timestamp:
06/27/2013 09:18:08 PM (11 years ago)
Author:
nacin
Message:

Comment form: Add HTML classes.

  • #respond gains .comment-respond
  • #reply-title gains .comment-reply-titlw
  • form gains .comment-form

props obenland.
see #23851.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r24417 r24525  
    16441644        <?php if ( comments_open( $post_id ) ) : ?>
    16451645            <?php do_action( 'comment_form_before' ); ?>
    1646             <div id="respond">
    1647                 <h3 id="reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>
     1646            <div id="respond" class="comment-respond">
     1647                <h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>
    16481648                <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?>
    16491649                    <?php echo $args['must_log_in']; ?>
    16501650                    <?php do_action( 'comment_form_must_log_in_after' ); ?>
    16511651                <?php else : ?>
    1652                     <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>>
     1652                    <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>>
    16531653                        <?php do_action( 'comment_form_top' ); ?>
    16541654                        <?php if ( is_user_logged_in() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.