Make WordPress Core

Ticket #16500: 16500.patch

File 16500.patch, 1.6 KB (added by SergeyBiryukov, 12 years ago)
  • wp-content/themes/twentyeleven/functions.php

     
    320320}
    321321add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' );
    322322
     323if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) :
    323324/**
    324325 * Returns a "Continue Reading" link for excerpts
    325326 */
    326327function twentyeleven_continue_reading_link() {
    327328        return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
    328329}
     330endif; // twentyeleven_continue_reading_link
    329331
    330332/**
    331333 * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
  • wp-content/themes/twentyten/functions.php

     
    238238}
    239239add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    240240
     241if ( ! function_exists( 'twentyten_continue_reading_link' ) ) :
    241242/**
    242243 * Returns a "Continue Reading" link for excerpts
    243244 *
     
    247248function twentyten_continue_reading_link() {
    248249        return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
    249250}
     251endif; // twentyten_continue_reading_link
    250252
    251253/**
    252254 * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().