WordPress.org

Make WordPress Core

Changeset 34160


Ignore:
Timestamp:
09/15/2015 01:33:29 AM (5 years ago)
Author:
wonderboymusic
Message:

In get_avatar_data(), promote stdClass objects to WP_Comment if passed.

Props DrewAPicture, ocean90.
Fixes #32619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r34117 r34160  
    36053605    $user = $email = false;
    36063606
     3607    if ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) {
     3608        $id_or_email = get_comment( $id_or_email );
     3609    }
     3610
    36073611    // Process the user identifier.
    36083612    if ( is_numeric( $id_or_email ) ) {
Note: See TracChangeset for help on using the changeset viewer.