mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
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:
@@ -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() ) {
|
||||
|
||||
Reference in New Issue
Block a user