[wp-trac] [WordPress Trac] #55241: Disabling "settings.color.duotone" within theme.json causes fatal error undefined variable $filter

WordPress Trac noreply at wordpress.org
Wed Feb 23 23:09:18 UTC 2022


#55241: Disabling "settings.color.duotone" within theme.json causes fatal error
undefined variable $filter
------------------------------+-----------------------
 Reporter:  aliakseyenkaihar  |       Owner:  audrasjb
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  5.9.2
Component:  Themes            |     Version:  5.9.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------
Changes (by audrasjb):

 * keywords:  has-patch => has-patch commit


Comment:

 To reproduce the issue:
 - On Twenty Twenty-Two (or another block theme), use `duotone: null` color
 setting in theme.json file
 - The following warning is thrown: `Notice: Undefined variable: filters in
 /wp-includes/class-wp-theme-json.php on line 1620`

 I can confirm the proposed patch fixes the issue.

 Marking for `commit`.

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


More information about the wp-trac mailing list