This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Fix You attempted to edit an item that doesn't exist
error on WordPress 5.8
#5425
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gigitux
added
type: bug
The issue/PR concerns a confirmed bug.
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: template
Related to API powering block template functionality in the Site Editor
labels
Dec 21, 2021
gigitux
changed the title
Fix
Fix Dec 21, 2021
You attempted to edit an item that doesn't exist
error on WordPress 5.8You attempted to edit an item that doesn't exist
error on WordPress 5.8
Size Change: 0 B Total Size: 819 kB ℹ️ View Unchanged
|
tjcafferkey
approved these changes
Dec 21, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great. Thank you for fixing!
cc @frontdevde 💪 |
tjcafferkey
pushed a commit
that referenced
this pull request
Dec 22, 2021
tjcafferkey
added a commit
that referenced
this pull request
Dec 22, 2021
* Empty commit for release pull request * Fix saving WooCommerce templates in WP 5.9 beta 3 (#5408) * fix not found template for the template editor (#5425) * Check for woocommerce as the theme before rendering with a more user friendly plugin name (#5420) * Make it so WooCommerce template names are not editable (#5385) * Make it so WooCommerce template names is not editable * Remove source='plugin' from templates * Load required scripts in LegacyTemplate.php render method (#5346) * Fix reverting WC templates (#5342) * Update block theme conditionals in BlockTemplateController (#5335) * Check if the current theme has a product-archive block template in the absence of a product taxonomy block template. (#5380) * Add archive-product template into block template hieachy * Add archive-product condition to product tag block template render method * Move taxonomy hierarchy filter to WC core * Undo template amends * Duplicate the themes archive-product template if it has one for taxonomy block templates * Review feedback * Use TextDomain instead of Name * use correct if/else syntax * Remove unncessary boolean syntax * Update readme.txt for 6.5.1 changelog * Testing notes for 6.5.1 * Bumping version strings to new version. Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com> Co-authored-by: Luigi Teschio <gigitux@gmail.com> Co-authored-by: Tom Cafferkey <tjcafferkey@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the error
You attempted to edit an item that doesn't exist. Perhaps it was deleted?
on WordPress 5.8 when the user wants to edit a template.Manual Testing
How to test the changes in this Pull Request:
Check out this branch. We need to test this PR on WordPress 5.8 and WordPress 5.9 to be sure that we are not introducing any regression.
WordPress 5.8
Be sure that you are using a block theme and you have installed WooCommerce and Gutenberg plugins.
Templates
.Product Category Page
,Product Archive Page
,Product Archive Page
orSingle Product Page
.WordPress 5.9 - without GB
Be sure that you are using a block theme and you have installed WooCommerce WITHOUT GB plugin.
Templates
.Product Category Page
,Product Archive Page
,Product Archive Page
orSingle Product Page
.WordPress 5.9 - with GB
Be sure that you are using a block theme and you have installed WooCommerce and Gutenberg plugins.
Templates
.Product Category Page
,Product Archive Page
,Product Archive Page
orSingle Product Page
.Changelog