Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#55246 closed defect (bug) (duplicate)

Warning: Undefined variable $filters in get_svg_filters function

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

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
3 years ago

my theme.json looks like

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

#2 @azouamauriac
3 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

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

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

#3 @azouamauriac
3 years ago

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

#4 @swissspidy
3 years ago

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