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

WordPress Trac noreply at wordpress.org
Tue Mar 29 09:11:13 UTC 2022


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53009" 53009]:
 {{{
 #!CommitTicketReference repository="" revision="53009"
 Themes: Avoid undefined variable warning on `get_svg_filters()`.

 This change fixes an undefined variable warning thrown when `duotone`
 color setting was set to null in Block Themes `theme.json` file.

 Follow-up to [52768].

 Props aliakseyenkaihar, audrasjb, rafiahmedd.
 Merges [52791] to the 5.9 branch.
 Fixes #55241.
 }}}

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


More information about the wp-trac mailing list