Bundled theme: Ensure appropriate title for author archives for that don't have posts.

Rather then displaying `Author: `, show `Nothing Found`.

Fixes #50421.

Props SGr33n, williampatton, ianbelanger, rebasaurus, priyomukul, virginienacci, audrasjb.


Built from https://develop.svn.wordpress.org/trunk@48355


git-svn-id: http://core.svn.wordpress.org/trunk@48124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-07-06 23:12:03 +00:00
parent 216ea50a03
commit a7ad4e288e
2 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,8 @@ get_header();
} else { } else {
$archive_subtitle = __( 'We could not find any results for your search. You can give it another try through the search form below.', 'twentytwenty' ); $archive_subtitle = __( 'We could not find any results for your search. You can give it another try through the search form below.', 'twentytwenty' );
} }
} elseif ( is_archive() && ! have_posts() ) {
$archive_title = __( 'Nothing Found', 'twentytwenty' );
} elseif ( ! is_home() ) { } elseif ( ! is_home() ) {
$archive_title = get_the_archive_title(); $archive_title = get_the_archive_title();
$archive_subtitle = get_the_archive_description(); $archive_subtitle = get_the_archive_description();

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-48354'; $wp_version = '5.5-alpha-48355';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.