Commit Graph

54765 Commits

Author SHA1 Message Date
Matt Sherman 20fac52381
Product Editor: Select product name block initially if set to autofocus (#41189) 2023-11-06 14:08:12 -05:00
github-actions 3b945dbd6d
Add changefile(s) from automation for the following project(s): woocommerce 2023-11-06 11:07:52 -08:00
Corey McKrill 791f5db5b4
Logging: Add missing script exit after redirect
Prevents a fatal error that could occur if you submitted the bulk
edit form on the Logs list table without selecting any log files first.

Fixes #41197
2023-11-06 11:07:52 -08:00
Nathan Silveira 87db3d20a6
Add attribute empty state image when no attribute has been added (#40956)
* Add attribute empty state image when no attribute has been added

* Render attribute skeleton as HTML
2023-11-06 14:05:22 -03:00
Matt Sherman 2f65ad23a5 Changelog 2023-11-06 10:58:10 -05:00
Matt Sherman 6544a9cf69 Select product name block initially 2023-11-06 10:58:10 -05:00
louwie17 dfc2f70f46
Shrink large banner image (#41247)
* Shrink intro banner image in customize store

* Add changelog
2023-11-06 11:07:23 -04:00
Néstor Soriano f098a116e1
Add the wc_allow_changing_orders_storage_while_sync_is_pending filter (#39988)
* Add the wc_allow_changing_orders_storage_while_sync_is_pending filter

For HPOS the idea is to disallow changing the authoritative data
source for orders (new tables <--> posts table) while there are orders
pending synchronization, since this can lead to data loss. However,
while this was indeed disallowed in the features UI, it was still
possible to manually change the value of the corresponding option
(via "wp option" command); there was code in place to prevent this
(by throwing an exception) but it had been commented out to ease
testing during the development of the feature.

This commit restores that commented out code, so in principle,
trying to change value of the option while there are orders pending
synchronization will throw an exception. BUT a filter is introduced,
wc_allow_changing_orders_storage_while_sync_is_pending, to allow
bypassing this behavior: the filter returns "false" by default, but
if it returns "true", changing the option will never throw an
exception. This is needed for a few of the existing unit tests,
but otherwise it should never be done (and the filter is documented
as such).

Additionally, if the filter returns "true" it will be possible to
change the value of the option in the features UI; but a warning
message will be shown in red if there are orders pending sync.

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

* Fix code inadvertently duplicated when merging from trunk.

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

* Fixes after manually undoing merge conflicts

* Fix linting issue

* Fix unit tests

* Fixed a bug that allowed changing the authoritative table from wp cli
even with orders pending synchronization

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

* Fix some more unit tests

* Delete duplicated changelog file

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-06 14:55:15 +00:00
nigeljamesstevenson 50c56d8427
k6 perf tests: Fix parsing of COT/HPOS environment variable (#40930) 2023-11-06 14:54:13 +00:00
Leif Singer 6cf13eb967 add changelog file 2023-11-06 14:21:12 +01:00
Leif Singer ac36a464db appease the linter 2023-11-06 14:20:05 +01:00
Leif Singer 7394e8344f update woocommerce.com email addresses to woo.com 2023-11-06 14:06:54 +01:00
Panos (Panagiotis) Synetos 8df23888b8
Renamed is_wooexpress to is_woo_express and updated readme 2023-11-06 14:50:29 +02:00
Panos (Panagiotis) Synetos 53d7388269
Merge branch 'trunk' into add/wooexpress-rin-rule 2023-11-06 14:46:53 +02:00
Panos (Panagiotis) Synetos 15da9903d4
Cleanup references to is_ecommerce 2023-11-06 13:19:33 +02:00
Luigi Teschio cbc3bac88c
Fix pattern route performance (#41168)
* fix pattern route performance

* Fetch multiple endpoints

* update namespace

* update business description

* fix payload

* remove eslint comment

* add changelog

* update interval of the loading frames
2023-11-06 18:51:11 +08:00
Chi-Hsuan Huang 5f819cc40e
Fix CYS initial pattern population bug (#41233)
* Fix CYS initial pattern population bug

* Add changelog
2023-11-06 15:46:28 +08:00
Eason 0e3b04ac35
Avoid the PHP error with an undefined property on the WooCommerce > Extensions page (#41125)
* Avoid the PHP error with an undefined property on the WooCommerce > Extensions page.

* Add changelog
2023-11-06 14:38:27 +08:00
Fernando Marichal b1b9e11323
Add preview and replace button to downloads edit (#40835)
* Add image replace

# Conflicts:
#	packages/js/product-editor/src/blocks/product-fields/downloads/edit-downloads-modal/edit-downloads-modal.tsx

* Add image and replace button

* Change styles

* Add changelog

* Verify the file is an image

* Fix image size

* Fix styles

* Changed left padding

* Fix image gap

* Fix style
2023-11-03 17:07:07 -03:00
Barry Hughes 06708f5851 Changelog should be 'minor', not 'patch'. 2023-11-03 12:56:07 -07:00
Barry Hughes 0a3ca8a0dc Break apart conditions relating to postcode-requirements for the shipping calc.
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-11-03 12:56:07 -07:00
Barry Hughes 4b524c4cbd Break apart conditions relating to state-requirements for the shipping calc.
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-11-03 12:56:07 -07:00
barryhughes 0cfda2cee2 Update `@since` tags, reformat hook docblocks. 2023-11-03 12:56:07 -07:00
barryhughes 9b507a55a7 Changelog. 2023-11-03 12:56:07 -07:00
Marco Almeida a8e663095f Update plugins/woocommerce/includes/class-wc-cart.php
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2023-11-03 12:56:07 -07:00
Marco Almeida 8c7bb72910 Update plugins/woocommerce/includes/class-wc-cart.php
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2023-11-03 12:56:07 -07:00
Marco Almeida 350e703704 Allow removing postcode and state from calculator even if required
Allow removing postcode and state fields from the shipping calculator, if they're not needed for calculation, even if they're required at the checkout.
Fixes #28393
2023-11-03 12:56:07 -07:00
Ron Rennick c87551b6c0 Merge branch 'trunk' into oginomizuho-patch-1 2023-11-03 16:26:11 -03:00
Ron Rennick 3beb6e6de3 update another tax class sanitization 2023-11-03 16:11:58 -03:00
jonathansadowski 0a11d03ce5
Remove milestone from unmerged PRs (#41216)
* Remove milestone from unmerged PRs

* Add pr write permission to milestone manager
2023-11-03 13:22:07 -05:00
Matt Sherman ab51a761a3
Product Editor: Add PostTypeContext and blocks access to plugins (#41106) 2023-11-03 12:53:10 -04:00
Ron Rennick 335aa30c2a Merge branch 'trunk' into patch-1 2023-11-03 13:50:40 -03:00
Jonathan Lane 6ff4b13b63
Add tests for tax display for the shopper (#40178)
* Add tests for tax display for the shopper

* Add changelog

* Renamed .spec file

* Fixes for re-testability

* Fix a locator problem

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-11-03 09:14:27 -07:00
Panos (Panagiotis) Synetos f97804e4bf
Code review 2023-11-03 17:23:02 +02:00
Ron Rennick f4b6139974
Add stalebot schedules to allow processing of all issues (#41198) 2023-11-03 11:01:12 -03:00
Ron Rennick 184f7dfbb4
Prevent warning on wc_get_product_variation_attributes (#32288) 2023-11-03 10:26:27 -03:00
Ron Rennick aa19b8913d Merge branch 'trunk' into add/stalebot-schedules 2023-11-03 10:24:47 -03:00
Gan Eng Chin eac4258baa
Allow null in multichannel campaign. (#41180) 2023-11-03 21:17:16 +08:00
Gan Eng Chin 108fd9ee1f
Fix marketing campaign link not navigating to the right page (#41182) 2023-11-03 21:16:54 +08:00
Matt Sherman 18faf14db7 Update changelog 2023-11-03 09:16:14 -04:00
Matt Sherman afbe61a4f7 Move PluginArea into BlockEditor so plugins can get block info 2023-11-03 09:16:14 -04:00
Matt Sherman fc2fa8598b Changelog 2023-11-03 09:16:14 -04:00
Matt Sherman 15d46e478c Add PostTypeContext 2023-11-03 09:16:14 -04:00
Gan Eng Chin 9a3c66aca4
Merge branch 'trunk' into fix/null-allowed-in-multichannel-campaign 2023-11-03 20:18:08 +08:00
Gan Eng Chin 56712b3568
Merge branch 'trunk' into fix/marketing-campaign-link 2023-11-03 20:15:39 +08:00
nigeljamesstevenson 79c5a2b143
Revert "Branch to test sadow pr 41200" (#41213)
Erroneous PR created when forking
2023-11-03 11:43:57 +00:00
nigeljamesstevenson a07f35c384
Revert "Branch to test sadow pr 41200" 2023-11-03 11:40:55 +00:00
nigeljamesstevenson 3966d44644
Fix save button is still disabled after changing logo settings (#41208) 2023-11-03 11:28:21 +00:00
nigeljamesstevenson 457da86ef7
Rename the reference to the 'Footer with Simple Menu and Cart' pattern (#41181) 2023-11-03 11:28:03 +00:00
nigeljamesstevenson 99e81720c3
Fix CYS UI bugs - Nov 3 (#41209) 2023-11-03 11:27:05 +00:00