Remove an unnecessary initialization of `$description` due to the else condition in `get_the_archive_description()`.
See [40976]. See #38487. git-svn-id: https://develop.svn.wordpress.org/trunk@40977 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
336d718bfc
commit
2744e29fd3
|
@ -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() ) {
|
||||||
|
|
Loading…
Reference in New Issue