[wp-trac] [WordPress Trac] #63207: Docs: Enhance inline documentation for current_time, wp_date, and date_i18n functions/filters.

WordPress Trac noreply at wordpress.org
Wed Apr 2 05:34:32 UTC 2025


#63207: Docs: Enhance inline documentation for current_time, wp_date, and date_i18n
functions/filters.
--------------------------+-----------------------------
 Reporter:  dilipbheda    |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.9
Component:  Date/Time     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-----------------------------

Comment (by dilipbheda):

 @johnbillion Thanks for pointing this out! I checked and found that the
 core also uses the `1|0` value in some places, so it's possible that other
 plugins/themes use it as well.

 You can check this here: https://github.com/search?q=repo%3AWordPress
 %2Fwordpress-develop+current_time%28+%27mysql%27%2C+&type=code

 From my perspective, we should revert the `@param` type from `bool` to
 `int|bool`

 What do you think?

 cc @SergeyBiryukov

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


More information about the wp-trac mailing list