Skip to content

Commit

Permalink
Parameter #1 ($post) of type is nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke-omae authored Nov 17, 2022
1 parent 4e72f78 commit 70a4ec5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wp-includes/category-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,8 +1279,10 @@ function term_description( $term = 0, $deprecated = null ) {
*
* @since 2.5.0
*
* @param int|WP_Post $post Post ID or object.
* @param string $taxonomy Taxonomy name.
* @param int|WP_Post|null $post Post ID or object. null or 0 values return taxonomy attached
the current global post inside the loop. A numerically valid
post ID that points to a non-existent post returns false.
* @param string $taxonomy Taxonomy name.
* @return WP_Term[]|false|WP_Error Array of WP_Term objects on success, false if there are no terms
* or the post does not exist, WP_Error on failure.
*/
Expand Down

0 comments on commit 70a4ec5

Please sign in to comment.