Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter redirection_post_types not provide argument $full which is passed to function red_get_post_types() . #3969

Open
atanasantonov opened this issue Jan 9, 2025 · 0 comments

Comments

@atanasantonov
Copy link

Summary

There is conditional building of the array of registered post types but filter does not provide $full argument so filtering the posts can be done correctly.

Actual Behavior

Adding filter for the post types displays the post types in URL monitoring section but when trying to save the settings nothing happens because red_get_post_types() is called with false argument and the array of the post types contains only post type names.

I have found a workaround of this by checking the keys in filtered $post_types to see if they are numeric which corresponds to $full = flase in red_get_post_types().

Steps to reproduce

Add filter redirection_post_types and try to save plugin settings.

Environment

Regardless version of WordPress with Redirection plugin (probably after version 3.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant