Make WordPress Core

Changeset 41127


Ignore:
Timestamp:
07/24/2017 10:02:45 PM (7 years ago)
Author:
johnbillion
Message:

Comments: Ensure the correct comment ID is passed to the get_comment_author_url filter.

Props dominik.schwind

Fixes #41334

Location:
trunk
Files:
1 added
1 edited

Legend:

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

    r40666 r41127  
    307307        $author_url = ( 'http://' == $comment->comment_author_url ) ? '' : $comment->comment_author_url;
    308308        $url = esc_url( $author_url, array( 'http', 'https' ) );
    309         $id = $comment->ID;
     309        $id = $comment->comment_ID;
    310310    }
    311311
Note: See TracChangeset for help on using the changeset viewer.