- Timestamp:
- 08/02/2019 03:08:06 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r45719 r45721 798 798 $author = get_queried_object(); 799 799 if ( $author instanceof WP_User && 'bio' === $author->user_nicename ) { 800 return locate_template( array( 'archive.php', 'index.php' ) ); 800 // Use author templates if exist, fall back to template hierarchy otherwise. 801 return locate_template( array( "author-{$author->ID}.php", 'author.php' ) ); 801 802 } 802 803 } … … 804 805 return $template; 805 806 } 806 add_filter( ' template_include', 'twentythirteen_author_bio_template' );807 add_filter( 'author_template', 'twentythirteen_author_bio_template' ); 807 808 808 809 if ( ! function_exists( 'wp_body_open' ) ) :
Note: See TracChangeset
for help on using the changeset viewer.