Skip to content

Warning: Undefined array key “inherit” in /wp-content/plugins/query-filter/build/taxonomy/render.php on line 10 #15

Description

@altrugon

As indicated in the title the following line of code can trigger a warning due to an undefined key

if ( $block->context['query']['inherit'] ) {

This can easily be fixed by using the empty() function like this:

if ( !empty($block->context['query']['inherit']) ) {

I hope this goes in accordance with the code, and thank you so much for this amazing plugin.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions