Docblock corrections for `get_the_terms()` function and corresponding filter, and `registered_taxonomy` action. Fixes #29183.
Built from https://develop.svn.wordpress.org/trunk@29467 git-svn-id: http://core.svn.wordpress.org/trunk@29245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ef1be8d30
commit
93c80ac896
|
@ -1240,7 +1240,7 @@ function term_description( $term = 0, $taxonomy = 'post_tag' ) {
|
|||
*
|
||||
* @param int|object $post Post ID or object.
|
||||
* @param string $taxonomy Taxonomy name.
|
||||
* @return array|bool|WP_Error Array of term objects on success, false or WP_Error on failure.
|
||||
* @return array|bool|WP_Error Array of term objects on success, false if there are no terms, WP_Error on failure.
|
||||
*/
|
||||
function get_the_terms( $post, $taxonomy ) {
|
||||
if ( ! $post = get_post( $post ) )
|
||||
|
@ -1257,9 +1257,9 @@ function get_the_terms( $post, $taxonomy ) {
|
|||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param array $terms List of attached terms.
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $taxonomy Name of the taxonomy.
|
||||
* @param array|WP_Error $terms List of attached terms, or WP_Error on failure.
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $taxonomy Name of the taxonomy.
|
||||
*/
|
||||
$terms = apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy );
|
||||
|
||||
|
|
|
@ -429,7 +429,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
|||
*
|
||||
* @param string $taxonomy Taxonomy slug.
|
||||
* @param array|string $object_type Object type or array of object types.
|
||||
* @param array|string $args Array or string of taxonomy registration arguments.
|
||||
* @param array $args Array of taxonomy registration arguments.
|
||||
*/
|
||||
do_action( 'registered_taxonomy', $taxonomy, $object_type, $args );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue