Make WordPress Core

Ticket #23851: 23851.5.diff

File 23851.5.diff, 2.1 KB (added by cleanshooter, 12 years ago)

adding classes...

  • /Users/motacekj/

    old new  
    20012001                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
    20022002                '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>',
    20032003                'id_form'              => 'commentform',
     2004                'class_form'           => 'comments-area',
    20042005                'id_submit'            => 'submit',
     2006                'class_submit'             => 'button',
    20052007                'title_reply'          => __( 'Leave a Reply' ),
    20062008                'title_reply_to'       => __( 'Leave a Reply to %s' ),
    20072009                'cancel_reply_link'    => __( 'Cancel reply' ),
     
    20432045                                        do_action( 'comment_form_must_log_in_after' );
    20442046                                        ?>
    20452047                                <?php else : ?>
    2046                                         <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' : ''; ?>>
     2048                                        <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="<?php echo esc_attr( $args['class_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>>
    20472049                                                <?php
    20482050                                                /**
    20492051                                                 * Fires at the top of the comment form, inside the <form> tag.
     
    21182120                                                ?>
    21192121                                                <?php echo $args['comment_notes_after']; ?>
    21202122                                                <p class="form-submit">
    2121                                                         <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
     2123                                                        <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" class="<?php echo esc_attr( $args['class_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    21222124                                                        <?php comment_id_fields( $post_id ); ?>
    21232125                                                </p>
    21242126                                                <?php