Commit Graph

52979 Commits

Author SHA1 Message Date
Fernando Marichal 0be60a44a8
Add 'product_block_editor' to 'legacy_feature_ids'. (#38835)
* Add product_block_editor to legacy_feature_ids

* Add changelog
2023-06-21 13:11:11 -03:00
Nestor Soriano 46b259bc8d
Add changelog file 2023-06-21 17:44:28 +02:00
Nestor Soriano 5d4c07d23c
Improvements to the DI related unit testing infrastructure:
- When ExtendedContainer::replace is used passing an instance of
  an object, the 'init' method will be executed in the instance
  when resolving the replaced class name.
- Added the ExtendedContainer::reset_replacement method, this will
  undo a 'replace' and reset the registration back to its original state.
- Similarly, added the ExtendedContainer::reset_all_replacements method.
2023-06-21 17:39:34 +02:00
kidinov 634377bbc9 Fixed test again 2023-06-21 16:46:52 +02:00
kidinov ecccfdf2c7 Fixed test 2023-06-21 16:15:36 +02:00
kidinov c7134e6eff Fixed formatting 2023-06-21 15:44:23 +02:00
Luigi Teschio cb0602cfa9
Update to WooCommerce blocks 10.4.3 (#38839)
update to wc blocks 10.4.3
2023-06-21 15:32:11 +02:00
kidinov 071d913b0f Added tests 2023-06-21 15:15:27 +02:00
Gan Eng Chin f31eca2ec5
Marketing: Do not show "Create a campaign" button if there are no campaign types (#38825) 2023-06-21 19:43:35 +08:00
kidinov 08b08e5619 Fixed where contitions. Handle name parameter 2023-06-21 13:37:38 +02:00
Gan Eng Chin 04294c4ec8
Simplify code to display buttons in IntroductionBanner. 2023-06-21 18:53:45 +08:00
kidinov 0e1f78318e Attempt to fix formatting 2023-06-21 11:28:56 +02:00
Nestor Soriano 182d8bf7f2
Add changelog file 2023-06-21 10:29:42 +02:00
Nestor Soriano 12a453f1a5
ORdersTableDataStore: capture+log exceptions when populating order properties.
This makes the behavior of wc_get_order to be the same as when HPOS
is disabled (and Abstract_WC_Order_Data_Store_CPT is thus used
instead): the order is still retrieved (although without the errored
properties set) instead of the function just returning false.

An example of when this can happen is if an order refund has the id
of a no longer existing order as the parent id.
2023-06-21 10:25:14 +02:00
Leif Singer bc2cba7b81
fix: check whether WC_ADMIN_APP is defined before using (#38806) 2023-06-21 09:14:20 +02:00
Paul Sealock 5b0aa22402
WooCommerce: Handle legacy JS use of ES6 (#38342)
* use grunt-contrib-uglify-es

* changelog

* fix syntax

* remove null coalescence

* lockfile
2023-06-21 14:10:49 +12:00
Paul Sealock ec9f489dd0
Update phpcs-changed to version 2.11.1 (#38756)
* bump version

* composer lock file update

* changelog
2023-06-21 14:09:28 +12:00
barryhughes a473a001ce Selectively invalidate cached plugin data when needed. 2023-06-20 14:27:03 -07:00
barryhughes 1c2dd45ffd Ignore cached plugin data when checking if plugins are WooCommerce-aware. 2023-06-20 13:12:13 -07:00
Corey McKrill 79b52d2a5f
Linting: Add pnpm commands and update contributing guidelines (#38727)
Adds pnpm commands for utilizing the new phpcs-changed Composer scripts, and updates documentation to make these commands more discoverable.
2023-06-20 12:33:41 -07:00
Michael Pretty 6771b48c20
get_index_columns using SHOW INDEX FROM query instead of information_schema (#36427)
* get_index_columns using SHOW INDEX FROM query instead of information_schema

* returning empty array for clarity

* ignore interpolated query

* adding changelog entry

* Adding unit tests for the updated DatabaseUtil::get_index_columns()

---------

Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>
2023-06-20 15:34:59 -03:00
Ron Rennick f012b4d038 update remaining print_r in HPOS code 2023-06-20 14:01:02 -03:00
github-actions[bot] 87c69f38e6
Release: Remove 7.9 change files (#38814)
Delete changelog files from 7.9 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:51:33 -05:00
github-actions[bot] 1f68c707cc
Prep trunk for 8.0 cycle (#38812)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:51:03 -05:00
github-actions[bot] 0c5a374c30
Update changelog.txt from release 7.8.0 (#38703)
Prep trunk post release 7.8.0

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2023-06-20 11:50:31 -05:00
github-actions[bot] 95e7ff576e
Delete changelog files based on PR 38545 (#38568)
Delete changelog files for 38545

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:49:18 -05:00
github-actions[bot] 8b9007d470
Delete changelog files based on PR 38819 (#38829)
Delete changelog files for 38819

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:17:54 -05:00
Ismael Martín Alabarce d31b7866af
Add missing spacing in WCPay welcome incentive page cards (#38819)
* Add missing card spacing for the WCPay welcome incentive cards

* Add changelog entry
2023-06-20 11:12:44 -05:00
Gan Eng Chin 617b51c91d
Add and fix tests for Campaigns component. 2023-06-20 23:03:56 +08:00
Joshua T Flowers dad636799a
Redirect to the old editor when attempting to edit a non-supported product type (#38745)
* Redirect to the old editor when attempting to edit a non-supported product type

* Add changelog entry

* Fix lint errors
2023-06-20 10:15:56 -04:00
Gan Eng Chin c6a5e8ba41
Do not show "Add channels" button when create campaign button is not shown. 2023-06-20 22:13:24 +08:00
kidinov 683039f88b Change log file 2023-06-20 16:07:03 +02:00
kidinov dba0b6fb8d Fixed code style issue 2023-06-20 16:03:51 +02:00
kidinov 1ffacdad67 Updated DataStore to handle filter_empty field 2023-06-20 15:59:44 +02:00
Gan Eng Chin dbfb8f81d8
Add changelog. 2023-06-20 21:07:54 +08:00
Gan Eng Chin 2b477fb93f
Show create campaign button in campaigns card when there are campaign types. 2023-06-20 21:05:27 +08:00
Gan Eng Chin 81c34086fe
Display create campaign button when there are campaign types. 2023-06-20 20:54:45 +08:00
kidinov 7f8aa07cdc Added `filter_empty` parameter 2023-06-20 12:46:53 +02:00
Chi-Hsuan Huang 9509ae8136
Fix help panel links (#38817)
* Fix links under "Help" panel on Home screen

* Add changelog
2023-06-20 18:11:44 +08:00
Nestor Soriano 740e5e55a8
Add missing 'use' in HPOSToggleTrait 2023-06-20 10:38:13 +02:00
Nestor Soriano 2051e2b61b
Change 'toggle_cot' class to 'toggle_cot_feature_and_usage' 2023-06-20 10:14:23 +02:00
github-actions[bot] 109b9bfb2e
Prepare Packages for Release (#38818)
Automated change: Prep @woocommerce/onboarding for release.

Co-authored-by: chihsuan <chihsuan@users.noreply.github.com>
2023-06-20 16:13:48 +08:00
Nestor Soriano 2ce0d70f1e
Fix small space misalignment 2023-06-20 09:46:41 +02:00
Nestor Soriano 97d296b681
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-06-20 09:25:50 +02:00
Sam Seay 924b29fd92
Add support to install master branch when using WooCommerce Beta Tester (#38536) 2023-06-20 18:54:49 +12:00
Joel Thiessen 6c3256b413
Handling errors from token endpoint (#38708) 2023-06-19 13:44:05 -07:00
Ron Rennick 08c0d0ac4c
fix deprecated warning in dashboard setup (#38776)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-19 15:05:07 -03:00
Nathan Silveira 3b038f3475
Disable 'Used for variations' checkbox when product type is not variable (#38802)
* Disable 'Used for variations' checkbox when product type is not variable and remove leftover code

* Run disable or enable fields after saving attributes
2023-06-19 14:50:03 -03:00
Vlad Olaru b3f66e4e3c
Update incentives logic - minor addition (#38803) 2023-06-19 19:23:10 +03:00
Vlad Olaru 4fffdf5703
Fix lint issue 2023-06-19 18:50:12 +03:00