Skip to content

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

@altrugon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions