Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#55246 closed defect (bug) (duplicate)

Warning: Undefined variable $filters in get_svg_filters function

Reported by: arifursdev Owned by:
Priority: normal Milestone:
Component: Themes Version: 5.9.1
Severity: normal Keywords:
Cc: Focuses:

Description

so in my localhost i was browsing the wp-json and suddenly an error out of nowhere showing.

Warning: Undefined variable $filters in C:\projects\htdocs\exampleprojectname\wp-includes\class-wp-theme-json.php on line 1620

error on get_svg_filters function.

maybe its not getting what it needs to foreach and straight going to return $filters.

Change History (4)

#1 @arifursdev
4 years ago

my theme.json looks like

{
    "version": 1,
    "settings": {
      "color": {
        "duotone": null
      }
    }
}

#2 @azouamauriac
4 years ago

  • Resolutionduplicate
  • Status newclosed

Hello there, welcome to WordPress trac! Thanks for the report, the issue is already fixing here #55241

Version 0, edited 4 years ago by azouamauriac (next)

#3 @azouamauriac
4 years ago

  • Summary maybe an bug , not sure.Warning: Undefined variable $filters in get_svg_filters function

#4 @swissspidy
4 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.