[wp-trac] [WordPress Trac] #43344: $wp_locale->start_of_week is always NULL

WordPress Trac noreply at wordpress.org
Sat Feb 17 17:05:42 UTC 2018


#43344: $wp_locale->start_of_week is always NULL
--------------------------+-----------------------------
 Reporter:  tonybogdanov  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It seems that the `start_of_week` property of class `WP_Locale`
 (introduced in version 4.4) always resolves to `NULL`, because it is never
 initialized (determined by a quick global search for `->start_of_week`).

 It also seems like the rest of the codebase only relies on
 `get_option('start_of_week')`, including tests, thus nothing is really
 affected (seemingly) by the bug.

 Perhaps someone just forgot to add `$this->start_of_week =
 get_option('start_of_week');` in `init()`?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43344>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list