Update phpDoc to reflect post id or object is valid
|Reported by:||coffee2code||Owned by:|
Many functions use get_post() and do so by simply passing along one of their own arguments (typically a post ID). Since get_post() accepts either a post ID or a post object, those functions therefore can (and do) also accept either type of value for the argument.
The phpDoc for many of the functions simply indicate a post ID is valid. The attached patch amends the @param doc entry for the relevant arguments to indicate either a post ID or post object is valid. (There are places where get_post() is used but the int arg is otherwise used in the function as an int -- I've skipped those since they don't really accept a post object.)
Change History (11)
- Keywords needs-patch added; has-patch removed
- Milestone changed from Future Release to 3.6