Commit Graph

47889 Commits

Author SHA1 Message Date
RJ b3aadb9d3d
Merge pull request #32312 from woocommerce/dev/wp-env-sql-credentials
Updated wp-env mysql credentials in development documentation
2022-03-25 12:45:50 +08:00
Claudio Sanches 9448982f5f
Merge pull request #32324 from woocommerce/fix/action-label
Make sure the reply is from issue author before triggering
2022-03-25 00:42:00 -03:00
louwie17 80ec23c425
Merge pull request #32298 from woocommerce/feature/32163_new_task_list_header
Add task list progress header
2022-03-24 16:32:46 -03:00
louwie17 ab9838c0a0
Merge pull request #32333 from woocommerce/add/purchase_task_e2e_tests
Add purchase task E2E test
2022-03-24 16:32:25 -03:00
Lourens Schep a3e9a60577 Remove duplicate property type 2022-03-24 15:26:15 -03:00
Lourens Schep 3ebf785665 Fix progress title logic 2022-03-24 15:25:07 -03:00
Lourens Schep 3ced44cc40 Fix task navigation that contains actionUrl 2022-03-24 15:25:07 -03:00
Lourens Schep c934c62351 Address PR feedback and fix some minor issues 2022-03-24 15:25:06 -03:00
Lourens Schep 569e27bf02 Add changelog 2022-03-24 15:25:06 -03:00
Lourens Schep c281ddb820 Add progress header bar to task list experiment 2022-03-24 15:25:06 -03:00
Lourens Schep 9a6c077b69 Add build-watch command for woocommerce-admin 2022-03-24 15:09:15 -03:00
Lourens Schep 4a76505fdf Add comment for woocommerce-reset plugin addition 2022-03-24 14:11:18 -03:00
Lourens Schep d032c5d603 Skip deletion of the wp mail logging plugin as it is required for testing 2022-03-24 14:08:03 -03:00
Lourens Schep cb6e15523b Add prepare command to project.json 2022-03-24 14:08:03 -03:00
Lourens Schep 20c0c85f9c Fix admin-e2e-test dependency and add new purchase task E2E test, also added the WooCommerce reset plugin 2022-03-24 14:08:03 -03:00
Barry Hughes 9056be919d
Merge pull request #32332 from woocommerce/fix/32329
Don't change quotes when replacing text domain.
2022-03-24 09:23:54 -07:00
Nestor Soriano 913c6bddb2
Add more "#[\ReturnTypeWillChange]" attributes.
These are needed for the code to be compatible with both PHP 7.x and 8.x
2022-03-24 14:08:18 +01:00
Nestor Soriano fbc77160db
Use CssInliner class instead of Emogrifier class
With the upgrade of the Emogrifier package we can't use the Emogrifier
class, since it was removed in v4 (we need to use at least v5 for
compatibility with PHP 8); so we now use the CssInliner class.

Note that this is a potential breaking change for consumers of the
woocommerce_emogrifier hook, which was getting an Emogrifier object
as parameter (now it gets a CssInliner object, which is partially
compatible).
2022-03-24 14:08:18 +01:00
Nestor Soriano 0f2b717462
Fix calls to deprecated PHPUnit methods in unit tests.
Fix tests where PHPUnit 8 would throw "this method is deprecated
and will be removed in PHPUnit 9, use this other one instead"
warnings, by replacing all those with the proper ones. This will help
once we are able to use PHP 8 (once WP requirement is bumped to 5.9)
2022-03-24 14:08:18 +01:00
Nestor Soriano 5837a53821
Add .phpunit.result.cache to .gitignore
This file is created by PHPUnit v8 when tests run.
2022-03-24 14:08:18 +01:00
Nestor Soriano 01073ec24f
Add return type setUp and tearDown methods in unit tests
After the bump to PHP 7.2 all the setUp and tearDown methods
in unit test classes need to have an explicit "void" return type
declaration.
2022-03-24 14:08:17 +01:00
Nestor Soriano 819494f2ed
Bump WooCommerce minimum required PHP version to 7.2
This includes:

- Changing "Requires PHP" in woocommerce.php
- Changing "require-php" and "config-platform-php" in composer.json
- Bumping pelago/emogrifier to ^6.0 in composer.json
- Bumping maxmind-db/reader to ^1.6 in composer.json
- Bumping composer/installers to ^1.9 in composer.json
  (bump to 2.0 not possible due to conflict with Admin package)
- Removing jobs for 7.0/.1 unit test runs in CI
- Explicitly specifying the PHPUnit version to be 7.5,
  otherwise it will install v8 which isn't compatible with
  WordPress <5.9
2022-03-24 14:08:11 +01:00
louwie17 9aaf1b373b
Merge pull request #32341 from woocommerce/fix/ci-yaml
Add "Build Admin feature config" step to "Run CI" action
2022-03-24 09:59:27 -03:00
Peter Fabian 8cd3a86aaa
Merge pull request #31539 from nagpai/fix/30209
Fix columns in checkout page for TwentyTwenty theme
2022-03-24 10:57:22 +01:00
Chi-Hsuan Huang 096759862f Update woo admin node version to ^16 2022-03-24 16:33:53 +08:00
rodelgc 15fbc0be9a
Removed faker dependency (#32069)
* Removed faker dependency
2022-03-24 15:30:40 +08:00
Chi-Hsuan Huang a720ccb42a Add "Build Admin feature config" step to ci.yml 2022-03-24 14:00:43 +08:00
louwie17 eb081aa9fa
Merge pull request #32320 from woocommerce/add/32161_reminder_bar
Add reminder bar for task list experiment
2022-03-23 17:12:05 -03:00
Lourens Schep 44d9824d47 Fix error when tasks are not defined yet 2022-03-23 14:05:25 -03:00
Lourens Schep 371ce71173 Update completed tasks variable 2022-03-23 13:57:48 -03:00
Josh Betz 939d429389
Simplify product variation filtering
Fixes an issue where we were conditionally mutating the meta key and value. This was originally copy/pasted from somewhere else. In this context, we don't need all of these values, so the simpler approach is good.

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-03-23 11:09:50 -05:00
Josh Betz 8446625b0d
Merge pull request #32073 from woocommerce/reviews-api/add-product-info
Added product name + permalink to the GET Reviews API endpoint response
2022-03-23 11:06:22 -05:00
Tomek Wytrębowicz f7580b98a4 Define CurrencyConfig type, export declarations
Redo afa01e3342
2022-03-23 15:50:14 +01:00
Peter Fabian f2b534c687 WC Admin is no longer a package 2022-03-23 15:45:21 +01:00
Tomek Wytrębowicz fcf529b87c Remove unrelated Google Search link form README
Redo 1c4c8b4c15
2022-03-23 15:42:22 +01:00
Seghir Nadir 180178044a
Update WooCommerce Blocks package to 7.2.1
This pull updates the WooCommerce Blocks plugin to 7.2.1. It is intended to target WooCommerce 6.4 for release. This supercedes https://github.com/woocommerce/woocommerce/pull/32075.

Details from all the different releases included in this pull:

## Blocks 7.2.1
[Release PR](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6072)
[Testing Instruction](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/testing/releases/721.md)

### Changelog entry

#### The following changelog entries are only those that impact existing blocks and functionality surfaced to users:

#### Bug fixes

- Don't trigger class deprecations notices if headers are already sent [#6074](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6074)

### Changelog entry
> Dev - Update WooCommerce Blocks version to 7.2.1
2022-03-23 15:02:45 +01:00
Rodrigue Tusse e7f822e8eb Changes to class-wc-auth that allows it to work with sso auth 2022-03-23 15:51:42 +02:00
Peter Fabian d7642c7ae7 Don't change quotes when replacing text domain. 2022-03-23 13:50:37 +01:00
Fernando Marichal f276434ea4 Disable welcome modals 2022-03-23 09:11:34 -03:00
anitaamurthy 7603a2c02b Fixed spacing issue 2022-03-23 17:11:09 +05:30
Chi-Hsuan Huang e3d035a624
Merge pull request #32291 from woocommerce/add/32138-ability-for-code-based-notes-to-update
Add ability for code-based notes to update
2022-03-23 17:08:15 +08:00
RJ 04d94d0430
Merge pull request #32327 from woocommerce/dev/publish-wca-packages
Corrected path for publishing commands
2022-03-23 16:07:19 +08:00
rjchow 2d8214af2e Corrected path for publishing commands
- typo in the path in previous commit
2022-03-23 13:30:11 +08:00
Chi-Hsuan Huang 9d7879b254
Merge pull request #32290 from woocommerce/add/primary-arg-back-to-add-action
Add `$primary` param back to add_action method
2022-03-23 11:22:52 +08:00
RJ fc163b6dc9
Merge pull request #32313 from woocommerce/dev/publish-wca-packages
Bump WCA JS packages version numbers in package.json and changelogs
2022-03-23 11:18:04 +08:00
Tomek Wytrębowicz b03b1184ac Fix returned type of `numberFormat`.
`locutus/php/strings/number_format` seems to always return a `String`.

Redo baa0c5d2b4.
2022-03-22 20:56:07 +01:00
Tomek Wytrębowicz 0b959cfc70 Update `formatValue` docs, explain "based on type",
Fix the returned value's type.

Redo 5d7d53f01a.
2022-03-22 20:55:03 +01:00
Tomek Wytrębowicz 6013099e7f Define NumberConfig data type, export type declarations.
Redo 8cdc828b37.
2022-03-22 20:52:30 +01:00
roykho d346630747
Make sure the reply is from issue author before triggering 2022-03-22 08:53:16 -07:00
Tomek Wytrębowicz a67188b52e Fix argument forwarding for npm script lint:js-fix.
Redo 7d1a6661f9.
2022-03-22 16:36:17 +01:00