Make WordPress Core

Changeset 34244


Ignore:
Timestamp:
09/16/2015 05:33:34 PM (10 years ago)
Author:
wonderboymusic
Message:

After [34160], also upgrade objects passed to get_avatar().

See #32619.

File:
1 edited

Legend:

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

    r34239 r34244  
    22752275    }
    22762276
     2277    if ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) {
     2278        $id_or_email = get_comment( $id_or_email );
     2279    }
     2280
    22772281    /**
    22782282     * Filter whether to retrieve the avatar URL early.
Note: See TracChangeset for help on using the changeset viewer.