Skip to:
Content

bbPress.org

#2894 new defect (bug)

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

Reported by:netweb's profile netwebOwned by:
Milestone:Future ReleasePriority:normal
Severity:normalVersion:2.0
Component:General - PerformanceKeywords:has-unit-tests needs-
Cc:

Description

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

Per the original proposals (1799.3., 1799.2., and 1799.) 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.