[wp-trac] Re: [WordPress Trac] #9069: Function get_comment_link returns duplicate URLs for comments available at permalink

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 7 10:13:24 GMT 2009


#9069: Function get_comment_link returns duplicate URLs for comments available at
permalink
---------------------------+------------------------------------------------
 Reporter:  GregMulhauser  |       Owner:                
     Type:  defect (bug)   |      Status:  new           
 Priority:  normal         |   Milestone:  Future Release
Component:  Comments       |     Version:  2.7.1         
 Severity:  normal         |    Keywords:                
---------------------------+------------------------------------------------
Changes (by Viper007Bond):

  * milestone:  2.7.2 => Future Release


Comment:

 Remember that `comment-page-1` is not always the comment page that is
 shown by default, it depends on the option.

 Anyway, `get_page_of_comment()` is fine, but `get_comment_link()` should
 be smart enough to not add the comment page to the URL if the returned
 value of `get_page_of_comment()` is the same as the default.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9069#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list