[wp-trac] [WordPress Trac] #60360: Make WP_Theme_JSON to sanitize data on indexed arrays
WordPress Trac
noreply at wordpress.org
Wed Jan 31 15:28:59 UTC 2024
#60360: Make WP_Theme_JSON to sanitize data on indexed arrays
-------------------------------------------------+-------------------------
Reporter: mmaattiiaass | Owner:
| youknowriad
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.5
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: gutenberg-merge has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
I wonder instead of creating a new method `is_assoc`, we could simply use
`array_is_list` ( which can be used in core since [57337]) or maybe
`wp_is_numeric_array`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60360#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list