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:
Drew Jaynes
2014-03-08 19:31:51 +00:00
parent f225973b62
commit 5fde82be76
3 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -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) {