New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Woocommerce templates #1998
Conversation
@IanDelMar I'd like to fast-track this to do another minor release. I just need to spend some time testing. Let me know what you think. |
Think about what? Releasing 1.3.0 soon? Actually this doesn't qualify for a feature release, does it? There is no code change at all. It is a patch (1.2.2) at max, no? |
@IanDelMar Exactly! - I already updated the tag to 1.2.2 earlier And yeah the readme makes sense |
Oh, didn't notice the updated version! And yes, I think Understrap+WooCommerce users will be happy if you release 1.2.2 soon. Concerning the supported version: the maximum version is clear. Finding the minimum version is a little cumbersome. I tend to simply making a cut and say v6+ is supported (currently . I'm not sure what that means for the type of change. Is it a breaking change which I guess? Active installs of WooCommerce as of today: versions from 6.8 account for 45.9% of installs. |
For 1.2.2: We should switch back to inc/editor-color-palette.json with Bootstrap 4 colors. |
@IanDelMar Looks like we're just missing the 7.1.0 update to Re: |
@bacoords then we have to provide both Simply adding EDIT: Rechecked |
`woocommerce-Input` has been added in WC 7.0.0
Let's take cart/cart-empty.php as an exmaple:
We can either add it like so: <?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : 'btn btn-outline-primary' ); ?> or like so btn btn-outline-primary<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?> The first version might be a breaking change for child themes with a theme.json that defines classes for the button element. The second version does not guarantee that classes added via |
Ok - we can return to |
Description
This PR updates the version number in Woocommerce templates.
Motivation and Context
WooCommerce 7.0.1 adds
wc_wp_theme_get_element_class_name()
which is a wrapper forwp_theme_get_element_class_name()
which callsWP_Theme_JSON::get_element_class_name()
. Understrap does not come with a theme.json. Therefor a call toWP_Theme_JSON::get_element_class_name( $element )
gives an empty string and addingwc_wp_theme_get_element_class_name()
to the templates can be skipped (would be a breaking change).Types of changes
Related Issues or Roadmap requests
#1997