[wp-trac] Re: [WordPress Trac] #7927: Paged comments should show
the LATEST page of comments by default, not the EARLIEST
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 24 06:17:51 GMT 2008
#7927: Paged comments should show the LATEST page of comments by default, not the
EARLIEST
-------------------------+--------------------------------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: high | Milestone: 2.7
Component: Comments | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment (by Viper007Bond):
We need a `get_comment_link()` or whatever too.
The link-to-comment URLs (the date in the default theme) are just `<a
href="#comment-123"...`. This is problematic if we're showing the latest
page by default as that'd generate `http://site.com/hello-
world/#comment-123` but if we get to the next page, that'd be wrong.
This function can probably get away with cheating by doing
`get_permalink($post_ID) . `/comment-page-[current page]/#comment-123`
rather than actually calculating out what page the comment would be
displayed on.
Off to fix my horrible/broken custom `$comments` for `wp_list_comments()`
code that DD32 attempted to fix.
--
Ticket URL: <http://trac.wordpress.org/ticket/7927#comment:26>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list