- Timestamp:
- 11/19/2014 06:34:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r28699 r30390 462 462 } 463 463 464 if ( ! function_exists( 'twentythirteen_excerpt_more' ) && ! is_admin() ) : 465 /** 466 * Replaces "[...]" (appended to automatically generated excerpts) with ... 467 * and a Continue reading link. 468 * 469 * @since Twenty Thirteen 1.4 470 * 471 * @param string $more Default Read More excerpt link. 472 * @return string Filtered Read More excerpt link. 473 */ 474 function twentythirteen_excerpt_more( $more ) { 475 $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', 476 esc_url( get_permalink( get_the_ID() ) ), 477 /* translators: %s: Name of current post */ 478 sprintf( esc_html__( 'Continue reading %s', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span> <span class="meta-nav">→</span>' ) 479 ); 480 return ' … ' . $link; 481 } 482 add_filter( 'excerpt_more', 'twentythirteen_excerpt_more' ); 483 endif; 484 464 485 /** 465 486 * Extend the default WordPress body classes.
Note: See TracChangeset
for help on using the changeset viewer.