WordPress.org

Make WordPress Core

Ticket #41334: comment-template.diff

File comment-template.diff, 503 bytes (added by dominik.schwind, 4 years ago)

This patch should fix that problem.

  • src/wp-includes/comment-template.php

     
    306306        if ( ! empty( $comment ) ) {
    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
    312312        /**