* Update the customer icon for the line style
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Import Circle and Path and fix attribute case
---------
Co-authored-by: github-actions <github-actions@github.com>
* Fixed overflow when formatting price for Store API responses
* Added explanation comment.
* Added changelog.
* Linting.
* Ensure wc_format_decimal doesn't return decimal points and trims .00
* Update comment.
* Removed unnecessary rounding modes.
* Updated comment.
* Updated comment.
* Updated comment.
* Updated Unit Tests.
* Lint.
* Fix tests.
* Re-add rounding modes.
* Prevented a fatal if an array is supplied to the method. This was the old behaviour, although it will produce erroneous prices, but before we let this throw a fatal we need to warn devs and track usage.
* Added doing_it_wrong() for unexpected types for $value arg.
* Early return, removed translation, renamed unit test method.
* Added expect notice to unit test.
* Add further tests to rounding modes.
* Renamed $mock_formatter. This is not a mock.
* Fixed tests and added provider for types.
* Linting.
* Check if parent product exists in LookupDataStore::create_data_for_variation
If it doesn't exist it will thrown an exception, which will be
catched by the caller an a proper log entry will be written.
Previously a fatal error would be thrown.
* Add changelog file
Fixes#33730
* Fix flaky waiting for response in logo picker e2e test
* Add changelog
* Remove wait for response header
* Wait for success message
* Relogic logo picker e2e test
* Docs: Updates to the Logging doc
This tweaks the wording in a few places and adds
a new suggestion under the "Customizing" header
about changing the directory where log files are
stored.
* Update docs manifest
* Export pre-formatted SITE_CURRENCY object from settings
* Fallback to SITE_CURRENCY
* Changelog
* Fix typedef
* Update mocks
* Inject site currency into cart preview data
* Update test
* Add currency formatting to preview data
* Mock currency in tests
* More currency mocking
* 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>