Closed
Description
Prerequisites
- I have carried out troubleshooting steps and I believe I have found a bug.
- I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
Describe the bug
After updating to WooCommerce 8.4.0, pages with the shortcode [product_page id="xxxx"] open the WooCommerce product page instead. This problem occurs when editing a normal page with the shortcode.
This bug was reported here: https://wordpress.org/support/topic/update-8-4-0-opens-the-product-page-instead-of-normal-page
7445720-zen
Expected behavior
The page should show the shortcode instead of the product details.
Actual behavior
The issue causes pages with the shortcode [product_page id=”xxxx”]
to open the WooCommerce product page directly, making it impossible to edit these pages. The problem was temporarily resolved by reverting back to version 8.3.1.
Steps to reproduce
- Create a new page and insert the
[product_page id="xxxx"]
shortcode. - Next, publish the page.
- When you open the page in the editor, you'll notice that the product information is displayed, not the shortcode.
CleanShot.2023-12-13.at.21.54.48.mp4
WordPress Environment
WooC0mmerce 8.4.0
WordPress 6.4.2
Isolating the problem
- I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- This bug happens with a default WordPress theme active, or Storefront.
- I can reproduce this bug consistently using the steps above.