[wp-trac] Re: [WordPress Trac] #7956: get_comment_link() should be
paged comments aware
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 26 01:37:35 GMT 2008
#7956: get_comment_link() should be paged comments aware
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner:
Type: defect | Status: new
Priority: high | Milestone: 2.7
Component: Comments | Version: 2.7
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment (by Viper007Bond):
Replying to [comment:8 ryan]:
> Maybe get_page_of_comment() can setup $wp_query->comments in the same
way comments_template() does that way comments_template() can avoid doing
a second query if it is already set.
`get_comment_link()` and `get_page_of_comment()` can be used outside of
the `comments.php` template. For example, a "Latest Comments" widget. The
comment ID being passed to either of those functions may or may not belong
to the post/page that's being displayed.
--
Ticket URL: <http://trac.wordpress.org/ticket/7956#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list