Commit Graph

36770 Commits

Author SHA1 Message Date
Rodrigo Primo 1c419ce1f7 Add 'Ladakh' to the list of Indian states
'Ladakh' is a new Indian state that is listed in CLDR (https://github.com/unicode-org/cldr/blob/release-37/common/subdivisions/en.xml#L2257), but it was missing in WooCommerce. This commit simply adds it to `i18n/states.php`.
2020-12-01 15:33:41 -03:00
Rodrigo Primo a88b370c0f
Merge pull request #28287 from woocommerce/remove-broken-js-code
Remove jQuery code that does nothing
2020-11-18 15:44:38 -03:00
Peter Fabian 3c9d92be8c
Merge pull request #28270 from woocommerce/remove-dockerfile
Remove Dockerfile as it is not used anymore
2020-11-18 13:38:25 +01:00
Rodrigo Primo 5c8491c862 Remove jQuery code that does nothing
This commit replaces a block of jQuery code that I believe does nothing. I found it while starting the work to make our JS code compatible with jQuery 3 as it uses jQuery.fn.keyup() which has been deprecated.

As far as I can understand, this block of code is supposed to change the focus to the coupon description when the user hits the tab key while the focus is on the title field. It doesn't work because the keyup event is not fired for the tab key. The current behavior is that when the user hits the tab key, the focus changes to the "Generate coupon code" button, and if the tab key is pressed another time, the focus changes to the description text field. Which seems fine to me and that is why I'm suggesting we remove this code instead of fixing it.

I believe it was added in this c15b8e817c commit six years ago and unfortunatelly the commit doesn't provide much information on why it was added.
2020-11-17 14:39:55 -03:00
Rodrigo Primo 581f57b8f4
Merge pull request #28148 from rodrigoprimo/update/travis-git-depth
Change git cloning depth to 1 to make the Travis builds slightly faster
2020-11-17 14:36:29 -03:00
Rodrigo Primo 0e319f3293
Merge pull request #28151 from woocommerce/add/requires-php-support
Add requires_php support
2020-11-17 10:39:12 -03:00
Rodrigo Primo e1856b961d Merge branch 'master' into update/travis-git-depth 2020-11-17 10:27:26 -03:00
Christopher Allford ac9f83d772
Merge pull request #28295 from woocommerce/revert-25988-patch-1
Revert "Added support for file in checkout ajax."
2020-11-16 09:44:40 -08:00
Christopher Allford ea888a4a21
Revert "Added support for file in checkout ajax." 2020-11-16 09:04:15 -08:00
Christopher Allford 52354c95cd
Merge pull request #28277 from woocommerce/add/prepare-4.9
Prepared branch for 4.9
2020-11-16 08:42:29 -08:00
Vedanshu Jain ae163eb28b
Merge pull request #27734 from woocommerce/enhancement/optimize-wc-order
Optimize function `wc_get_orders` by priming caches beforehand
2020-11-14 12:37:44 +05:30
Christopher Allford c2eb62fd3b Locked Composer at 2.0.6 2020-11-13 12:05:28 -08:00
Renatho De Carli Rosa c2b066edcb Fix requires_php check 2020-11-13 16:47:26 -03:00
Renatho De Carli Rosa 5cbcdcd92c Add requires_php support
With this check, we're able to avoid updates when the PHP version
is not supported
2020-11-13 16:47:26 -03:00
Rodrigo Primo 4240f9924a
Merge pull request #28048 from woocommerce/fix/27807
Remove dynamic build dependencies
2020-11-13 15:34:35 -03:00
Rodrigo Primo a637a42574
Merge pull request #28115 from woocommerce/update/node-12
bump node to version 12
2020-11-13 15:32:05 -03:00
Claudio Sanches 02860e4336
Merge pull request #28271 from woocommerce/remove-unused-config-files
Removes Code Climate and Scrutinizer config files
2020-11-13 14:45:55 -03:00
Christopher Allford c491bd45aa Updated lock file 2020-11-13 09:43:01 -08:00
Christopher Allford bb38673dad Prepared branch for 4.9 2020-11-13 09:38:22 -08:00
Rodrigo Primo d9448435a0 Remove Scrutinizer badge from README.md
We are not using Scrutinizer anymore
2020-11-13 12:18:40 -03:00
Rodrigo Primo c08f461513 Removes Code Climate and Scrutinizer config files
We are not using these services anymore, so this commit removes the configuration files for both Code Climate and Scrutinizer.
2020-11-13 11:47:12 -03:00
Rodrigo Primo 838194e3d7 Remove Dockerfile as it is not used anymore
This file was added in the past to help set up the old E2E testing infrastructure (see #25105), but the new E2E setup doesn't use it (see https://github.com/woocommerce/woocommerce/pull/28173#issuecomment-725617312).
2020-11-13 10:19:22 -03:00
Claudio Sanches 744053ac66
Merge pull request #28199 from woocommerce/renovate/richardsimko-github-tag-action-1.x
Update richardsimko/github-tag-action action to v1.0.5
2020-11-13 10:16:41 -03:00
Vedanshu Jain 13f429e80d
Merge pull request #28102 from woocommerce/fix/28100
Exclude user table columns as well while setting metadata props
2020-11-13 13:50:02 +05:30
Christopher Allford 03f65478f2
Merge pull request #28249 from woocommerce/add/composer-2
Update Composer to v2 (includes woocommerce-blocks 3.8.0 and woocommerce-admin 1.7.0)
2020-11-12 21:16:51 -08:00
Christopher Allford 3275c5abd1 Fixed broken code coverage 2020-11-12 14:46:39 -08:00
Christopher Allford a95b384f08 Corrected code coverage path 2020-11-12 14:30:55 -08:00
Christopher Allford 2516414eb6
Merge pull request #28229 from woocommerce/add/wc-pay-extensions-screen
Add WooCommerce Payments banner to extensions screen
2020-11-12 14:21:01 -08:00
Christopher Allford 30d2e278b9 Replaced the deprecated `WC_Admin_Note` class 2020-11-12 13:26:30 -08:00
Christopher Allford 7a26fc30dd Fixed failing E2E test 2020-11-12 12:52:53 -08:00
Christopher Allford 84c8bc4afa Corrected `composer.json` PHP minimums to 7.0 to ensure compatibility in Travis 2020-11-12 12:25:52 -08:00
vedanshujain 13f2dd6be9 Add unit tests towards issue #28100 2020-11-13 01:02:16 +05:30
vedanshujain f1742e2298 Exclude user table columns as well
This is to prevent overwriting of original column data by a meta data if meta_key name is same as a column.
2020-11-13 01:02:15 +05:30
Christopher Allford 1041c8d238 Updated WooCommerce Admin 2020-11-12 11:22:39 -08: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
vedanshujain 04fe12b5fb Add proper params because otherwise this query will not set caches. 2020-11-12 15:10:16 +05:30
Christopher Allford 05ebdf9677 Adjusted Travis' PHPUnit to use the vendor binary instead of a global install 2020-11-11 23:42:14 -08:00
vedanshujain fdceac9866 Delete refund cache for parent order when its deleted. 2020-11-12 10:01:15 +05:30
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
Christopher Allford 84968cd1ff Removed Travis Composer downgrade 2020-11-11 13:53:53 -08:00
Christopher Allford b22268c754 Updated to Composer v2
This also updates the woocommerce/woocommerce-admin and woocommerce/woocommerce-blocks packages as their dependence on `composer/installers` precludes update otherwise
2020-11-11 13:45:51 -08:00