[wp-trac] [WordPress Trac] #17026: parent_dropdown() is not filterable

WordPress Trac noreply at wordpress.org
Thu Oct 23 00:55:47 UTC 2014


#17026: parent_dropdown() is not filterable
-------------------------+-----------------------------
 Reporter:  kevinB       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by boonebgorges):

 * keywords:  has-patch needs-refresh => has-patch


Comment:

 The performance differences are not huge. I jury-rigged a database so that
 `parent_dropdown()` would generate about 10,000 items. Execution time and
 memory footprint with [attachment:17026.2.diff] are maybe 10-15% more than
 the direct query. I squeezed a little extra performance out with
 no_found_rows=true and by turning off cache priming for terms/meta.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17026#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list