Remove an unnecessary initialization of $description due to the else condition in get_the_archive_description().

See [40976]. See #38487.

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


git-svn-id: http://core.svn.wordpress.org/trunk@40827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2017-07-01 05:19:41 +00:00
parent f6b5c794bf
commit d6f7788935
2 changed files with 1 additions and 3 deletions

View File

@ -1551,8 +1551,6 @@ function the_archive_description( $before = '', $after = '' ) {
* @return string Archive description.
*/
function get_the_archive_description() {
$description = '';
if ( is_author() ) {
$description = get_the_author_meta( 'description' );
} elseif ( is_post_type_archive() ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-40976';
$wp_version = '4.9-alpha-40977';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.