Opened 4 years ago
Closed 4 years ago
#1049 closed enhancement (wontfix)
Add a filter to allow displaying threads in reverse order
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Front-end | Version: | 1.0-rc-2 |
| Severity: | minor | Keywords: | thread, reverse, filter, apply_filters, has-patch |
| Cc: |
Description
In reponse to a support forum thread here: http://bbpress.org/forums/topic/reverse-the-display-of-the-messages
The get_thread() function allows a third parameter which, when set, reverses the order of the thread. Let's put a filter on this parameter inside the function which will allow a plugin to reverse the order of the thread.
Attachments (1)
Change History (5)
johnbillion — 4 years ago
comment:1
johnbillion — 4 years ago
- Keywords has-patch added
comment:2
johnbillion — 4 years ago
At it's most basic, a plugin can reverse the thread order like this:
add_filter( 'reverse_thread', create_function( '$a', 'return true;' ) );
In most cases, a complete plugin will contain conditionals to determine when to reverse the thread order (eg. based on a user setting or a URL parameter).
comment:3
johnbillion — 4 years ago
- Milestone set to 1.0-beta & XML-RPC
Note: See
TracTickets for help on using
tickets.
Patch.