mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Better standardize parameter value types in PHPDocs where both a post ID or WP_Post would be acceptable.
Covers cases where previously only `int` or `int|object` types were notated. Props coffee2code for the original patch. See #20495. git-svn-id: https://develop.svn.wordpress.org/trunk@27473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3193,7 +3193,7 @@ function the_taxonomies($args = array()) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param int $post Optional. Post ID or will use Global Post ID (in loop).
|
||||
* @param int|WP_Post $post Optional. Post ID or post object.
|
||||
* @param array $args Override the defaults.
|
||||
* @return array
|
||||
*/
|
||||
@@ -3240,7 +3240,7 @@ function get_the_taxonomies($post = 0, $args = array() ) {
|
||||
* @since 2.5.0
|
||||
* @uses get_object_taxonomies()
|
||||
*
|
||||
* @param int $post Optional. Post ID
|
||||
* @param int|WP_Post $post Optional. Post ID or post object.
|
||||
* @return array
|
||||
*/
|
||||
function get_post_taxonomies($post = 0) {
|
||||
|
||||
Reference in New Issue
Block a user