[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
Sun Jun 26 11:29:15 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                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"37866"]:
 {{{
 #!CommitTicketReference repository="" revision="37866"
 Posts: Fix back-compat for filters in get the modified time and date
 functions after [37738].

 When no valid post exists for `get_the_modified_time` or
 `get_the_modified_date` calls, the result (`false`) is passed through the
 functions respective filters to maintain back-compat.

 Introduces unit tests to ensure filters are applied and for the
 `get_the_modified_date` function.

 Fixes #37059.
 }}}

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


More information about the wp-trac mailing list