Skip to:
Content

bbPress.org

Opened 9 years ago

#2894 new defect (bug)

Replace direct SQL query in `bbp_get_all_child_ids()` with `WP_Query()` object

Reported by: netweb's profile netweb Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.0
Component: General - Performance Keywords: has-unit-tests needs-patch
Cc:

Description

Via https://bbpress.trac.wordpress.org/ticket/1799#comment:37

Per the original patch proposals (1799.3.patch, 1799.2.patch, and 1799.patch) was to also replace direct MySQL queries in bbp_get_all_child_ids() with WP_Query() objects as per [5954].

Currently this cannot be achieved because WP_Query() ignores bbPress spam custom post status (possibly others)

See: WP_Query#Status_Parameters and wordpress.org/support/topic/wp_query

Attachments (1)

2894.diff (11.1 KB) - added by netweb 9 years ago.

Download all attachments as: .zip

Change History (1)

@netweb
9 years ago

Note: See TracTickets for help on using tickets.