Opened 8 months ago
Closed 8 months ago
#3631 closed defect (bug) (fixed)
WP_Query normalization in WordPress 6.8 breaks _bbp_has_replies_where()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6.13 | Priority: | high |
| Severity: | normal | Version: | 2.1 |
| Component: | Component - Replies | Keywords: | |
| Cc: |
Description
See: https://core.trac.wordpress.org/ticket/63255
While testing recent changes in the WordPress 6.8 beta, an issue was discovered in the _bbp_has_replies_where() function. The problem stems from a comparison against get( 'post_type' ), which now returns alphabetically sorted values - a change from previous behavior.
The solution (props @vortfu) is to compare the arrays by their differences rather than relying on direct equality.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Diff for the 2.6 branch