[wp-trac] [WordPress Trac] #14162: Introduce WP_Term class

WordPress Trac noreply at wordpress.org
Sat Oct 10 03:49:20 UTC 2015


#14162: Introduce WP_Term class
------------------------------------+---------------------------
 Reporter:  scribu                  |       Owner:  boonebgorges
     Type:  task (blessed)          |      Status:  closed
 Priority:  normal                  |   Milestone:  4.4
Component:  Taxonomy                |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Basic functionality here is complete. Functions that return single terms
 (`get_term()`, `get_term_by()`) now return `WP_Term` objects. Functions
 that return arrays of terms (`get_terms()`, `wp_get_object_terms()`) now
 return arrays of `WP_Term` objects.

 These changes don't really have much practical effect. Calls to the
 functions above have always primed term caches. The real performance
 improvements will come through more extensive leveraging of the individual
 term caches, especially in functions that return bulk terms. Let's handle
 that issue in a separate ticket.

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


More information about the wp-trac mailing list