Changeset 46660 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/05/2019 09:21:46 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r46596 r46660 4378 4378 4379 4379 /** 4380 * Retrieve all taxonom ies of a post with just the names.4380 * Retrieve all taxonomy names for the given post. 4381 4381 * 4382 4382 * @since 2.5.0 4383 4383 * 4384 4384 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 4385 * @return arrayAn array of all taxonomy names for the given post.4385 * @return string[] An array of all taxonomy names for the given post. 4386 4386 */ 4387 4387 function get_post_taxonomies( $post = 0 ) { … … 4493 4493 * @param string $resource_type Optional. Type of resource $object_type is. Accepts 'post_type' 4494 4494 * or 'taxonomy'. Default empty. 4495 * @return array An arrayof ancestors from lowest to highest in the hierarchy.4495 * @return int[] An array of IDs of ancestors from lowest to highest in the hierarchy. 4496 4496 */ 4497 4497 function get_ancestors( $object_id = 0, $object_type = '', $resource_type = '' ) { … … 4530 4530 * @since 4.1.1 Introduced the `$resource_type` parameter. 4531 4531 * 4532 * @param array $ancestors An arrayof object ancestors.4532 * @param int[] $ancestors An array of IDs of object ancestors. 4533 4533 * @param int $object_id Object ID. 4534 4534 * @param string $object_type Type of object.
Note: See TracChangeset
for help on using the changeset viewer.