Improve phpdocs for get_the_time and get_post_time
|Reported by:||ruud@…||Owned by:||DrewAPicture|
|Component:||Posts, Post Types||Keywords:||has-patch commit|
get_the_time utilizes get_the_post, get_the_post uses mysql2date, mysql2date can return a string or an int in the specific case that an Unix timestamp is requested.
( * @return string|int Formatted date string, or Unix timestamp. )
In the added patch I've changed the inline documentation to better reflect that possibility.
Of course via the filters they can return also other types.., but I don't know how that is supposed to be handled with the inline docs.
Change History (10)
- Type changed from enhancement to defect (bug)
- Version 3.8 deleted
comment:4 @DrewAPicture — 17 months ago
- Keywords commit added
- Milestone changed from Awaiting Review to 3.9
- Summary changed from get_the_time and get_post_time both say to only return a string when in fact they can also return an int. to Improve phpdocs for get_the_time and get_post_time
- Component changed from Template to Posts, Post Types
- Focuses template added