WordPress.org

Make WordPress Core

Ticket #32619: 32619.patch

File 32619.patch, 543 bytes (added by DrewAPicture, 5 years ago)
  • src/wp-includes/link-template.php

     
    36043604        $email_hash = '';
    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 ) ) {
    36093613                $user = get_user_by( 'id', absint( $id_or_email ) );