[wp-trac] [WordPress Trac] #51184: get_the_date() checks $format only for empty variable and fails on false boolean - since WP 5.5

WordPress Trac noreply at wordpress.org
Mon Aug 31 22:49:35 UTC 2020


#51184: get_the_date() checks $format only for empty variable and fails on false
boolean - since WP 5.5
-------------------------------------+-------------------------------------
 Reporter:  wittich                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.5.1
Component:  Date/Time                |     Version:  5.5
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  template, coding-
  tests commit dev-reviewed fixed-   |  standards
  major                              |
-------------------------------------+-------------------------------------

Comment (by desrosj):

 In [changeset:"48926" 48926]:
 {{{
 #!CommitTicketReference repository="" revision="48926"
 Tests: Move the tests for `get_the_modified_time()` to a more appropriate
 place.

 Add some new tests to better cover the functionality, for consistency with
 `get_the_date()` and `get_the_time()`.

 Follow-up to [48911], [48912], [48918].

 Props wittich.
 Merges [48924] to the 5.5 branch.
 Fixes #51184.
 }}}

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


More information about the wp-trac mailing list