[wp-trac] [WordPress Trac] #27940: phpDoc for function current_time is wrong

WordPress Trac noreply at wordpress.org
Sun Apr 20 19:14:33 UTC 2014


#27940: phpDoc for function current_time is wrong
---------------------------------+-----------------------------
 Reporter:  arnee                |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Date/Time            |     Version:  2.7
 Severity:  trivial              |  Resolution:
 Keywords:  has-patch 4.0-early  |     Focuses:  docs
---------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch 4.0-early
 * focuses:   => docs
 * component:  Comments => Date/Time
 * version:  trunk => 2.7
 * milestone:  Awaiting Review => Future Release


Comment:

 Introduced in [8606]. `$type` is a required parameter, so "or not defined"
 seems inaccurate.

 I'd suggest `Integer if $type is 'timestamp', string otherwise`. Related:
 [27259].

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


More information about the wp-trac mailing list