[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:16:11 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.2
Component:  Themes            |     Version:  5.9.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------
Changes (by audrasjb):

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


Comment:

 In [changeset:"52791" 52791]:
 {{{
 #!CommitTicketReference repository="" revision="52791"
 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.
 Fixes #55241.
 }}}

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


More information about the wp-trac mailing list