Commit Graph

24307 Commits

Author SHA1 Message Date
Claudio Sanches 82e803ba76
Merge pull request #17893 from woocommerce/update/phpcs-disable-more-vip-rules
Exclude two more PHPCS VIP rules
2017-11-23 12:08:29 -02:00
Rodrigo Primo 322619cdc5 Exclude two more PHPCS VIP rules 2017-11-23 12:06:00 -02:00
Claudio Sanches bdcc8a28f9
Merge pull request #17892 from woocommerce/update/phpcs-remove-some-vip-rules
Remove three PHPCS VIP rules that don't apply to WooCommerce
2017-11-23 11:45:21 -02:00
Rodrigo Primo f5d2a1d98b Remove three PHPCS VIP rules that don't apply to WooCommerce
This commit removes the following PHPCS VIP rules:

- WordPress.VIP.DirectDatabaseQuery.NoCaching
- WordPress.VIP.DirectDatabaseQuery.SchemaChange
- WordPress.VIP.FileSystemWritesDisallow.file_ops_fwrite
2017-11-23 11:41:31 -02:00
Mike Jolley ee08983e5e
Merge pull request #17890 from rodrigoprimo/update/remove-xdebug-from-php-5-3-build
Further improve the speed of the Travis build
2017-11-23 13:24:51 +00:00
Mike Jolley 85cd9647df
Merge pull request #17871 from ragulka/delete-refund-on-exception
Ensure refund is deleted when exception is thrown during wc_create_refund()
2017-11-23 13:06:40 +00:00
Mike Jolley b7d8d63c3d
Merge pull request #17870 from woocommerce/update/bump-wp-version
Bump "Requires at least" version
2017-11-23 11:52:48 +00:00
The Dramatist 8ac49d448b Unused parameter removed form get_filters method of WC_Helper class. (#17888) 2017-11-23 11:49:12 +00:00
Rodrigo Primo 4fea2eb211 Disable Xdebug before calling composer 2017-11-23 09:13:09 -02:00
Rodrigo Primo 51867ac7c3 Remove Xdebug from PHP 5.3 Travis build job as well 2017-11-23 09:06:08 -02:00
urosmil 18e7b25eab Filter for line items in abstract-wc-order.php (#17759)
* Filter for line items in abstract-wc-order.php

When creating custom product class there are places where line items is only value that can be handled. This is one of that places causing subtotal values after checkout not to be calculated and displayed.

* Extension to woocommerce_order_get_items filter

This is extension to filter as get_items() is used for different classes and types. This way it would be possible to distinct which type is called for items.

* Removed filtering inside subtotal function

$types parameter is added as parameter for filter inside get_items() function so previous commit is reverted as there is no need for it.
2017-11-23 10:00:03 +00:00
Claudiu Lodromanean 9a95441c61
Merge pull request #17872 from woocommerce/fix/17508
Properly handle deprecated hooks
2017-11-22 14:34:15 -08:00
Claudio Sanches bf42bfeb93 Fixed unit tests 2017-11-22 17:00:02 -02:00
Claudio Sanches e7fdae243a
Merge pull request #17874 from woocommerce/fix/17873
Fix legacy API include paths
2017-11-22 16:32:48 -02:00
claudiulodro 32347c5470 Fix legacy API include paths 2017-11-22 10:28:02 -08:00
Claudio Sanches 1034a4bd38
Merge pull request #17867 from woocommerce/update/17851
Use an action/option rather than cron to queue rule flushing
2017-11-22 16:11:47 -02:00
Claudio Sanches 1f156620e3
Merge pull request #17866 from woocommerce/fix/17850
Confirm navigation if nonce has expired in reports.
2017-11-22 16:09:38 -02:00
Claudio Sanches 4b5f0c98d7 Fixed coding standards 2017-11-22 15:25:27 -02:00
Claudio Sanches 69c8a87f41 Display correct deprecated version for hooks 2017-11-22 15:21:32 -02:00
Claudio Sanches 11772ca015 Fixed coding standards 2017-11-22 14:55:12 -02:00
Claudio Sanches d27410eacc Introduced new wc_deprecated_hook function as alias to _deprecated_hook 2017-11-22 14:47:22 -02:00
Claudio Sanches 4fb3624604 Fixed coding standards 2017-11-22 14:13:59 -02:00
ragulka 4f2e1ee8d4 Ensure refund is deleted when exception is thrown during wc_create_refund 2017-11-22 17:03:58 +01:00
Claudio Sanches 21833d797b Updated "Tested up to" and "Requires at least" 2017-11-22 13:58:26 -02:00
Claudio Sanches d39a034f14 Drop support for legacy WP versions 2017-11-22 13:55:48 -02:00
Claudio Sanches 39e27196c4
Merge pull request #17853 from rodrigoprimo/fix/run-phpcs-only-once
Don't run PHPCS on the code coverage Travis job
2017-11-22 12:16:34 -02:00
Mike Jolley 2795a3399b
Merge pull request #17868 from ahmedofali/master
fixing typo replace add to cart to be remove from cart
2017-11-22 12:51:17 +00:00
Ahmed Ali d8050f99b1 fixing typo replace add to cart to be remove from cart 2017-11-22 14:33:21 +02:00
Claudio Sanches 37af420cfe
Merge pull request #17864 from woocommerce/update/17860
Add precision after multiplying quantity
2017-11-22 10:31:17 -02:00
Mike Jolley 39e86db7a7 Use an action/option rather than cron to queue rule flushing
Closes #17851
2017-11-22 11:39:57 +00:00
Mike Jolley 2b1243ea04 Confirm navigation if nonce has expired in reports.
Closes #17850
2017-11-22 11:30:22 +00:00
Mike Jolley 15230e295c Add precision after multiplying quantity
Closes #17860

Has no effect on core it seems because we only store prices to the DP
setting. This would be to correct precision added by plugins.
2017-11-22 10:49:28 +00:00
Mike Jolley 970e98db09
Merge pull request #17857 from shivapoudel/fix/default-shipping-class
Fix - Default shipping class not loading from localize script
2017-11-22 10:22:58 +00:00
Shiva Poudel cea8982ac3 Fix - Default shipping class not loading from localize script 2017-11-22 11:34:03 +05:45
Mike Jolley 16152bfcf0
Merge pull request #17849 from woocommerce/fix/17818-1
Update REST API schema for backwards compatibility with WP 4.9
2017-11-21 21:53:18 +00:00
Mike Jolley 4172efea3f
Merge pull request #17848 from woocommerce/fix/rest-api-orders-delete-meta-data
Fixed how to delete meta data on REST API v2
2017-11-21 21:53:05 +00:00
Rodrigo Primo 47154cf29a Don't run PHPCS on the code coverage Travis job
PR #17680 added a new PHP 7.1 Travis build job to generate code coverage report. PHPCS was configured to run on all PHP 7.1 build jobs. So this means that after #17680 was merged, Travis started running PHPCS twice.

This commit fixes this issue by setting a new environment variable called `$RUN_PHPCS` and using this variable, instead of the PHP version, to decide when to run PHPCS.
2017-11-21 18:17:55 -02:00
Claudio Sanches b74fc8963d Update REST API schema for backwards compatibility with WP 4.9
Closes #17818
2017-11-21 16:15:51 -02:00
Claudio Sanches f0b6e3fc33 Test removing fee_lines from order in REST API 2017-11-21 16:07:03 -02:00
Claudio Sanches f289d0e05c Fixed how to delete meta data on REST API v2 2017-11-21 16:05:39 -02:00
The Dramatist 1783953f15 Admin metaboxes views translation escaping fix (#17776)
* Data escaped and validated. Plus translator comment documentation added.

* If it should be int then we should change the empty string default parameter to 0 as in 'if' condition checking 0 and empty string are same.

* Extra bracket removed.

* Indentation is fixed now.

* The taxonomy object should not be assigned to a variable before checking if this is a taxonomy or not.

* echo esc_attr__ replaced by esc_attr_e and visually tested.

* As I use WordPress VIP Coding Standard, they were marking them as warnings. But now it's fixed again.

* Escaping fix

* Extra Bracket Fix Again
2017-11-21 17:50:30 +00:00
Claudiu Lodromanean 5af225a2c8
Merge pull request #17846 from woocommerce/fix/17845
Slugs are encoded, so decode before outputting to the form
2017-11-21 09:27:03 -08:00
Claudiu Lodromanean 887003cc02
Merge pull request #17812 from woocommerce/update/wc-e2e-page-objects
Update wc-e2e-page-objects package to version 0.5.0
2017-11-21 09:22:08 -08:00
Mike Jolley 208b2d1b81 Slugs are encoded, so decode before outputting to the form
Fixes #17845
2017-11-21 16:50:33 +00:00
Mike Jolley e91ed3f0b0
Merge pull request #17842 from JeroenSormani/add-filter-arg
Add quantity arg to woocommerce_add_cart_item_data filter
2017-11-21 16:25:13 +00:00
JeroenSormani b96fea3e47 Add quantity arg to woocommerce_add_cart_item_data filter 2017-11-21 16:01:23 +01:00
Mike Jolley 78ddd97472
Merge pull request #17822 from woocommerce/fix/17733
Use WC_Query->get_query_vars() instead of WC_Query->query_vars
2017-11-21 14:00:53 +00:00
Claudio Sanches 9bef98b7f6
Merge pull request #17840 from woocommerce/update/travis-ci-builds
Prevent Travis builds duplication
2017-11-21 11:50:06 -02:00
Rodrigo Primo 742cd367b0 Prevent Travis builds duplication
This commit changes Travis configuration file to specify a list of branches that it should build. This way Travis will only create a new build when a commit is pushed to the master branch and release branches and when tags are created. The behavior for PRs is not modified and PR creation and updates will still trigger builds.

Doing this to speed up Travis build by preventing it from running two builds for PR that are created from a branch of the same repository. Before this change, Travis would create a build when the branch is pushed to GitHub (continuous-integration/travis-ci/push) and another one when the PR is created (continuous-integration/travis-ci/pr). For an example, see https://github.com/woocommerce/woocommerce/pull/17680.
2017-11-21 11:28:12 -02:00
Mike Jolley 8b02185596
Merge pull request #17817 from JeroenSormani/exclude-virtual-from-shipping-tax
Exclude virtual tax classes from calcluation for shipping taxes
2017-11-21 13:21:13 +00:00