Make WordPress Core

Ticket #30176: 30176.2.patch

File 30176.2.patch, 7.9 KB (added by davidakennedy, 11 years ago)

Removes leading space; concatenates ellipses with spaces and link.

  • wp-content/themes/twentyfourteen/content-aside.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-audio.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-gallery.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-image.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-link.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-quote.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content-video.php

     
    4343
    4444        <div class="entry-content">
    4545                <?php
    46                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46                        /* translators: %s: Name of current post */
     47                        the_content( sprintf(
     48                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50                        ) );
     51                       
    4752                        wp_link_pages( array(
    4853                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    4954                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/content.php

     
    5151        <?php else : ?>
    5252        <div class="entry-content">
    5353                <?php
    54                         the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     54                        /* translators: %s: Name of current post */
     55                        the_content( sprintf(
     56                                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     57                                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     58                        ) );
     59
    5560                        wp_link_pages( array(
    5661                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    5762                                'after'       => '</div>',
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    201201
    202202        <?php endif; // End is_singular()
    203203}
     204
     205if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) :
     206/**
     207* Replaces "[...]" (appended to automatically generated excerpts) with ... and a Continue reading link.
     208*
     209* @since Twenty Fouteen 1.3
     210*
     211*/
     212function twentyfourteen_excerpt_more( $more ) {
     213        $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>',
     214                esc_url( get_permalink( get_the_ID() ) ),
     215                        /* translators: %s: Name of current post */
     216                        sprintf( esc_html__( 'Continue reading %s', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span> <span class="meta-nav">&rarr;</span>' )
     217                );
     218        return ' &hellip; ' . $link;
     219}
     220add_filter( 'excerpt_more', 'twentyfourteen_excerpt_more' );
     221endif;