2007-09-15 13:35:32 -04:00
|
|
|
<?php
|
2007-10-15 18:49:31 -04:00
|
|
|
/**
|
2015-09-22 09:23:25 -04:00
|
|
|
* Core Taxonomy API
|
2015-05-04 22:01:25 -04:00
|
|
|
*
|
2007-10-15 18:49:31 -04:00
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Taxonomy
|
2015-09-22 09:23:25 -04:00
|
|
|
* @since 2.3.0
|
2007-10-15 18:49:31 -04:00
|
|
|
*/
|
2007-09-15 13:35:32 -04:00
|
|
|
|
2015-09-22 09:23:25 -04:00
|
|
|
/** Core taxonomy functionality */
|
2015-08-26 08:49:21 -04:00
|
|
|
require_once( ABSPATH . WPINC . '/taxonomy-functions.php' );
|
2015-09-22 09:23:25 -04:00
|
|
|
|
Introduce `WP_Term`.
`get_term()` now returns a `WP_Term` object, instead of a `stdClass` object.
Cache support and sanitization filters for individual terms are now more
centralized. For example, `get_term_by()` is able to cast results of its query
to a `WP_Term` object by passing it through `get_term()`.
The `$taxonomy` parameter for `get_term()` is now optional, as terms ought to
be unique to a taxonomy (ie, shared terms no longer exist). In cases where
`get_term()` detects that the term matching the specified term_id is from the
wrong taxonomy, it checks to see if you've requested a shared term, and if so,
it splits the term. This is used only for fallback purposes.
The elimination of shared terms allows the caching strategy for terms to be
simplified. Individual terms are now cached in a single 'terms' bucket.
Props flixos90, boonebgorges, scribu, dipesh.kakadiya.
See #14162.
Built from https://develop.svn.wordpress.org/trunk@34997
git-svn-id: http://core.svn.wordpress.org/trunk@34962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-09 21:59:29 -04:00
|
|
|
/** WP_Term class */
|
|
|
|
require_once( ABSPATH . WPINC . '/class-wp-term.php' );
|
|
|
|
|
2015-09-22 09:23:25 -04:00
|
|
|
/** WP_Tax_Query class */
|
2015-08-26 08:49:21 -04:00
|
|
|
require_once( ABSPATH . WPINC . '/class-wp-tax-query.php' );
|