6.7.1. adds/connects categories automatically | WordPress.org

[ad_1]

What kind of data sets are products for you? Are you talking about the WooCommerce plugin? A little more information would be important in order to be able to recreate this if necessary.

Yes it’s Woocommerce products i’m talking about.

From what i can see after doing some more testing is that as soon as i mark any category in the list it checks a bunch of others before i even save the page or publish it.

The problem only seem to happen on unplushed products.
If a product is published i can check and uncheck categories without i trying to check other categories.

I recommend getting in touch with WooCommerce’s support about this via https://woocommerce.com/my-account/create-a-ticket/ if you have any of their paid WooCommerce products or https://projectdmc.org/support/plugin/woocommerce/ if you do not.

Even though this issue happened after 6.7.1 got installed?

This may be an incompatibility of WooCommerce with changes in WordPress 6.7.1. So far I don’t see any reports of anything similar outside of WooCommerce which is why I would lean more towards this case

After some more digging i’ve figured out the issue is in wp-admin/js/post.js file on row 662 > 665.
The new stuff in that if statement seems to check the one i click to check but also other checkboxes that have the id’s that start with the same number.

What i mean is that if i check a category with this id: in-product_cat-27-1 it also checks other checkboxes with ids that look like this: in-product_cat-273-1 or in-product_cat-274-1 etc etc

If i revert to the old if statement in 6.7 it works fine again.

  • This reply was modified 11 hours ago by deLisle.

I took a look at the changeset of the ticket you mentioned: https://core.trac.projectdmc.org/changeset/59421 – I think you’re right that this can happen. In your case, however, only because you have so many categories.

My recommendation would be: report this with your example in https://core.trac.projectdmc.org/ticket/62440

Note, however: a report there should not be plugin-related. The problem should be reproducible without any plugins and with the standard theme. I suspect it would be if you created 300 categories in Post > Categories.

Looks like someone already has posted a trac issue connected to this and also commited a fix in GitHub: https://core.trac.projectdmc.org/ticket/62504
Hopefully this will be released to the general mass asap.

There is a hotfix plugin at the Trac ticket: https://core.trac.projectdmc.org/attachment/ticket/62504/wp-fix-62504.zip. Please test if it fixes it and doesn’t cause other problems!

Hotfix plugin works as it should. Thanks for the quick help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer