WordPress.org

Make WordPress Core

Changeset 21490


Ignore:
Timestamp:
08/09/12 18:21:58 (20 months ago)
Author:
lancewillett
Message:

Twenty Ten and Eleven: *_continue_reading_link() should be pluggable, fixes #16500. Props nacin and SergeyBiryukov.

Location:
trunk/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r21487 r21490  
    338338add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' ); 
    339339 
     340if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) : 
    340341/** 
    341342 * Returns a "Continue Reading" link for excerpts 
     
    344345    return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>'; 
    345346} 
     347endif; // twentyeleven_continue_reading_link 
    346348 
    347349/** 
  • trunk/wp-content/themes/twentyten/functions.php

    r21486 r21490  
    244244add_filter( 'excerpt_length', 'twentyten_excerpt_length' ); 
    245245 
     246if ( ! function_exists( 'twentyten_continue_reading_link' ) ) : 
    246247/** 
    247248 * Returns a "Continue Reading" link for excerpts 
     
    253254    return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>'; 
    254255} 
     256endif; 
    255257 
    256258/** 
Note: See TracChangeset for help on using the changeset viewer.