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

Issue-237: updateValidPosts check does not pass post types and only checks for valid posts, other post types fail #238

Merged

Conversation

mogmarsh
Copy link
Collaborator

@mogmarsh mogmarsh commented Sep 27, 2024

Summary

This PR addresses the issue described in #237 - Fixes #237

Description of the bug

When pinning a post from a custom post type (not post), you receive a warning that the post has been deleted and you cannot pin the post.

Solution

The validation has been updated to allow additional post types, ensuring that posts of custom types can be pinned without triggering a deletion warning.

Steps To Reproduce

Pin a post not of type 'post'

Additional Information

No response

@mogmarsh mogmarsh marked this pull request as ready for review September 27, 2024 15:35
Copy link
Contributor

@mboynes mboynes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Looks great! Would be nice to have a unit test accompanying a fix like this, if that's feasible.

@mogmarsh mogmarsh merged commit 425ebf2 into develop Sep 27, 2024
5 checks passed
@mogmarsh mogmarsh deleted the fix/issue-237/updateValidPosts-fails-custom-post-types branch September 27, 2024 15:51
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

Successfully merging this pull request may close these issues.

updateValidPosts check does not pass post types and only checks for valid posts, other post types fail
2 participants