Make WordPress Core


Ignore:
Timestamp:
11/01/2014 03:39:04 AM (12 years ago)
Author:
lancewillett
Message:

Twenty Ten and Eleven: don't display modified excerpt link in wp-admin.

Props kraftbj, fixes #30026.

File:
1 edited

Legend:

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

    r25746 r30145  
    296296 */
    297297function twentyten_auto_excerpt_more( $more ) {
    298     return ' …' . twentyten_continue_reading_link();
     298    if ( ! is_admin() ) {
     299        return ' …' . twentyten_continue_reading_link();
     300    }
     301    return $more;
    299302}
    300303add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
     
    312315 */
    313316function twentyten_custom_excerpt_more( $output ) {
    314     if ( has_excerpt() && ! is_attachment() ) {
     317    if ( has_excerpt() && ! is_attachment() && ! is_admin() ) {
    315318        $output .= twentyten_continue_reading_link();
    316319    }
Note: See TracChangeset for help on using the changeset viewer.