[wp-trac] [WordPress Trac] #56291: Theme JSON: Fix notice when unknown elements are specified

WordPress Trac noreply at wordpress.org
Wed Jul 27 10:48:23 UTC 2022


#56291: Theme JSON: Fix notice when unknown elements are specified
--------------------------+-----------------------------
 Reporter:  scruffian     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If a theme.json file specifies an unknown element then we'll get a notice
 from line 1482 in this file. This adds an array_key_exists check before we
 get the value of the array at that key, to avoid the notice.

 Gutenberg issue: WordPress/gutenberg#42649
 GitHub PR: https://github.com/WordPress/wordpress-develop/pull/3026

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56291>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list