Commit Graph

36692 Commits

Author SHA1 Message Date
Rodrigo Primo 1fca8bb1b1 Replaces a few more instances of jQuery.fn.click() event shorthand
This commit replaces a few more instances of jQuery.fn.click() event shorthand that were missed in the previous commit. For more information see the commit message for 8ebead165e.
2020-11-18 16:31:17 -03:00
Rodrigo Primo ee31c791af Fix PHPCS violations 2020-11-18 15:33:36 -03:00
Rodrigo Primo 8ebead165e Replace usages of depracted jQuery.fn.click() event shorthand
This commit replaces all instances in WooCommerce codebase (except included third-party libraries) where jQuery.fn.click( handler ) event shorthand was used. This shorthand was deprecated in jQuery 3.3 (see https://github.com/jquery/jquery/issues/3214). The jQuery documentation was not updated yet (see https://github.com/jquery/jquery-migrate/issues/288 and https://github.com/jquery/api.jquery.com/issues/972).

jQuery.click() was not deprecated and so it was not replaced.
2020-11-18 15:27:46 -03:00
Rodrigo Primo 7659b984dc
Merge pull request #28058 from woocommerce/fix/27937
Replaces some jQuery deprecated code
2020-11-12 14:00:39 -03:00
Roy Ho decf1805de
Merge pull request #28114 from woocommerce/fix/issue-27972
Update SSR version to check against major versions only closes #27972
2020-11-12 06:34:58 -08:00
roykho 5597f74e81
Merge branch 'master' into fix/issue-27972 2020-11-12 06:21:52 -08:00
Roy Ho 8331759fa1
Merge pull request #28169 from woocommerce/fix/issue-27710
Hide add to cart button if all products in group are out of stock clo…
2020-11-12 05:59:14 -08:00
Rodrigo Primo a33c6ea746
Merge pull request #28162 from woocommerce/renovate/wordpress-monorepo
Update dependency @wordpress/eslint-plugin to v7.3.0
2020-11-12 09:14:45 -03:00
Claudio Sanches e445e3c3cf
Merge pull request #28250 from woocommerce/fix/28103
Fixed placeholders and translators style WC_Form_Handler::add_to_cart_handler_variable
2020-11-11 20:25:01 -03:00
Claudio Sanches 6e2086e3eb Check if $product exists before using
And removed some PHP variables.
2020-11-11 19:55:59 -03:00
Claudio Sanches cb727736c0 Fixed placeholders and translators style 2020-11-11 19:47:03 -03:00
Claudio Sanches d77fc005d2
Merge pull request #28233 from woocommerce/fix/template-names
Load product category content with content-product-cat.php
2020-11-11 19:31:08 -03:00
Claudio Sanches 404bdbff48
Merge pull request #28242 from woocommerce/update/replace-usage-of-depracted-function
Replace call to deprecated woocommerce_reset_loop()
2020-11-11 19:30:02 -03:00
Roy Ho 5dd19658f5
Merge pull request #28069 from woocommerce/fix/issue-27504
Fix stock reducing incorrect amount when order item is deleted after …
2020-11-11 14:05:37 -08:00
roykho 4ec270b93d Add unit tests for the fix 2020-11-11 15:28:06 -06:00
roykho 134786ada8 Fix stock reducing incorrect amount when order item is deleted after a refund closes #27504 2020-11-11 15:28:06 -06:00
Roy Ho edb06be34e
Merge pull request #27997 from woocommerce/fix/issue-27656
Fix checkout page not displaying visual blocking when place order is …
2020-11-11 12:53:17 -08:00
roykho 18bc862773
Remove fix from TwentyNineteen as the issue can't be reproduce anymore 2020-11-11 12:52:05 -08:00
Rodrigo Primo d8fdfabebf
Merge pull request #28161 from woocommerce/renovate/webpack-4.x
Update dependency webpack to v4.44.2
2020-11-11 16:24:34 -03:00
Rodrigo Primo 8c0d8115b1
Merge pull request #28160 from woocommerce/renovate/node-sass-4.x
Update dependency node-sass to v4.14.1
2020-11-11 16:24:11 -03:00
Rodrigo Primo 9f1567009f
Merge pull request #28156 from woocommerce/renovate/babel-monorepo
Update babel monorepo
2020-11-11 16:23:43 -03:00
Rodrigo Primo 2399668a05 Simplify code per reviewer suggestion
See https://github.com/woocommerce/woocommerce/pull/28058#pullrequestreview-519096925
2020-11-11 16:09:33 -03:00
Roy Ho e0204e04e4
Merge pull request #28241 from woocommerce/fix/27566
Add shipping, tax and fee lines to refund response for better information in refund REST API.
2020-11-11 08:11:56 -08:00
Tam Mullen 04c9e2f12f
Merge pull request #28191 from woocommerce/packages/core-tests/functional-permlainks-test
add permalinks working test
2020-11-11 14:58:01 +00:00
Tam Mullen 8f46eec95a
Merge pull request #28198 from woocommerce/add/package-changelogs
add/update e2e package change logs
2020-11-11 14:12:52 +00:00
Rodrigo Primo 5d1435836d Replace call to deprecated woocommerce_reset_loop()
This commit simply replaces the single call in WooCommerce core codebase to the deprecated woocommerce_reset_loop() function with its replacement wc_reset_loop().
2020-11-11 10:26:56 -03:00
vedanshujain 62ae94d93e Add shipping, tax and fee lines to refund response for better information. 2020-11-11 18:47:48 +05:30
Renovate Bot 311ccb9944
Update dependency @wordpress/eslint-plugin to v7.3.0 2020-11-11 02:29:27 +00:00
Christopher Allford 72e93f11b2
Update CHANGELOG.md
Updated the `@woocommerce/api` changelog
2020-11-10 16:32:11 -08:00
Christopher Allford 93d6b261c6
Merge pull request #28129 from woocommerce/add/lerna-hoist
add lerna hoist, use consistent package versions
2020-11-10 16:13:58 -08:00
Claudio Sanches f1f2c3cfff Load product category content with content-product-cat.php 2020-11-10 20:54:59 -03:00
Claudio Sanches 54847356d0
Merge pull request #28226 from CHEWX/patch-2
[typo] - fix
2020-11-10 20:50:07 -03:00
Christopher Allford 28f5704ff3
Merge pull request #28206 from woocommerce/packages/api/add/simple-product
@woocommerce/api: Complete SimpleProduct implementation
2020-11-10 15:11:52 -08:00
Ron Rennick ac89e09c9e remove duplicate package dependency entries 2020-11-10 16:29:22 -04:00
Tom Hopcraft 296d912151
[typo] - fix 2020-11-10 15:46:20 +00:00
Roy Ho 4954c17e89
Merge pull request #28177 from davefx/patch-11
Optimizing memory usage
2020-11-10 06:13:03 -08:00
Christopher Allford 11c7e3bff6 Fixed issues that caused the factory creation to fail for SimpleProduct types 2020-11-09 12:02:01 -08:00
Ron Rennick 7282e0bca6 merge master 2020-11-09 14:30:01 -04:00
Claudio Sanches 8db66f705f
Merge pull request #28216 from woocommerce/update/changelog-2
4.7 changelog
2020-11-09 12:13:55 -03:00
Claudio Sanches 229346e408 4.7 changelog 2020-11-09 12:12:01 -03:00
Christopher Allford d205d6551e Added all of the update parameters for simple products 2020-11-06 14:01:03 -08:00
Christopher Allford a646c712d8 Generalized the various restXXX functions
Since it looks like almost all of these are going to be virtually identical, it makes sense to have common functions that we can use instead of having to write all of the boilerplate unnecessarily.
2020-11-06 13:24:02 -08:00
Christopher Allford 29c9976354 Added "list", "read", "update", and "delete" actions for simple products 2020-11-06 11:11:58 -08:00
Christopher Allford 45b57d46b9 Added transformers for all of the product sub-data 2020-11-06 10:44:57 -08:00
Christopher Allford b4a2316386 Added array support to property type and model transformer transformations 2020-11-06 10:01:12 -08:00
Christopher Allford 5e35d68789 Added a new transformation for nesting transformers 2020-11-05 22:49:37 -08:00
Christopher Allford fb5f393acb Made abstract product sale dates easier to work with 2020-11-05 22:20:42 -08:00
Christopher Allford 681e568fbe Expanded on a shared transformer to encapsulate abstract product transformations 2020-11-05 21:43:45 -08:00
Christopher Allford 7fcbc69235 Added a transformer to convert between data types 2020-11-05 19:25:45 -08:00
Christopher Allford 7287eb024c Reversed the execution of transformers for "toModel" so that things like key changes will happen first 2020-11-05 16:29:04 -08:00