diff --git a/wp-content/themes/twentyfifteen/functions.php b/wp-content/themes/twentyfifteen/functions.php index d47db9eb50..189a15cde9 100644 --- a/wp-content/themes/twentyfifteen/functions.php +++ b/wp-content/themes/twentyfifteen/functions.php @@ -549,13 +549,14 @@ function twentyfifteen_author_bio_template( $template ) { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && 'bio' === $author->user_nicename ) { - return locate_template( array( 'archive.php', 'index.php' ) ); + // Use author templates if exist, fall back to template hierarchy otherwise. + return locate_template( array( "author-{$author->ID}.php", 'author.php' ) ); } } return $template; } -add_filter( 'template_include', 'twentyfifteen_author_bio_template' ); +add_filter( 'author_template', 'twentyfifteen_author_bio_template' ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index f1c66b4d0d..86c54cba7e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45719'; +$wp_version = '5.3-alpha-45720'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.