Repository navigation
Commit e26b0b9
Docs: Keep the full month number type for WP_Locale::get_month().
Unlike the other `WP_Locale` getters, `get_month()` returns an empty string for
a month number that is not found, which was added so that callers like
`single_month_title()` can pass unvalidated query var values. Narrowing its
parameter to valid month numbers told callers to validate input the method
already handles, surfacing errors at call sites that pass `zeroise()` results,
query vars, or database values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent bed0a3a commit e26b0b9
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
| |||
0 commit comments