From 5384177208f201905899cebad1601bb5ecbf0720 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 1 Jul 2017 14:22:59 +0000 Subject: [PATCH] General: Ensure `$description` gets initialized in `get_the_archive_description()` if the post type archive conditional is true and the description isn't set. Props henrywright. See #38487. git-svn-id: https://develop.svn.wordpress.org/trunk@40983 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 5ee4e20b4b..026d190108 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -1565,6 +1565,8 @@ function get_the_archive_description() { // Check if a description is set. if ( isset( $post_type_obj->description ) ) { $description = $post_type_obj->description; + } else { + $description = ''; } } else { $description = term_description();