[wp-trac] [WordPress Trac] #12363: Comment permalink wrong when only listing one comment type

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 24 14:31:51 UTC 2010


#12363: Comment permalink wrong when only listing one comment type
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.1        
Component:  Comments      |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 If you pass the `type` parameter to `wp_list_comments()` (for example, to
 show comments only and no pings), then comment permalinks can easily use
 the wrong page number as they expect there to be pings included. This is
 apparent after leaving a comment and WordPress attempts to redirect back
 to your new comment.

 At first I was thinking you could tell WordPress that you're filtering to
 a type and it could compensate when determining the page number, but then
 I realized perhaps it'd just be better for `wp_list_comments()` to check
 if there were 0 comments returned for the query and if so, see if there
 are any of that type of comment available. If so, then we know we're on
 too high of a page number and can instead display the highest existing
 page. Then again this introduces SEO issues.

 Ideas on what to do are welcome.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12363>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list