#8058 closed enhancement (fixed)
Please add get_previous_comments_link() and get_next_comments_link() functions.
| Reported by: | nkuttler | Owned by: | Viper007Bond |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.1 |
| Component: | Comments | Version: | 2.7 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Why would they be useful? If you enable comment paging it should be possible to hide the page browser if there are no next / previous comment pages. Current solution
if ( get_query_var('cpage') > 1 || get_query_var('cpage') < get_comment_pages_count() ) {
// comment browser
}
Something like
if (get_previous_comments_link() || get_next_comments_link() ) {
//comment browser
}
would be much nicer for theme developers.
Attachments (3)
Change History (12)
#3
@
18 years ago
Attached patch should be entirely backwards compatible while adding the new functions.
#6
@
18 years ago
- Milestone 2.7 → 2.8
- Resolution fixed
- Status closed → reopened
Yet another reason why I need to stop coding at 4 AM. The ticket was for comment paging links, not post paging.
#7
@
18 years ago
- Keywords has-patch added; needs-patch removed
- Milestone 2.8 → 2.7.1
That should do the trick.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I'll take care of this later today (time for bed soon) if someone doesn't beat me to it.