Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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
5 years ago

my theme.json looks like

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

#2 @azouamauriac
5 years ago

  • Resolution → duplicate
  • Status new → closed

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

Last edited 5 years ago by azouamauriac (previous) (diff)

#3 @azouamauriac
5 years ago

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

#4 @swissspidy
5 years ago

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