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 WC templates loading for WP 5.9 without Gutenberg plugin #5335
Merged
tjcafferkey
merged 1 commit into
trunk
from
update/block-templates-controller-block-theme-check
Dec 8, 2021
Merged
Fix WC templates loading for WP 5.9 without Gutenberg plugin #5335
tjcafferkey
merged 1 commit into
trunk
from
update/block-templates-controller-block-theme-check
Dec 8, 2021
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
tjcafferkey
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 8, 2021
rubikuserbot
requested review from
a team and
sunyatasattva
and removed request for
a team
December 8, 2021 10:25
Size Change: 0 B Total Size: 840 kB ℹ️ View Unchanged
|
Aljullu
approved these changes
Dec 8, 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.
LGTM
tjcafferkey
deleted the
update/block-templates-controller-block-theme-check
branch
December 8, 2021 11:21
jonny-bull
pushed a commit
to jonny-bull/woocommerce-gutenberg-products-block
that referenced
this pull request
Dec 14, 2021
jonny-bull
pushed a commit
to jonny-bull/woocommerce-gutenberg-products-block
that referenced
this pull request
Dec 16, 2021
tjcafferkey
added 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 <[email protected]> Co-authored-by: Albert Juhé Lluveras <[email protected]> Co-authored-by: Luigi Teschio <[email protected]> Co-authored-by: Tom Cafferkey <[email protected]>
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.
Modified to use an additional check from Core as well as Gutenberg when determining if we are able to add WC block templates. This is so that it's compatible with 5.9 without needing Gutenberg installed.
Fixes #5336
Testing
Manual Testing
How to test the changes in this Pull Request:
/wp-includes/themes.php
and check at the bottom of the file if you have the functionwp_is_block_template_theme
. If you do, please duplicate this function and name thiswp_is_block_theme
. This is the function name that Core will be using as seen here./wp-admin/site-editor.php?postType=wp_template
and check that the WC templates are loading./wp-admin/site-editor.php?postType=wp_template
and check that the WC templates are still loading.User Facing Testing
These are steps for user testing (where "user" is someone interacting with this change that is not editing any code).
/wp-admin/site-editor.php?postType=wp_template
and check that the WC templates are loading.Performance Impact
Changelog