* Remove custom `wp_kses` rules in favour of default `wp_kses_post` function
Custom sanitization/validation is no longer needed—we can just inherit wp_kses_post like other field types.
wp_kses was originally implemented for a ShareThis integration a5aa58b135 but this is no longer present in WooCommerce.
iFrame usage is not encouraged in these settings fields so with this change they will be filtered out. Developers who would like to allow iFrames can add a custom `sanitize_callback` function when registering settings fields.
* Apply kses on gateway description unless extended by a plugin
* Code standards + esc in touched abstract payment gateway class
* Changelog
* Use esc_url for icon URL
* Add missing hook docs in payment method class
* Add since documentation
* Skip description if empty
* Run KSES early so we know if the description has content.
* CYS: apply color to the heading elements in the core/cover block
* Add changefile(s) from automation for the following project(s): woocommerce
* fix color
* add E2E test
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add inert to header and footer on the homepage
* Add changefile(s) from automation for the following project(s): woocommerce
* Refactor to pass query as a param to the hook
---------
Co-authored-by: github-actions <github-actions@github.com>
* Handle core profiler get countries error
* Update style
* Add changefile(s) from automation for the following project(s): woocommerce
* Update button and code style
* Address feedback
* Fix lint
* Record skip step track and rename event
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add a call to a new report workflow in woocommerce-test-reports repo
* Test change to trigger tests
* Update report title
* Test change to trigger tests
* Check REPORT_TITLE
* Add quotes on all arguments
* Update reporting configuration to all core e2e jobs
* Add changelog
* Use GITHUB_HEAD_REF for pull_request
* Set REPORT_TITLE for workflow dispatch
* Updated trigger from daily-e2e to daily-checks
The json_encode function encodes multibyte characters literally by
default, which makes them unreadable in the log files. This change
ensures those characters remain intact, rather than encoded. It also
adds better handling for characters that get escaped with slashes.
Fixes#44743
* Fix flaky assembler homepage test
* Add changelog
* Increase waiting time for the assembler loading
* Remove beforeEach and add function to all tests
* Hide Products (Beta) from inserter
* Add changelog
* Update E2E test replacing Products with Product Collection block
* Add step to choose collection in E2E test
* Change fill PW method to pressSequentially so the inserter shows blocks
* Update changelog entry
* Replace Products (Beta) with Product Collection block in blockified template
* Add necessary attributes that influences the look of blocks
* Replace Products (Beta) with Product Collection block in product search results
* Replace Products (Beta) with Product Collection block in products by attribute
* Replace Products (Beta) with Product Collection block in products by category
* Replace Products (Beta) with Product Collection block in products by tag
* Replace Products (Beta) with Product Collection when transforming from classic product archive
* Change the no results content in blockified search results template
* Replace Products (Beta) with Product Collection block in product search results
* Add product search in no results content of blockified product search result
* Add ts-ignore before createBlocksFromInnerBlocksTemplate imports
* Add changelog
* Remove step of replacing Products (Beta) with Product Collection in compatibility layer tests
* Remove step of replacing Products (Beta) with Product Collection in Product Collection tests
* Fix lint
* Update E2E tests of Product Collection
* Adjust Products (Beta) E2E tests
* Add Product Collection focus step in E2E tests
* Improve the way PC block is focused
* Further tests adjustments and new tests comparing classic template with Product Collection
* Bring back the click on body
* Include tips from reviewer
* Enter edit mode, step that I accidentally removde
* Bring the E2E test flow with updating product catalog
* Change the way of removing focus from PC block in tests
* Fix lint
* Improve the layout of search in No Results
* Use previous patterns in Product Search No Results to preserve translations
* Add Search button label in product search form pattern
* Fix lint
* Improve comment explanation
* Extract No Results content to separate pattern in order to make the content translatable
* Lint fix
* Add missing footer to the blockified Products by Tag template
* Exclude woocommerce/patterns from phpcs rules that dont apply there
* Make PC block responsive by default in product archive templates
* Fix typo
* Fix typo
---------
Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
* Small refactoring
* Override the CTA text and behaviour in gateway settings for the WooPayments plugin
* Address lint issues
* Add changelog
* Fix bug introduced during refactoring
* Fix lint error
---------
Co-authored-by: oaratovskyi <oleksandr.aratovskyi@automattic.com>
* CYS: fix css header
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* CYS: hide popover when the mouse pointer leaves the site preview and then back
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Coupon metadata keys `product_ids` and `excluded_product_ids` are stored by WooCommerce as a comma-saparated list of values, but apparently some plugins mistakenly re-store these as serialized arrays. This pull request changes the database metadata read code so that it supports both comma-separated lists and serialized arrays.
Fixes#40569
Log messages can be modified via the `woocommerce_logger_log_message`
filter hook on a per-handler basis, but if the message is modified for
the first handler, the subsequent handlers were receiving the modified
message instead of the original. This simply ensures each handler
receives the original message instead.
Fixes#47126