Make WordPress Core

Ticket #55420: author-template.patch

File author-template.patch, 497 bytes (added by juanlopez4691, 2 years ago)
  • wp-includes/author-template.php

    diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php
    index 2911366f..bc113b64 100644
    a b function get_the_modified_author() { 
    101101                 *
    102102                 * @param string $display_name The author's display name.
    103103                 */
    104                 return apply_filters( 'the_modified_author', $last_user->display_name );
     104                return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' );
    105105        }
    106106}
    107107