[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
Tue Apr 1 16:41:21 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:  closed
 Priority:  normal        |   Milestone:  6.9
Component:  Date/Time     |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60119" 60119]:
 {{{
 #!CommitTicketReference repository="" revision="60119"
 Docs: Correct documentation for `current_time()`, `date_i18n()`, and
 `wp_date()`.

 Includes:
 * Standardizing on the `bool` type for the `$gmt` parameter between
 `current_time()` and `date_i18n()`.
 * Documenting `null` as an acceptable value for `$timestamp` and
 `$timezone` parameters in `wp_date()`.
 * Removing a redundant note on the `$gmt` parameter for the `date_i18n`
 filter, as defaults are normally only documented for function parameters.

 Follow-up to [1001], [9616], [28109], [45901].

 Props dilipbheda.
 Fixes #63207.
 }}}

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


More information about the wp-trac mailing list