From a7ad4e288e3fc8275e178c5ee9747bccd9e763a5 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Mon, 6 Jul 2020 23:12:03 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentytwenty/index.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwenty/index.php b/wp-content/themes/twentytwenty/index.php index 54700e8862..b3037b660d 100644 --- a/wp-content/themes/twentytwenty/index.php +++ b/wp-content/themes/twentytwenty/index.php @@ -47,6 +47,8 @@ get_header(); } else { $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() ) { $archive_title = get_the_archive_title(); $archive_subtitle = get_the_archive_description(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 591a3412d1..c69cd4b27c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.