[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 10:40: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:  reopened
Component:  Posts, Post Types                    |   Milestone:  4.6
 Severity:  normal                               |     Version:
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 In [attachment:37059.6.diff]:

 * maintains back-compat by passing failures to get a post through filters
 for both `get_the_modified_date` and `get_the_modified_time`
 * adds unit test to ensure failures are filtered
 * added tests for `get_modified_date` to match those for
 `get_modified_time`.

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


More information about the wp-trac mailing list