Changeset 46424 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 10/07/2019 07:06:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r46232 r46424 3306 3306 3307 3307 /** 3308 * Retrieves the taxonomy relationship to the term object id.3308 * Retrieves the cached term objects for the given object ID. 3309 3309 * 3310 3310 * Upstream functions (like get_the_terms() and is_object_in_term()) are … … 3313 3313 * 3314 3314 * @since 2.3.0 3315 * @since 4.7.0 Returns a `WP_Error` object if `get_term()` returns an error for3315 * @since 4.7.0 Returns a `WP_Error` object if there's an error with 3316 3316 * any of the matched terms. 3317 3317 * 3318 * @param int $id Term object ID .3318 * @param int $id Term object ID, for example a post, comment, or user ID. 3319 3319 * @param string $taxonomy Taxonomy name. 3320 * @return bool| array|WP_Error Array of `WP_Term` objects, if cached.3321 * False if cache is empty for `$taxonomy` and `$id`.3322 * WP_Error if get_term() returns an error object for any term.3320 * @return bool|WP_Term[]|WP_Error Array of `WP_Term` objects, if cached. 3321 * False if cache is empty for `$taxonomy` and `$id`. 3322 * WP_Error if get_term() returns an error object for any term. 3323 3323 */ 3324 3324 function get_object_term_cache( $id, $taxonomy ) {
Note: See TracChangeset
for help on using the changeset viewer.