* Remove the block hooks feature gate by getting and setting a the wc_hooked_blocks_version option and assigning versions to each hooked block
* Update apply_filters comment
* Add action for users switching themes that don't have an option set
* Update condition for current_theme_supports usage
* Update comment
* Unit tests
* Change unit test file name
* Update hooks for option update
* Changelog
* Add database tests for wc_hooked_blocks_version actions
* Update option name from wc_hooked_blocks_version to woocommerce_hooked_blocks_version
* Update option name in function comments
* Fix linting
* Update comment typo
* Add strict types to new files
* Update tests
* Move unit tests for block hooks
* Set option to "no" for sites that dont have an approved block theme
* Return early if WC option already exists
* Reorder conditions for performance reasons
* Change incorrect to lower
* Fix typo
* Remove unncessary false check and add additional unit tests
* Update comment
* Hide variation related notices when product type is not variable
* Revert "Hide variation related notices when product type is not variable"
This reverts commit 66a67b6ada.
* Hide variation related notices when product type is not variable
* Put product filters overlay template part behind feature flag
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add validation message and fix rendering when account is required
* Adjust validation so we can change the label in messages with custom callback
* Add and style password meter
* Add validation feedback and zxcvbn support
* changelog
* Accessibility fixes
* Update lock file
* Fix initial state in safari
* Announce strength as you type
* Use React.ReactElement
* update lock file
* Update lock
* Downgrade local pnpm and recreate lock
* Feedback should only be shown when `showError` is true, not `hasError`
* Feedback should default to null
* Add margin to the reminder bar close button
* Add changelog
* Add left and right padding to the reminder bar instead of margin-right to close button
---------
Co-authored-by: Cvetan Cvetanov <cvetan.cvetanov@automattic.com>
* CYS: fix filename
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add site title to account checkbox
* Add customer_password support to Store API
* Hide password nag if defining own password
* Add woocommerce_registration_generate_password option to block assets
* Change login prompt to just "log in"
* Add default styling to password inputs
* Reset line height for checkbox inputs
* Add customer password to store
* Add password field to contact information block
* Handle customer password in checkout processor
* Styling for new elements
* Update tests so they match new create account label
* Update log in link in tests
* Add e2e tests for password field
* Add validation message and fix rendering when account is required
* Changelog
* Add missing api to tests
* Remove console log
* rerender checkout
* Update log in link in test
* Adjust validation so we can change the label in messages with custom callback
* Use queryByText in test
* Make sure password generation is on in tests
* Create password if provided password is empty
* Skip "Place order" button translation test
* Revert "Skip "Place order" button translation test"
This reverts commit 7aed6137e88cdb3577f74f6f0c05258b531ed534.
* Update plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-contact-information-block/block.tsx
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Update plugins/woocommerce-blocks/assets/js/data/checkout/reducers.ts
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Comment empty condition
* Update CSS classnames
* Return null in CreateAccountUI if nothing to display
* Linting: Return return param
* Document $password param
---------
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Better docs and minor refactoring for the EvaluationLogger
* Add support for logger args to EvaluateSuggestion methods
* Provide evaluation logger args to EvaluateSuggestion methods
* Improve docs and use short array syntax
* Log when spec rule is not an object
* Sanitize logger arguments for sanity
* Don't use short array syntax because of linter
* Lint fixes
* Add changelog
* docs: Spacing and alignment
* refact: Sanitize only the suggestion tile
* Add filter for rule evaluator logging enabled
* test: Add tests for suggestion evaluation logging
* test: Replace deprecated withConsecutive
* Simplify logic
* test: Cleanup
* test: Add rule logging tests for shipping partnerships
* Lint fixes
* Lint fixes
* 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