Ticket #51189: 51189.2.diff
File 51189.2.diff, 976 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/comment-template.php
1647 1647 * 1648 1648 * @since 2.7.0 1649 1649 * @since 4.4.0 Added the ability for `$comment` to also accept a WP_Comment object. 1650 * 1650 * 1651 1651 * @param array $args { 1652 1652 * Optional. Override default arguments. 1653 1653 * … … 1706 1706 return false; 1707 1707 } 1708 1708 1709 if ( get_option( 'page_comments' ) ) { 1710 $permalink = str_replace( '#comment-' . $comment->comment_ID, '', get_comment_link( $comment ) ); 1711 } else { 1712 $permalink = get_permalink( $post->ID ); 1713 } 1714 1709 1715 /** 1710 1716 * Filters the comment reply link arguments. 1711 1717 * … … 1750 1756 'unapproved' => false, 1751 1757 'moderation-hash' => false, 1752 1758 ), 1753 get_permalink( $post->ID )1759 $permalink 1754 1760 ) 1755 1761 ) . '#' . $args['respond_id'], 1756 1762 $data_attribute_string,