Nestor Soriano
518c52b829
Move PSR4 autoloading from woocommerce.php to the Autoloader class
2020-07-24 09:20:24 +02:00
Nestor Soriano
312383ae47
First steps towards introducing a dependency injection framework.
...
- Add PHP League's Container package via Composer.
- Add an ObjectContainer class that encapsulates all the configuration
and insulates the codebase from the concrete DI engine used.
- Add an improved ReflectionContainer class that will allow to
register individual classes as singletons while autowiring.
- Use ObjectContainer to resolve the WooCommerce class, everything
instantiated with "new" inside it, and all singletons that are
usually obtained via WC() function.
- Introduce the CustomerProvider class.
- Introduce a service provider to resolve WC_Queue_Interface,
this replaces the WC_Queue class.
- Mark as obsolete all the replaced "instance()" methods,
and the entire WC_Queue class.
2020-07-24 09:20:21 +02:00
Tam Mullen
86da271e6e
Merge pull request #27063 from woocommerce/fix/e2e-obw-4.3
...
Fix OBW e2e test in WC 4.3: Scroll Home Screen tasks list into view for the `Set up shipping` click to work
2020-07-23 15:48:18 +01:00
Christopher Allford
2d39467fb4
Merge pull request #27073 from mahdiyazdani/patch-3
...
Removed dot "." from the generated password string
2020-07-21 11:12:02 -07:00
Peter Fabian
544a7322eb
Merge pull request #27080 from woocommerce/update/woocommerce-admin/1.3.1
...
[4.3.1] Update WooCommerce Admin Package.
2020-07-21 12:08:10 +02:00
Timmy Crawford
000e695a34
[4.3.1] Update WooCommerce Admin Package.
2020-07-20 16:57:57 -07:00
Christopher Allford
840554d788
Merge pull request #27017 from woocommerce/fix/25480
...
Fixed the `shipping_zone_method` CLI command's instance_id parameter
2020-07-20 11:00:08 -07:00
Christopher Allford
636327c110
Merge pull request #27043 from woocommerce/fix/unit-test-suite
...
Test Suite & Namespace PHPCS Changes
2020-07-20 08:40:00 -07:00
Mahdi Yazdani
c3c15a4f2a
Removed dot "." from the generated password string
...
There is an extra dot "." right after the generated password string which is not part of the actual password and creates confusion for the users who want to login. It would be great if we can remove it.
2020-07-19 13:45:46 +03:00
Julia Amosova
10bfb679eb
Scroll home screen tasks list into view for the click to work
2020-07-17 12:44:46 -04:00
Claudio Sanches
86311a9903
Merge pull request #27046 from woocommerce/fix/26860
...
[Importer/Exporter] Fixed the value display of "Published" for children of draft variable products
2020-07-16 13:15:31 -03:00
Ron Rennick
dbf3e99292
Merge pull request #26964 from woocommerce/fix/24604
...
add rating count to order by rating clause
2020-07-16 10:51:20 -03:00
Néstor Soriano
24bd19c517
Merge pull request #27038 from woocommerce/add/26192
...
Add existing meta keys to woocommerce_duplicate_product_exclude_meta filter
2020-07-16 11:02:09 +02:00
Claudio Sanches
156b061602
Added unit tests for importer and exporter
2020-07-15 21:49:26 -03:00
Claudio Sanches
37777432d4
[Importer/Exporter] Fix "Published" column values
...
While variations only uses "published" and "private" statuses when
exporting we should display the variations as "draft" in case the parent
product it's also a draft.
2020-07-15 21:45:51 -03:00
Christopher Allford
b71ddd35f1
Added sniffs to enforce PSR-4 in the `src` and `tests/php/src` directories
2020-07-15 16:09:00 -07:00
Christopher Allford
f72b8db576
Added some exceptions to the PHPCS standards for unit tests
...
The file comments and @throws tags are unnecessary in unit tests.
2020-07-15 14:29:13 -07:00
Christopher Allford
55385f6cec
Moved the orphaned unit test into the correct directory
2020-07-15 14:21:34 -07:00
Christopher Allford
13536bef5b
Corrected the WCInstallTest filename
...
It is in the `includes` test section and should have the same filename as the corresponding class.
2020-07-15 14:20:26 -07:00
Vedanshu Jain
a34835e489
Merge pull request #26932 from woocommerce/fix/25442
...
Show community forum link if wccom is not connected
2020-07-16 00:14:52 +05:30
Christopher Allford
fdee8dceaf
Moved test to correct directory
2020-07-15 07:08:09 -07:00
vedanshujain
aabf4bfe37
Add unit tests.
2020-07-15 15:27:34 +05:30
vedanshujain
4500e86198
Shorten class and method names to reduce redundancy in naming.
2020-07-15 15:20:18 +05:30
Christopher Allford
c9f754f5a3
Added the existing meta keys to the `woocommerce_duplicate_product_exclude_meta` filter
2020-07-14 13:57:21 -07:00
vedanshujain
af401a7d80
Add unit test
2020-07-14 23:32:12 +05:30
vedanshujain
1e68ce5dc9
Move function to src for better code architecture
2020-07-14 23:31:56 +05:30
Claudio Sanches
e340a20312
Merge pull request #26880 from wpdesk/bugfix/settings-changes-warning
...
Changed settings warning when leaving page
2020-07-14 13:40:05 -03:00
Claudio Sanches
6291315429
Merge pull request #27028 from woocommerce/fix/master-branch-protection-update
...
Removed wildcards from branch name match.
2020-07-14 13:37:39 -03:00
Christopher Allford
9c492853b5
Merge pull request #26998 from woocommerce/fix/is-tax-displayed-private
...
Fixed the accessibility of WC_Cart::is_tax_displayed()
2020-07-14 09:05:19 -07:00
Peter Fabian
ac1d4c010a
Merge pull request #26914 from woocommerce/renovate/lerna-monorepo
...
Update dependency lerna to v3.22.1
2020-07-14 13:05:47 +02:00
Peter Fabian
d3ff32aac1
Merge pull request #26912 from woocommerce/renovate/deasync-0.x
...
Update dependency deasync to v0.1.20
2020-07-14 13:04:20 +02:00
Peter Fabian
84266d5f38
Merge pull request #26910 from woocommerce/renovate/babel-monorepo
...
Update babel monorepo to v7.10.4
2020-07-14 13:02:59 +02:00
Peter Fabian
74c320575d
Add message to GUI clients.
2020-07-14 12:53:22 +02:00
Peter Fabian
8c25557bf5
Fixed the test to actually catch master.
2020-07-14 12:51:50 +02:00
Christopher Allford
6cd4079c8a
Added a test to verify the rating ordering for products
2020-07-13 13:35:00 -07:00
Peter Fabian
22d3c91182
Merge pull request #26993 from woocommerce/dev/update-versions-after-4.3-release
...
Update versions and changelog from latest releases.
2020-07-13 21:05:37 +02:00
Christopher Allford
2ef15f02e3
Renamed `WC_Cart::is_tax_displayed()` to `WC_Cart::get_tax_price_display_mode()` to clarify intent
2020-07-13 07:21:19 -07:00
Peter Fabian
23028a90a1
Schema has not been updated, so revert.
2020-07-13 15:34:54 +02:00
Peter Fabian
e111b57a86
Removed wildcards from branch name match.
...
Otherwise branches like 'fix/update-master-branch' will be protected as well.
2020-07-13 15:04:45 +02:00
Christopher Allford
933cdd7a7b
Removed the default `id` field added to all CLI commands
...
Some of our endpoints don't have an "<id>" parameter but we're expecting one in the CLI. Since the `id` is already part of the supported IDs we don't actually need this since it will pull it from the route.
2020-07-10 14:16:30 -07:00
Christopher Allford
c3618cad47
Added the `instance_id` parameter to the CLI runner
...
This is used for shipping zone methods and so we need to be able to parse it too!
2020-07-10 07:21:05 -07:00
Christopher Allford
c2bf58a739
Fixed the accessibility of WC_Cart::is_tax_displayed()
...
Since we're calling the function from the base class we need it to be protected or this throws a fatal exception.
2020-07-09 13:39:16 -07:00
Peter Fabian
6bc0ca724f
Update versions and changelog from latest releases.
2020-07-09 13:18:51 +02:00
Peter Fabian
730df27bc6
Merge pull request #26980 from woocommerce/update/woocommerce-admin-1.3.0
...
Update WooCommerce Admin to 1.3.0
2020-07-08 18:58:00 +02:00
Timmy Crawford
1fb700486b
Update WooCommerce Admin to 1.3.0
2020-07-08 09:51:54 -07:00
Claudio Sanches
864f451775
Merge pull request #26338 from woocommerce/fix/25561
...
Fixed user cap required to view the order count indicator
2020-07-08 12:09:28 -03:00
Claudio Sanches
eeb08467af
Merge pull request #26877 from woocommerce/fix/26547
...
Fixed WooCommerce menu for users that can only manage orders on WooCommerce
2020-07-08 12:08:29 -03:00
Peter Fabian
7830e90550
Merge pull request #26966 from woocommerce/update/woocommerce-admin/1.3.0-rc.3
...
Update woocommerce-admin to 1.3.0-rc.3
2020-07-07 11:39:32 +02:00
Timmy Crawford
bb32e4a557
Update woocommerce-admin to 1.3.0-rc.3
2020-07-06 15:15:15 -07:00
Peter Fabian
db7ca984a5
Merge pull request #26955 from woocommerce/fix/bump-template-versions-4.3
...
Update template versions for 4.3.
2020-07-06 22:10:19 +02:00