You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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 withfalse
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).
The text was updated successfully, but these errors were encountered: