[wp-trac] [WordPress Trac] #60650: sanitize_locale_name() should reject non-strings
WordPress Trac
noreply at wordpress.org
Wed Feb 28 09:53:15 UTC 2024
#60650: sanitize_locale_name() should reject non-strings
--------------------------+------------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: lowest | Milestone: Awaiting Review
Component: I18N | Version: 6.2.1
Severity: trivial | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by ocean90):
Replying to [ticket:60650 dd32]:
> and a number of other sanitize functions behave similarly.
It seems like only `sanitize_key()` has a check for `is_scalar()`? I guess
if `sanitize_locale_name()` needs to be updated we should make all
sanitize functions consistent in this way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60650#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list