[wp-trac] [WordPress Trac] #37059: Allow post to be passed to get_the_modified_time & get_the_modified_date (was: Allow post to be passed to get_the_modified_time)
WordPress Trac
noreply at wordpress.org
Thu Jun 9 22:56:08 UTC 2016
#37059: Allow post to be passed to get_the_modified_time & get_the_modified_date
-------------------------------------------------+-------------------------
Reporter: peterwilsoncc | Owner:
Type: enhancement | peterwilsoncc
Priority: normal | Status: reviewing
Component: Posts, Post Types | Milestone: Future
Severity: normal | Release
Keywords: good-first-bug has-patch has-unit- | Version:
tests | Resolution:
| Focuses:
-------------------------------------------------+-------------------------
Description changed by peterwilsoncc:
Old description:
> The signatures of get_the_time and get_the_modified_time differ. Let's
> make them match
>
> The current signatures are:
>
> `get_the_time ( string $d = '', int|WP_Post $post = null )`
>
> `get_the_modified_time ( string $d = '' )`
New description:
The signatures of get_the_time and get_the_modified_time differ. Let's
make them match
The current signatures are:
`get_the_time ( string $d = '', int|WP_Post $post = null )`
`get_the_modified_time ( string $d = '' )`
`get_the_date ( string $d = '', int|WP_Post $post = null )`
`get_the_modified_date ( string $d = '' )`
~
Note: added the date functions per @Soean's comment below.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37059#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list