[wp-trac] [WordPress Trac] #37059: Allow post to be passed to get_the_modified_time & get_the_modified_date

WordPress Trac noreply at wordpress.org
Fri Jun 17 05:11:32 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:  closed
Component:  Posts, Post Types                    |   Milestone:  4.6
 Severity:  normal                               |     Version:
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:  fixed
  tests commit                                   |     Focuses:
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37738"]:
 {{{
 #!CommitTicketReference repository="" revision="37738"
 Posts: Add `$post` parameter to modified date and time functions.

 Unifies the APIs for getting a post's modified date or time with getting a
 post's date or time.

 Adds the `$post` parameter to the functions `get_the_modified_date` and
 `get_the_modified_time`.

 Adds the `$post` parameter to the filters `get_the_modified_date` and
 `get_the_modified_time`.

 Props Soean, lukecavanagh.
 Fixes #37059.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37059#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list