Skip to content

Solved bug in wp_set_post_categories function #59215#5102

Open
NiharRan wants to merge 1 commit intoWordPress:trunkfrom
NiharRan:nihar-bug/bug-in-wp_set_post_categories-function
Open

Solved bug in wp_set_post_categories function #59215#5102
NiharRan wants to merge 1 commit intoWordPress:trunkfrom
NiharRan:nihar-bug/bug-in-wp_set_post_categories-function

Conversation

@NiharRan
Copy link
Copy Markdown

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
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants