WordPress.org

Make WordPress Core

Ticket #37259: 37259.diff

File 37259.diff, 899 bytes (added by henry.wright, 3 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index afc3b39..8e946de 100644
    function the_archive_description( $before = '', $after = '' ) { 
    15291529 * @return string Archive description.
    15301530 */
    15311531function get_the_archive_description() {
     1532        if ( is_author() ) {
     1533                $description = get_the_author_meta( 'description' ) ? get_the_author_meta( 'description' ) : '';
     1534        } else {
     1535                $description = term_description();
     1536        }
     1537
    15321538        /**
    15331539         * Filters the archive description.
    15341540         *
    function get_the_archive_description() { 
    15381544         *
    15391545         * @param string $description Archive description to be displayed.
    15401546         */
    1541         return apply_filters( 'get_the_archive_description', term_description() );
     1547        return apply_filters( 'get_the_archive_description', $description );
    15421548}
    15431549
    15441550/**