WordPress.org

Make WordPress Core

Changeset 13171


Ignore:
Timestamp:
02/16/10 17:54:19 (4 years ago)
Author:
ryan
Message:

Add optional post ID arg to get_comments_link(). Props scribu. fixes #12249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r13030 r13171  
    513513 * @since 1.5.0 
    514514 * 
     515 * @param int $post_id Optional post id 
    515516 * @return string The link to the comments 
    516517 */ 
    517 function get_comments_link() { 
    518     return get_permalink() . '#comments'; 
     518function get_comments_link($post_id = 0) { 
     519    return get_permalink($post_id) . '#comments'; 
    519520} 
    520521 
Note: See TracChangeset for help on using the changeset viewer.