[wp-trac] [WordPress Trac] #31553: number_format_i18n() can cause a PHP notice if $wp_locale is not set
WordPress Trac
noreply at wordpress.org
Sat Mar 7 12:18:13 UTC 2015
#31553: number_format_i18n() can cause a PHP notice if $wp_locale is not set
---------------------------+-----------------------------
Reporter: pauldewouters | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
It is possible for `number_format_i18n` to cause a PHP notice if called
via `timer_stop` at a point where `$wp_locale` is not set.
This is because the function calls a method of the class without checking
if it is available.
I attached a patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31553>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list