[wp-trac] [WordPress Trac] #60360: Make WP_Theme_JSON to sanitize data on indexed arrays

WordPress Trac noreply at wordpress.org
Thu Feb 1 20:39:38 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 mmaattiiaass):

 Replying to [comment:6 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`?

 Yes, good idea, thanks for pointing that out.
 I implemented the suggested change here: https://github.com/WordPress
 /wordpress-develop/pull/6007

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60360#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list