Changeset 45720 for trunk/src/wp-content/themes/twentyfifteen/functions.php
- Timestamp:
- 08/02/2019 03:07:58 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r45718 r45720 550 550 $author = get_queried_object(); 551 551 if ( $author instanceof WP_User && 'bio' === $author->user_nicename ) { 552 return locate_template( array( 'archive.php', 'index.php' ) ); 552 // Use author templates if exist, fall back to template hierarchy otherwise. 553 return locate_template( array( "author-{$author->ID}.php", 'author.php' ) ); 553 554 } 554 555 } … … 556 557 return $template; 557 558 } 558 add_filter( ' template_include', 'twentyfifteen_author_bio_template' );559 add_filter( 'author_template', 'twentyfifteen_author_bio_template' ); 559 560 560 561
Note: See TracChangeset
for help on using the changeset viewer.