Changeset 51081
- Timestamp:
- 06/07/2021 09:48:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r49936 r51081 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. … … 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. … … 1751 1757 'moderation-hash' => false, 1752 1758 ), 1753 get_permalink( $post->ID )1759 $permalink 1754 1760 ) 1755 1761 ) . '#' . $args['respond_id'],
Note: See TracChangeset
for help on using the changeset viewer.