[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 18:28:58 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:  reopened
 Priority:  normal                   |   Milestone:  5.5.1
Component:  Date/Time                |     Version:  5.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  template, coding-
  tests commit dev-feedback fixed-   |  standards
  major                              |
-------------------------------------+-------------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48918" 48918]:
 {{{
 #!CommitTicketReference repository="" revision="48918"
 Date/Time: In `get_the_date()` and related functions, pass the original,
 unmodified `$format` value to the filters.

 Additionally, simplify the `$format` argument checks for consistency with
 similar checks in `get_the_modified_date()` and `get_the_modified_time()`.

 Follow-up to [48912].

 Props Rarst.
 See #51184.
 }}}

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


More information about the wp-trac mailing list