[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
Tue Oct 13 00:29:20 UTC 2015
#31553: number_format_i18n() can cause a PHP notice if $wp_locale is not set
---------------------------+------------------------------
Reporter: pauldewouters | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: low | Milestone: Awaiting Review
Component: I18N | Version: 2.3
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Changes (by SergeyBiryukov):
* owner: => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35092"]:
{{{
#!CommitTicketReference repository="" revision="35092"
In `number_format_i18n()`, check if `$wp_locale` is set before using it.
Props pauldewouters.
Fixes #31553.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31553#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list