Make WordPress Core


Ignore:
Timestamp:
01/26/2010 10:49:05 PM (17 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

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

    r12821 r12859  
    4141 * @since 0.71
    4242 * @uses apply_filters() Calls 'comment_author' on comment author before displaying
    43  * 
     43 *
    4444 * @param int $comment_ID The ID of the comment for which to print the author. Optional.
    4545 */
     
    857857        if ( empty($file) )
    858858                $file = '/comments.php';
    859        
     859
    860860        $req = get_option('require_name_email');
    861861
     
    14491449 * in the array of fields.
    14501450 *
    1451  * @since 3.0 
     1451 * @since 3.0
    14521452 * @param array $args Options for strings, fields etc in the form
    14531453 * @param mixed $post_id Post ID to generate the form for, uses the current post if null
     
    14561456function comment_form( $args = array(), $post_id = null ) {
    14571457        global $user_identity, $id;
    1458                
     1458
    14591459        if ( null === $post_id )
    14601460                $post_id = $id;
    14611461        else
    14621462                $id = $post_id;
    1463        
     1463
    14641464        $commenter = wp_get_current_commenter();
    1465        
     1465
    14661466        $req = get_option( 'require_name_email' );
    14671467        $aria_req = ( $req ? " aria-required='true'" : '' );
    14681468        $req_str  = ( $req ? __( ' (required)' ) : '' );
    1469         $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p><input type="text" name="author" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" size="22" tabindex="1"' . $aria_req . ' /> <label for="author"><small>' . __( 'Name' ) . $req_str . '</small></label></p>', 
    1470                                                                                                                                                                             'email'  => '<p><input type="text" name="email" id="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="22" tabindex="2"' . $aria_req . ' /> <label for="email"><small>' . __( 'Mail (will not be published)' ) . $req_str . '</small></label></p>', 
     1469        $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p><input type="text" name="author" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" size="22" tabindex="1"' . $aria_req . ' /> <label for="author"><small>' . __( 'Name' ) . $req_str . '</small></label></p>',
     1470                                                                                                                                                                            'email'  => '<p><input type="text" name="email" id="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="22" tabindex="2"' . $aria_req . ' /> <label for="email"><small>' . __( 'Mail (will not be published)' ) . $req_str . '</small></label></p>',
    14711471                                                                                                                                                                            'url'    => '<p><input type="text" name="url" id="url" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="22" tabindex="3" /> <label for="url"><small>' . __( 'Website' ) . '</small></label></p>' ) ),
    1472                                                 'comment_field' => '<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>', 
    1473                                                 'must_log_in' => '<p>' .  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>', 
    1474                                                 'logged_in_as' => '<p>' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out &raquo;</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 
    1475                                                 'id_form' => 'commentform', 
    1476                                                 'id_submit' => 'submit', 
    1477                                                 'title_reply' => __( 'Leave a Reply' ), 
    1478                                                 'title_reply_to' => __( 'Leave a Reply to %s'), 
    1479                                                 'cancel_reply_link' => '', 
    1480                                                 'label_submit' => __( 'Submit Comment' ), 
     1472                                                'comment_field' => '<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>',
     1473                                                'must_log_in' => '<p>' .  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>',
     1474                                                'logged_in_as' => '<p>' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out &raquo;</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),
     1475                                                'id_form' => 'commentform',
     1476                                                'id_submit' => 'submit',
     1477                                                'title_reply' => __( 'Leave a Reply' ),
     1478                                                'title_reply_to' => __( 'Leave a Reply to %s'),
     1479                                                'cancel_reply_link' => '',
     1480                                                'label_submit' => __( 'Submit Comment' ),
    14811481                                );
    14821482        $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
    1483        
     1483
    14841484        ?>
    14851485                <?php if ( comments_open() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.