[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
Sun Mar 8 17:18:57 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 | Resolution:
Keywords: has-patch reporter-feedback | Focuses:
-----------------------------------------+------------------------------
Comment (by pauldewouters):
Drew,
Thanks for your comment. In my case I was calling `timer_start()` and then
`timer_stop(1)` with some code in between to time it, directly on page
load inside a plugin, not inside a hook.
Maybe this was not the expected use case for this function. However, would
there not be some benefit to making the function a little more robust?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31553#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list