Commit Graph

35672 Commits

Author SHA1 Message Date
Vedanshu Jain 6ba8af16a6
Merge pull request #27100 from vedanshujain/merge/src
Merge REST API into core.
2020-08-06 17:44:12 +05:30
vedanshujain cc96f6bbd1 Fix compatibility for WP 5.5 2020-08-06 14:34:03 +05:30
vedanshujain 2f76e52fa7 Skip test for < 5.3 as feature is not supported. 2020-08-06 14:34:02 +05:30
vedanshujain 1526771eaa Load from Server class if available 2020-08-06 14:34:02 +05:30
vedanshujain 55a9687e6d Make api included structure more linear. 2020-08-06 14:34:02 +05:30
vedanshujain 1d782f025e Deprecate API Package class because its not a package anymore. 2020-08-06 14:34:02 +05:30
vedanshujain cfe357cfb2 Fix UT to add predefined values to run tests in isolation. 2020-08-06 14:34:02 +05:30
vedanshujain d5bf302994 Add API UT helpers to autoload so that individual tests can run in isolation. 2020-08-06 14:34:02 +05:30
vedanshujain 16473d54e9 Fixes for correct time of loading API 2020-08-06 14:34:02 +05:30
vedanshujain 4a4767ae93 Load API files. 2020-08-06 14:34:02 +05:30
vedanshujain 1c162956ad Remove REST API package check as files are directly added. 2020-08-06 14:34:02 +05:30
vedanshujain 5b32ec3755 Remove REST API package because its added directly. 2020-08-06 14:34:02 +05:30
vedanshujain 222852dea6 Merge branch 'master' of https://github.com/woocommerce/woocommerce 2020-08-06 14:06:29 +05:30
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 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
Claudio Sanches 7f233951a5 Fixed class package tag 2020-08-04 22:30:11 -03: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
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
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 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
Néstor Soriano add9fd791b
Merge pull request #27166 from xristos3490/fix/27163
[4.4] Pagination of custom product queries broken
2020-07-31 08:29:24 +02:00