Skip to content

options_sanitize broken #11

@CoconutStarshipForever

Description

@CoconutStarshipForever

Hi,

I've encounter several problems while working with the plugin with nested taxonomies in RestrictTaxs_options. I've found also that removing taxonomies in the RestrictTaxs_options from the option page dindn't always work.

The problem reside inside the options_sanitize function that make a array_replace_recursive (restrict-taxonomies.php:387) on each RestrictTaxs options. As their is always a RestrictCategoriesDefault inside each RestrictTaxs options, array_replace_recursive just pass by each removed RestrictTaxs_options or nested child.

Replacing array_replace_recursive for array_replace made the trick to get the appropriate behavior.

I can make a pull requests if needed, but a proper fix would be appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions