WordPress.org

Make WordPress Core

Ticket #13198: twentyten-edit_comment_link-spacing-text.patch

File twentyten-edit_comment_link-spacing-text.patch, 1.3 KB (added by zeo, 4 years ago)

Twenty Ten: Removes unnecesary edit_comment_link() space,  , parameter. Pingback use string (Edit), like comment.

  • wp-content/themes/twentyten/functions.php

     
    268268                        <br /> 
    269269                <?php endif; ?> 
    270270 
    271                 <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><?php printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ),'  ','' ); ?></div> 
     271                <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><?php printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a> <?php edit_comment_link( __( '(Edit)', 'twentyten' ) ); ?></div> 
    272272 
    273273                <div class="comment-body"><?php comment_text(); ?></div> 
    274274 
     
    279279 
    280280        <?php else : ?> 
    281281        <li class="post pingback"> 
    282                 <p><?php _e( 'Pingback: ', 'twentyten' ); ?><?php comment_author_link(); ?><?php edit_comment_link ( __('edit', 'twentyten'), '&nbsp;&nbsp;', '' ); ?></p> 
     282                <p><?php _e( 'Pingback: ', 'twentyten' ); ?><?php comment_author_link(); ?> <?php edit_comment_link( __('(Edit)', 'twentyten') ); ?></p> 
    283283        <?php endif; 
    284284} 
    285285endif;