Opened 11 years ago
Closed 11 years ago
#26682 closed defect (bug) (fixed)
Improve phpdocs for get_the_time and get_post_time
Reported by: | Owned by: | DrewAPicture | |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch commit |
Focuses: | docs, template | Cc: |
Description
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.
Attachments (2)
Change History (10)
#4
@
11 years 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
26682.diff also fixes some other issues with the phpdocs for these two functions. Might as well fix them while we're in there :)
Note: See
TracTickets for help on using
tickets.
get_the_time, get_post_time inline docs patch