Make WordPress Core

Ticket #64104: 64104.patch

File 64104.patch, 541 bytes (added by jdahir0789, 10 months ago)
  • src/wp-includes/author-template.php

    diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
    index a847fdcc16..47402114e6 100644
    a b function the_author( $deprecated = '', $deprecated_echo = true ) {  
    9090 * @return string|void The author's display name, empty string if unknown.
    9191 */
    9292function get_the_modified_author() {
     93        if ( ! get_post() ) {
     94                return;
     95        }
     96
    9397        $last_id = get_post_meta( get_post()->ID, '_edit_last', true );
    9498
    9599        if ( $last_id ) {