Changeset 23624
- Timestamp:
- 03/06/2013 07:57:31 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r22123 r23624 517 517 */ 518 518 function get_comments_link($post_id = 0) { 519 return get_permalink($post_id) . '#comments';519 return apply_filters( 'get_comments_link', get_permalink( $post_id ) . '#comments', $post_id ); 520 520 } 521 521 … … 533 533 if ( !empty( $deprecated_2 ) ) 534 534 _deprecated_argument( __FUNCTION__, '1.3' ); 535 echo get_comments_link();535 echo esc_url( get_comments_link() ); 536 536 } 537 537 -
trunk/wp-includes/feed.php
r23591 r23624 199 199 */ 200 200 function comments_link_feed() { 201 echo esc_url( get_comments_link() );201 echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) ); 202 202 } 203 203 … … 240 240 */ 241 241 function comment_link() { 242 echo esc_url( get_comment_link() );242 echo esc_url( apply_filters( 'comment_link', get_comment_link() ) ); 243 243 } 244 244
Note: See TracChangeset
for help on using the changeset viewer.