WordPress.org

Make WordPress Core

Ticket #32619: 32619.6.patch

File 32619.6.patch, 629 bytes (added by ocean90, 5 years ago)
  • src/wp-includes/link-template.php

     
    36213621        } elseif ( $id_or_email instanceof WP_Post ) {
    36223622                // Post Object
    36233623                $user = get_user_by( 'id', (int) $id_or_email->post_author );
    3624         } elseif ( $id_or_email instanceof WP_Comment ) {
     3624        } elseif ( $id_or_email instanceof WP_Comment || ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) ) {
    36253625                /**
    36263626                 * Filter the list of allowed comment types for retrieving avatars.
    36273627                 *