[wp-trac] [WordPress Trac] #19751: Notice: Undefined index: 00 in /Users/mark/Sites/wp.git/wp-includes/locale.php on line 266
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 5 21:02:22 UTC 2012
#19751: Notice: Undefined index: 00 in /Users/mark/Sites/wp.git/wp-
includes/locale.php on line 266
------------------------------+--------------------
Reporter: markjaquith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Warnings/Notices | Version: 3.3.1
Severity: normal | Resolution:
Keywords: |
------------------------------+--------------------
Comment (by nacin):
I imagine get_month(13) would also generate a notice. Looks like a number
of methods in WP_Locale are susceptible.
That said, `get_month( 0 )` is an invalid call to the method. It
specifically wants 1-12 (leading zero optional). To me, the notice is
proper here, rather than masking an incorrect call and making it harder to
track down.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19751#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list