WordPress.org

Make WordPress Core

Ticket #13450: filter_get_comments_link.diff

File filter_get_comments_link.diff, 474 bytes (added by ikailo, 4 years ago)
  • wp-includes/comment-template.php

     
    516516 * @return string The link to the comments 
    517517 */ 
    518518function 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'); 
    520520} 
    521521 
    522522/**