You appear to be a bot. Output may be restricted
Description
Prevents author-bio.php
partial template from interfering with rendering an author archive of a user with the bio
username.
Usage
$string = twentyfifteen_author_bio_template( $template );
Parameters
- $template
- ( string ) required – Template file.
Returns
string Replacement template file.
Source
File name: twentyfifteen/functions.php
Lines:
1 to 11 of 11
function twentyfifteen_author_bio_template( $template ) { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && 'bio' === $author->user_nicename ) { // Use author templates if exist, fall back to template hierarchy otherwise. return locate_template( array( "author-{$author->ID}.php", 'author.php' ) ); } } return $template; }