Opened 15 years ago
Closed 15 years ago
#1671 closed defect (bug) (fixed)
Invalid default argument key "sort_column" in bbp_forum_get_subforums()
| Reported by: | ericlewis | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Component - Forums | Version: | 2.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Came across this today when I noticed subforums sorting strangely on the forums homepage. Found out they were actually sorting by ID, which is because in the $default array the key being used is 'sort_column', not 'orderby', which I'm assuming was an oversight while converting all forums over to CPTs in BBP 2.0.
I've changed the key to 'orderby', and also took out ", post_title" as the 'orderby' argument expects only one value, which I left as "menu_order"
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
patch for basic fix.