[wp-trac] [WordPress Trac] #60650: sanitize_locale_name() should reject non-strings
WordPress Trac
noreply at wordpress.org
Wed Feb 28 07:18: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 swissspidy):
Returning an empty string if the input is not a string souvds reasonable.
However, note that the docblock says the function expects a string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60650#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list