Commit Graph

35869 Commits

Author SHA1 Message Date
Christopher Allford 43aef47682
Merge pull request #26948 from woocommerce/package/e2e-factories/product
Add Model Factories package
2020-08-05 16:03:35 -07:00
Christopher Allford 8e8698a3f6 Fixed test that used PHPUnit function from newer version 2020-08-05 15:43:08 -07:00
Christopher Allford dda2f3b405 Pinned the dependencies that were not already pinned 2020-08-05 14:19:43 -07:00
Christopher Allford 678705cdd4 Merge branch 'master' into package/e2e-factories/product 2020-08-05 14:00:05 -07:00
Claudio Sanches 525db3aa21 Fixed incorrect package tags 2020-08-05 17:49:10 -03:00
Claudio Sanches a54f0aae19 Ignore file comment and package tag in src 2020-08-05 14:39:28 -03:00
Claudio Sanches 3632714885 Removed package tag from src 2020-08-05 14:23:50 -03:00
Claudio Sanches a50552af75 Use only WooCommerce as package name 2020-08-05 14:11:20 -03:00
Claudio Sanches f4b336a0f3 Fixed incorrect package 2020-08-05 13:51:37 -03:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Claudio Sanches 2853c36026
Merge pull request #27227 from woocommerce/fix/class-package
Fixed class package tag
2020-08-05 12:43:37 -03:00
Tam Mullen b7b1d68500
Merge pull request #27232 from woocommerce/fix/e2e-obw-product-types
Fix e2e OBW test to not untick physical products in product type list
2020-08-05 15:46:10 +01:00
Tam Mullen 5a410c02a6 Fix e2e OBW test to not untick physical products in product type list 2020-08-05 12:49:42 +01:00
Yuliyan Slavchev 8ac3fa0bda i18n: Decode HTML entities within countries and states names 2020-08-05 11:45:00 +03:00
Christopher Allford d178c7ff01 Replaced constructor injection with method injection
Since we need to maintain backwards compatibility for class constructors we should settle on using method injection instead of constructor injection. I've replaced the `Definition` class we're using with one that doesn't support constructor arguments and added a check for auto_arg addition. Note that we don't check for method existence in the extended container. This is because reflection is unnecessarily expensive and we should avoid it if at all possible.
2020-08-04 20:37:28 -07:00
Claudio Sanches 7f233951a5 Fixed class package tag 2020-08-04 22:30:11 -03:00
Andy Skelton b554eea43c
Whitespace 2020-08-04 10:47:59 -05:00
Claudio Sanches a8ac58add0
Merge pull request #27193 from masteradhoc/masteradhoc-i18n-locale-for-li-ch
Add i18n locale information for Liechtenstein, Switzerland & Austria
2020-08-04 11:00:47 -03:00
Claudio Sanches f5925d4465
Merge pull request #27196 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.8.6
2020-08-04 10:59:24 -03:00
Claudio Sanches d5943d6c6f
Merge pull request #27198 from woocommerce/renovate/grunt-1.x
Update dependency grunt to v1.2.1
2020-08-04 10:58:56 -03:00
vedanshujain 1ada7d8b26 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2020-08-04 18:22:41 +05:30
Néstor Soriano 259a17ea5f
Merge pull request #27207 from woocommerce/preparation/4.4-RC.1
Preparation for 4.4 RC.1 release
2020-08-04 11:57:52 +02:00
Nestor Soriano 7d9f86c8cd Add changelog for Admin 1.4.0-beta.3 2020-08-04 11:33:15 +02:00
Nestor Soriano 1279b2cc57 Bump version name in woocommerce.php to 4.5.0-dev 2020-08-04 11:33:02 +02:00
Nestor Soriano 56f8cda645 Add extra changelog entries for 4.4 RC 1 2020-08-04 11:02:30 +02:00
Nestor Soriano 213137bc8c Add one more changelog entry for Admin 2020-08-04 10:59:58 +02:00
Nestor Soriano df527a19dd Add the changelog for v4.4 to readme.txt 2020-08-04 10:59:58 +02:00
Nestor Soriano 4d67ac9201 Update version in woocommerce.php to 4.4.0-beta.1 2020-08-04 10:59:58 +02:00
Nestor Soriano a3a2099315 Add changelog for v4.4 2020-08-04 10:59:55 +02:00
Néstor Soriano a8979fedd9
Merge pull request #27214 from woocommerce/update/woocommerce-admin/1.4.0-beta.3
Update woocommerce-admin to 1.4.0-beta.3
2020-08-04 10:43:26 +02:00
Néstor Soriano ee19f36498
Merge pull request #27216 from woocommerce/update/changelog-4.3.1
Added missing changelog for 4.3.1 to default branch
2020-08-04 10:29:18 +02:00
Peter Fabian 9e37acff39 Added missing changelog for 4.3.1 2020-08-04 10:28:06 +02:00
Timmy Crawford d55fa5ea0a Update woocommerce-admin to 1.4.0-rc.3 2020-08-03 23:35:10 -07:00
Néstor Soriano 54390bb094
Merge pull request #27185 from woocommerce/fix/jetpack-autoloader-constant
Removed the define for the `JETPACK_AUTOLOAD_DEV` constant
2020-08-04 08:25:15 +02:00
Christopher Allford 767fb048fc Fixed comments with incorrect namespaces 2020-08-03 14:00:14 -07:00
Néstor Soriano 1f59f7f798
Merge pull request #27205 from woocommerce/tweak_get_available_variations
Remove duplicate `get_available_variations()` function argument
2020-08-03 16:52:43 +02:00
Nestor Soriano 200599f8e0 Add unit tests for the type of the value returned by 'get_available_variations' 2020-08-03 16:30:54 +02:00
Claudio Sanches f5e1b4fa54 Update only if the code got changed 2020-08-03 11:28:27 -03:00
Claudio Sanches 93febdca19 Fixed option name 2020-08-03 11:27:38 -03:00
James Allan d1c0f7774b Remove duplicate function argument 2020-08-03 14:45:03 +10:00
Renovate Bot 486b9f3a4d
Update dependency grunt to v1.2.1 2020-08-01 02:57:34 +00:00
Renovate Bot 4a4e5c3250
Update dependency autoprefixer to v9.8.6 2020-08-01 01:39:02 +00:00
Brian 8ab4596861
Update locale-info.php 2020-08-01 00:38:19 +02:00
Brian 78e099bd6d
Update locale-info.php 2020-08-01 00:37:55 +02:00
Brian 98964ff0b1
Update locale-info.php 2020-08-01 00:37:33 +02:00
Brian 2dcfc4248c
Update class-wc-countries.php 2020-08-01 00:28:08 +02:00
Brian 1d408a1a17
Update states.php 2020-08-01 00:26:53 +02:00
Brian f363604f4e
add locale info
for switzerland and liechtenstein
2020-08-01 00:23:49 +02:00
Néstor Soriano b02a14c5bc
Merge pull request #27190 from woocommerce/fix/no-pagination-controls
Fix: pagination controls not displaying in products list
2020-07-31 17:15:38 +02:00
Nestor Soriano 71fccd6a07 Fix: pagination controls not displaying in products list.
This bug was introduced in #26260. The sequence is:

1. WC_Query::adjust_posts_count runs, to handle found_posts filter,
   this indirectly executes wc_setup_loop.
2. At this point $GLOBALS['wp_query']->max_num_pages hasn't been set
   yet, and has a value of 0. Thus the loop variable total_pages
   is set to 0.
3. Later wc_setup_loop runs again and this time
   $GLOBALS['wp_query']->max_num_pages is already set, but since
   the loop variable total_pages already exists, it keeps its
   value of 0.
4. The pagination controls never show if total_pages is less than 2.

The fix consists of hooking into the_posts to set the value of
total_pages again, at that point $GLOBALS['wp_query']->max_num_pages
is already set.
2020-07-31 16:40:25 +02:00