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

WordPress Trac noreply at wordpress.org
Wed Jan 31 10:54:03 UTC 2024


#60360: Make WP_Theme_JSON to sanitize data on indexed arrays
-------------------------------------------------+-------------------------
 Reporter:  mmaattiiaass                         |       Owner:
                                                 |  youknowriad
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Editor                               |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch has-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by youknowriad):

 * owner:  (none) => youknowriad
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57496" 57496]:
 {{{
 #!CommitTicketReference repository="" revision="57496"
 Editor: Sanitize nested array in theme.json properly.

 WP_Theme_JSON sanitization is now able to sanitize data contained on
 indexed arrays.
 So certain data from theme.json, for example,
 settings.typography.fontFamilies which is a JSON array will be sanitized.

 Props mmaattiiaass, mukesh27.
 Fixes #60360.
 }}}

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


More information about the wp-trac mailing list