[wp-trac] [WordPress Trac] #59931: PHPunit test for _wp_mysql_week()

WordPress Trac noreply at wordpress.org
Tue Nov 28 18:34:09 UTC 2023


#59931: PHPunit test for _wp_mysql_week()
--------------------------------------+---------------------
 Reporter:  pbearne                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.5
Component:  Build/Test Tools          |     Version:  3.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by jorbin):

 * version:   => 3.0
 * milestone:  Awaiting Review => 6.5


Comment:

 Introduced in [14499] for ticket #10397.

 The [https://dev.mysql.com/doc/refman/8.0/en/date-and-time-
 functions.html#function_week second param of WEEK] isn't the day of the
 week, it's the mode while the `start_of_week` option is the "first day of
 the week" and accepts any day as the first.

 Milestoning for commit consideration.

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


More information about the wp-trac mailing list