This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Store Editing Templates: Migrate incorrect plugin slug in the database. #5533
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: template
Related to API powering block template functionality in the Site Editor
type: bug
The issue/PR concerns a confirmed bug.
Description
Please read the original issue about the incorrect plugin slug here #5423
We were able to fix this by updating the usages to use the correct plugin slug (#5519) (
woocommerce/woocommerce
) and querying the DB for both the incorrect and correct slugs used. For sites that have already customised DB templates whilst using the old slug they will have this saved in their DB. We need to migrate these values to the new slug.What we need to consider
If the site has DB entries using the old slug and the new slug:
We will have to find the
term_id
for the old slug and update all entries using it to use the new slugsterm_id
.If the site has DB entries just using the old slug:
We can simply update the old slug row in
wp_terms
From:
name:
WooCommerce
slug:
woocommerce
To:
name:
woocommerce/woocommerce
slug:
woocommerce-woocommerce
The text was updated successfully, but these errors were encountered: