Make WordPress Core

Ticket #13198: twentyten-nbsp-space.patch

File twentyten-nbsp-space.patch, 2.8 KB (added by zeo, 15 years ago)

Twenty Ten, don't need   since it's in a single line. Normal spacing should work.

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

     
    227227 * @return string A pretty 'Continue reading' link.
    228228 */
    229229function twentyten_excerpt_more( $more ) {
    230         return '&nbsp;&hellip; <a href="'. get_permalink() . '">' . __('Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten') . '</a>';
     230        return ' &hellip; <a href="'. get_permalink() . '">' . __('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten') . '</a>';
    231231}
    232232add_filter( 'excerpt_more', 'twentyten_excerpt_more' );
    233233
     
    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;
  • wp-content/themes/twentyten/loop.php

     
    9191                        </div><!-- .entry-summary -->
    9292        <?php else : ?>
    9393                        <div class="entry-content">
    94                                 <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     94                                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    9595                        </div><!-- .entry-content -->
    9696        <?php endif; ?>
    9797
     
    136136                        </div><!-- .entry-summary -->
    137137        <?php else : ?>
    138138                        <div class="entry-content">
    139                                 <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     139                                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    140140                                <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    141141                        </div><!-- .entry-content -->
    142142        <?php endif; ?>