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:
parent
f6b5c794bf
commit
d6f7788935
|
@ -1551,8 +1551,6 @@ function the_archive_description( $before = '', $after = '' ) {
|
||||||
* @return string Archive description.
|
* @return string Archive description.
|
||||||
*/
|
*/
|
||||||
function get_the_archive_description() {
|
function get_the_archive_description() {
|
||||||
$description = '';
|
|
||||||
|
|
||||||
if ( is_author() ) {
|
if ( is_author() ) {
|
||||||
$description = get_the_author_meta( 'description' );
|
$description = get_the_author_meta( 'description' );
|
||||||
} elseif ( is_post_type_archive() ) {
|
} elseif ( is_post_type_archive() ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue