mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docblock corrections for get_the_terms() function and corresponding filter, and registered_taxonomy action. Fixes #29183.
git-svn-id: https://develop.svn.wordpress.org/trunk@29467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user