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

Solved bug in wp_set_post_categories function #59215 #5102

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

NiharRan
Copy link

In the wp_set_post_categories function in the wp-includes/post.php file.

Before update:
return wp_set_post_terms( $post_id, $post_categories, 'category', $append );

After update:
return wp_set_post_terms( $post_id, $post_categories, $post_type, $append );

Trac ticket: 59215

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

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

Thanks @NiharRan for the PR. Per the ticket comment https://core.trac.wordpress.org/ticket/59215#comment:3 this change is invalid

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