* Update the full composability layout to match designs
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint errors
* Remove unnecessary important
* Update colors
* Fix empty logo color
---------
Co-authored-by: github-actions <github-actions@github.com>
* Improve the conditions to check if the customize store task should be marked as completed
Before we were relying in a json string to check if the global styles were the default,
but that string had a hardcoded version. Since the version has changed this was failing.
We are now checking that the global style json only has two keys: version and
isGlobalStylesUserThemeJSON, regardless of their values.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add support for WPCOM site
* Add support for WPCOM site
* Change the default Pressable site
* Change the default Pressable site
* Add .env.enc for WPCOM site
* Add .env.enc for WPCOM site #2
* Add changefile(s) from automation for the following project(s): woocommerce
* Update changelog
* Add changefile(s) from automation for the following project(s): woocommerce
* Update changelog
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
* PluginUtil: Add method to get active valid plugins
When getting a list of active plugins directly from the options table,
you can run into an error if you try to then access one of the plugin
files if it doesn't actually exist. WP Core has a method that verifies
that the files exist before returning the list. But it's marked as a
"private" method, which means it could change and break backcompat.
That seems very unlikely, though, so we're using the method (it was
already in use actually), but putting in some safeguards so we can
detect if a backcompat issue arises.
Fixes#48132
* Modify to accommodate multisite
* woocommerce_removed_coupon event should recalculate totals automatically
* Remove early calculation from cart routes
* get_cart_for_response ensures late calculation if needed
* Remove calculation when removing coupons
* Calc totals already does shipping
* Remove calc on checkout route
* Update cart controller to load session if needed and introduce new helper methods
* Changelog
* Improve mu-compatibility of `WC_Customer_Data_Store::get_last_order()`.
* Use the blog prefix as a suffix rather than a prefix (readability).
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
* Extract site-specific user meta handlers into their own set of reusable methods.
* Make the customer data store's get_order_count and get_total_spent methods network-aware.
* Support deletion of site-specific user meta.
* Update cache invalidation (make multisite-aware) for money spent, order count, and last order.
* Further fixes for mu-aware order and spend caching.
* Add migration to remove unneeded/unused user meta data.
* Revert change to handling of `paying_customer` user meta (out-of-scope for this fix).
* Be stricter when obtaining current blog prefix.
* Add missing `@since` tag to historic filter hook.
Archaeology: https://github.com/woocommerce/woocommerce/compare/4.9.0...4.9.1#diff-8dcda80485fb4b7bc3cb9544ecf4b73aa78dc448bc574b1e56271ee8b56e7189R330
* Ensure the 'last order ID' references an order that actually belongs to the current customer.
* Fix docblock.
* Add additional test to describe safeguards around fetching a customer order.
* Unset `$last_order_id` if the order is not of type `WC_Order`
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
* Merge 9.1.0 update functions list.
* Logging best practices (do not translate).
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
* Logging best practices (do not translate).
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
---------
Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
* Wrap order note saving with wc_sanitize_textarea
* Add changelog
* Change note output to wp_kses with no allowed HTML
* Add totalsMock for order confirmation test
* Add Totals test
* Add classic checkout test to ensure notes are cleaned
* Change wp_kses_post to wp_kses for all order note usage
* wp_kses the order note before editing too
---------
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
The old code was retrieving all the existing download entries from
the database and then counting them locally. Now a SQL COUNT query
is used instead.
---------
Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>
* Fix typo (index.tsx)
"Congratuations" -> "Congratulations"
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
* Update wc_update_product_lookup_tables_column function
* Rename error message
* Create 'form-flex-box' class and increase icon size
* Persist global_unique_id for main product and variations
* Add global unique id field to main product
* Add global unique id field to variations
* Add changelog
* Update error message
* Add `rel="noreferrer"` to external link
This is a precautionary security measure to to prevent the new page
from accessing the original page’s `window` object.
See pb22l9-304-p2 (internal link) for additional context.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* move checkout docs with front matter to main folder
* add manifest
* add core changelog
* Remove emojis, unsupported links and table of contents
* pr comments
* update folder name and remove toc
* title fix
---------
Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
* Fix order_count consistency between stats and reports
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Bring back footer and header borders on hover and selected patterns
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix the selected pattern color
* Fix lint errors
---------
Co-authored-by: github-actions <github-actions@github.com>
* Update delete button copy to match Dotcom
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Fix the intro cards to match the designs
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Refactor to extract ExpressionField
* Move styling of expression and result prefixes to CSS
* Layout expression field with grid
* Add buttons to expression field
* Enter edit mode and cancel
* Hook up editing in textarea
* Allow existing expression to be edited
* Make expression param optional
* Use ExpressionField to add new expression
* Hide cancel button if no callback and add updateLabel prop
* Only show error when dirty
* Placeholder for expression field
* Format result in expression field
* Expression field textarea styling
* Justify expressions at bottom
* Prevent jumping when editing expression
* Revert changes on cancel
* Remove unused CSS
* Extract ExpressionTextArea
* Extract ExpressionResult
* Auto height textarea
* Hover styling for expression
* Result type tag
* Tweak styling
* Update padding in expression field
* Changelog
* Enable scrolling of result when editing expression
* Use smaller close icon
* Fix enabling of add/edit button
* Focus text area when clicking edit button
* Put cursor at the end of text area when focusing it
* Enter edit mode when clicking on text area
* Remove expression in list
* Don't style expressions list as a flex box
* Show full result while editing expression