Commit Graph

64729 Commits

Author SHA1 Message Date
Jorge A. Torres 9988b2d83c Bump stable tag after 9.2.2 (#50895)
Update stable tag
2024-08-22 18:52:43 -03:00
Jorge Torres e1dffbee53 Update changelog 2024-08-22 11:47:54 -03:00
Naman Malhotra 56f8f50069
Revert "PluginUtil: Add method to get active valid plugins (#48709)" (#50881)
* Revert "PluginUtil: Add method to get active valid plugins (#48709)"

This reverts commit 4d68cd486e.

* Reintroduce get_all_active_valid_plugins public function after revert (#50885)

Retroduce get_all_active_valid_plugins public function after revert
2024-08-22 21:41:07 +07:00
Naman Malhotra 5003e05b19
Revert "Drop Select2 in Backwards compatable manner (#48731)" (#50854)
This reverts commit 8f98a2a057.
2024-08-22 20:31:01 +07:00
Jorge A. Torres fa9bc606cd
Prep release/9.2 for 9.2 cycle (#50883)
Prep release/9.2 for 9.2 cycle with version bump to 9.2.2
2024-08-22 10:25:30 -03:00
Jorge Torres 37ec47dfc2 Update readme after stable version update on wporg. 2024-08-21 15:35:18 -03:00
Jorge A. Torres 37da75e20d
Prepare changelog for next release in 9.2 cycle (#50819)
Update readme
2024-08-20 20:11:27 -03:00
Corey McKrill 01fadee760
Revert "Cherry pick #339 into release/9.2 (#50806)" (#50809)
This reverts commit a9845e6a1d.
2024-08-20 20:01:18 -03:00
Jorge A. Torres 5dad17c228
Prep release/9.2 for 9.2 cycle (#50817)
Prep release/9.2 for 9.2 cycle with version bump to 9.2.1
2024-08-20 19:55:45 -03:00
Jorge A. Torres 93bd318fd2
Cherry pick #326 into release/9.2 (#50805)
* Track download attempts, even if only part of the file was downloaded.

* Test range requests/download count handling.

* Respect toggle that allows partial download counting to be disabled.

* Add `@since` tag to docblock.

* Whitespace fixes.

* Update documentation link.

* Drop changelog

* phpcs cleanup

* Fix unit test

* Make phpcs happy, even though it's wrong

---------

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-08-20 18:29:32 -03:00
Jorge A. Torres 2cded2edb1
Cherry pick #378 into release/9.2 (#50801)
* use HTML API to inject attributes

* remove comment

* improve check

* Keep lower kebab-case conversion.

* Fix preventing double dash when an attrib starts with a uppercase letter.

* Removed unneeded var.

* Return early if $content does not start with <div to keep existing behaviour, and also keep the trim for output consistency.

* Revert to the return early based on WP_HTML_TAG_Processor::next_tag query

* Changed the early return condition.

* Added changelog.

* Remove changelog

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2024-08-20 18:04:23 -03:00
Jorge Torres 7f5b53afb4 Update readme 2024-08-20 17:43:38 -03:00
Jorge A. Torres 60bea63fe8
Cherry pick #367 into release/9.2 (#50804)
* Init: Revoke download parmission for partially refunded items

* fix failing tests

* fix failing tests

* added tests

* Added changelog

* review changes

* Drop changelog

* Address PHPCS violation

---------

Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>
2024-08-20 17:38:38 -03:00
Jorge A. Torres 3625a4f55d
Cherry pick #371 into release/9.2 (#50802)
* Use inert `template` tag to strip tags w/o executing any JS

Fixes https://github.com/Automattic/woocommerce/issues/370

* Guard against legacy browsers to avoid executing JS there.

* Make sure `stripTags` always return `string` not `null`

* Fix typo in code comment  packages/js/currency/src/utils.tsx

Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>

* Add tests and tweak stripTags

* Tweak tests

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

---------

Co-authored-by: Tomek Wytrębowicz <tomalecpub@gmail.com>
Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>
Co-authored-by: Miguel Pérez Pellicer <5908855+puntope@users.noreply.github.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2024-08-20 17:33:59 -03:00
Jorge A. Torres a9845e6a1d
Cherry pick #339 into release/9.2 (#50806)
* Make AccessiblePrivateMethods::_accessible_private_methods static.

This prevents the contents of the property to be included
in the object serialization.

* Add changelog file

* Small optimization

* Change 'self' to 'static' for consistency

* Add unit test for serialization

* Drop changelog

* Add changelog entry to readme.txt

---------

Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2024-08-20 16:56:17 -03:00
Jorge A. Torres 6937fc68a3
Prep release/9.2 for 9.2 cycle (#50768)
* Prep release/9.2 for 9.2 cycle with version bump to 9.2.0

* Update release date
2024-08-19 16:36:45 -03:00
nigeljamesstevenson 5d79827643
Update readme.txt 2024-08-19 18:05:06 +01:00
github-actions[bot] 55d823a30e
Cherry pick 50700 into release/9.2 (#50711)
* Reset password form: Fix regression which prevents new logged in accounts from setting initial password (#50700)

* Update logic to allow new accounts to set their password

* Changelog

* phpcs ignores

* Doc block update

* Remove redirect if lost-password accessed by logged in user

* Remove restriction on lost password page

* Prep for cherry pick 50700

* Missing global $wp

---------

Co-authored-by: Mike Jolley <mike.jolley@me.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2024-08-19 11:17:02 -03:00
github-actions[bot] 8039a96735
Cherry pick 50685 into release/9.2 (#50705)
* Remove global_unique_id from interface and add warning in case it is not implemented (#50685)

* Prep for cherry pick 50685

* Cherry-pick 50702 into this cherry-pick :)

* Update changelog

---------

Co-authored-by: Nathan Silveira <nsschneider1@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2024-08-16 14:39:17 -03:00
github-actions[bot] 7650d408df
Cherry pick 50679 into release/9.2 (#50689)
* CYS: avoid to enqueue Jetpack scripts (#50679)

* CYS: avoid to enqueue jetpack scripts

* Add changefile(s) from automation for the following project(s): woocommerce

* remove not necessary import

---------

Co-authored-by: github-actions <github-actions@github.com>

* Prep for cherry pick 50679

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-14 17:41:07 +01:00
nigeljamesstevenson 902286f727
Delete plugins/woocommerce/changelog/update-stricter-global-unique-id 2024-08-14 00:45:04 +01:00
nigeljamesstevenson d6206a2af7
Delete plugins/woocommerce/changelog/50629-fix-50614 2024-08-14 00:42:39 +01:00
nigeljamesstevenson 63941db203
Update readme.txt 2024-08-14 00:39:39 +01:00
Nathan Silveira 5a6c89a31f
Cherry-pick global unique ID fixes (#50652)
* Add pattern validation for global_unique_id (#50501)

* Add validation for global_unique_id in classic editor

* Fix an issue with validations in the text block

* Replace everything that is not number or hyphen in the product API

* Add pattern validation in the product and variation templates

* Add changelogs

* Increment regex to also accept empty string

* Fix e2e test

* Update update-stricter-global-unique-id

* [Fix] Clear product unique ID (`global_unique_id`) when duplicating products. (#50629)

* Generates unique product unique ID (`global_unique_id`) when duplicating products.

* Just clear the global unique id.

* Add changelog

---------

Co-authored-by: Marianne380 <marianne@wp-syntex.fr>
2024-08-14 00:26:16 +01:00
github-actions[bot] 7be480d24c
Cherry pick 50608 into release/9.2 (#50647)
* Exclude privacy page from the store pages -- it is a core page (#50608)

* Exclude privacy page from the store pages -- it is a core page

* Add changefile(s) from automation for the following project(s): woocommerce

* Remove privacy page deletion in unit test

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Prep for cherry pick 50608

---------

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-13 20:08:46 +01:00
github-actions[bot] 79d293a127
Cherry pick 50496 into release/9.2 (#50645)
* Clear global_unique_id when restoring a product with an existing global_unique_id (#50496)

* Clear global_unique_id when restoring a product that doesn't have an unique id

* Check if product exists before calling methods

* Prep for cherry pick 50496

---------

Co-authored-by: Nathan Silveira <nsschneider1@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-13 18:28:54 +01:00
github-actions[bot] 8bd10b29ea
Cherry pick 50592 into release/9.2 (#50602)
* Fixed the order of elements on the Order Confirmation screen (#50592)

* Fixed the order of elements on the Order Confirmation screen

* Added changelog

* Linting.

* Add wrapper around account notices

---------

Co-authored-by: Mike Jolley <mike.jolley@me.com>

* Prep for cherry pick 50592

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
Co-authored-by: Mike Jolley <mike.jolley@me.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-13 09:59:29 -07:00
github-actions[bot] 58b59ff8e1
Cherry pick 50507 into release/9.2 (#50561)
* Manually init template registry and controller for non-block themes (#50507)

* Manually init template registry and cotnroller when get_query_template returns nothing

* Add changefile(s) from automation for the following project(s): woocommerce

* Validate template before including it

* Move class registration to init method

* Remove container registration from coming soon handler

* Lint

* Moved registration to register_dependencies

* Change blocks init condition to only when it's not initialized

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Prep for cherry pick 50507

---------

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-09 11:04:56 -07:00
github-actions[bot] fc3bc34b77
Cherry pick 50410 into release/9.2 (#50476)
* Customer Account - Maintain the size of the icon in smaller screens (#50410)

* Customer Account - Maintain the size of the icon in smaller screens

* Hide overflow text

* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>

* Prep for cherry pick 50410

---------

Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-08 13:08:54 +01:00
github-actions[bot] 1495cc0ccd
Cherry pick 50138 into release/9.2 (#50456)
* Fix new account notice not showing in Checkout block. (#50138)

* Correctly cast the account creation nag option

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>

* Prep for cherry pick 50138

---------

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-07 22:58:19 +02:00
github-actions[bot] 302b50cf54
Cherry pick 50200 into release/9.2 (#50418)
* Use admin password reset link on admin login screen (#50200)

* Use admin password reset link on admin login screen

* Add changelog

* Take a different approach that’s compatible with JN

* Update code comment

* use existing variable

* Update tests

* Lintfix

* Change to alternative aproach for detecting admin login form

* Whitespace

* Update test

* Lint fix

* Prep for cherry pick 50200

---------

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-06 10:45:49 -07:00
Jorge A. Torres 91afd71b96
Clean up changelog in readme.txt (#50376) 2024-08-05 23:39:24 +01:00
Jorge A. Torres 711605842c
Prep release/9.2 for 9.2 cycle (#50361)
Prep release/9.2 for 9.2 cycle with version bump to 9.2.0-rc.1
2024-08-05 17:02:25 +01:00
github-actions[bot] 4ea1b3332e
Cherry pick 50126 into release/9.2 (#50356)
* Use UTM parameters to link Tracks events: CTA from connect notice and successful site connection (#50126)

Pass UTM parameters to get events from clicking "connect" notice to site being connected

* Prep for cherry pick 50126

---------

Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-05 12:42:30 +01:00
github-actions[bot] e56a7ddc20
Cherry pick 50180 into release/9.2 (#50242)
Product Editor: Fix shipping dimensions length field label (#50180)

Correct label of length field

Co-authored-by: Matt Sherman <matt.sherman@automattic.com>
2024-08-01 16:07:21 -04:00
github-actions[bot] 159698b308
Cherry pick 50236 into release/9.2 (#50237)
* Prevent creation of password-protected coupons (#50236)

* Warn when creating password-protected coupons

* Add changelog

* Prep for cherry pick 50236

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-08-01 11:43:00 -07:00
Barry Hughes 53809062f6
Remove changelog file. (#50105) 2024-07-30 10:38:24 +01:00
Barry Hughes 14db3c823d Update stable tag. 2024-07-29 13:13:08 -07:00
Barry Hughes cd1bd17021 Add changelog entry (cherry-picking tool failed to bring it across). 2024-07-29 12:47:06 -07:00
nigeljamesstevenson a66da660f7
Cherry-pick #363 into release/9.2 (#50100)
* XSS vulnerability on various unescaped attributes

* escape more blocks

* Fix misplaced json encode flags

* Add escaping to the block names

* Update changelog message

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: roykho <roykho77@gmail.com>
2024-07-29 12:15:03 -07:00
github-actions[bot] 542c675963
Cherry pick 50076 into release/9.2 (#50096)
- Add `admin_install_timestamp` in `WC_Tracker` (#50076) 

Co-authored-by: Miguel Pérez Pellicer <5908855+puntope@users.noreply.github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-29 18:50:58 +02:00
github-actions[bot] 05cf21536d
Cherry pick 49929 into release/9.2 (#50094)
* Add validation to select fields and add placeholder option to additional fields API (#49929)

* Add validation and empty value to select components

* address feedback

* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce

* remove console log

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* remove test

* Fix tests

* also move select to parent

* fix tests

* add empty enum to schema

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Prep for cherry pick 49929

---------

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-07-29 18:43:06 +02:00
nigeljamesstevenson 289e6b9652
Cherry pick #351 into release/9.2 (#50072)
* XSS vulnerability on various unescaped attributes

* escape Product Filter Stock status

* escape more blocks

* escape more blocks

* escape more blocks

* add changelog

* update changelog

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-07-29 13:15:09 +01:00
WooCommerce Bot 36cdd4f46b Update the readme files for the 9.2 release 2024-07-25 00:04:44 +00:00
WooCommerce Bot e914dda879 Delete changelog files from 9.2 release 2024-07-25 00:04:44 +00:00
WooCommerce Bot 9d3de62408 Prep release/9.2 for 9.2 cycle with version bump to 9.2.0-beta.1 2024-07-25 00:03:34 +00:00
Alexandre Lara 6000a1e83c
[Experimental] Product Filters Redesign: Create the template part (#49692)
* Add Product Filters template part

* Improve Product Filters template part description

* Hide Product Filters block from the inserter

* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce

* Add E2E tests

* Fix lint error

* Fix lint error

* add: register variation for unmodified template part

We should move this to abstract class later.

* Fix lint error

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2024-07-24 17:36:18 -03:00
Alba Rincón 3fab8e7519
CYS - Update the intro pages for different type of themes (#49910)
* CYS - Revert the button copy customize the TT4 theme

* Add changefile(s) from automation for the following project(s): woocommerce

* CYS - Add banner for block themes

* Add banner for block themes

* Fix tests

* Fix tests

* Fix intro banners

* Add modal to the use store designer

* Fix tests

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix lint errors

* use sendEvent instead of redirect

* fix lint error

* fix logic on ai flow

* fix build

* improve check

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2024-07-24 18:09:12 +02:00
Thomas Roberts df8d5b751e
Revert "[Enhancement]: Add option to show price on the place order button" (#49899)
* Revert "[Enhancement]: Add option to show price on the place order button (#4…"

This reverts commit a71fb4d7a6.

* Add changelog
2024-07-24 18:08:05 +02:00
Fernando Marichal 4e368a1b67
Add readme for validations (#49723)
* Add readme for validators

* Add changelog

* Add docs manifest

* Fix product-editor.md

* Fix readme
2024-07-24 13:02:02 -03:00