Commit Graph

25045 Commits

Author SHA1 Message Date
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
David Marín 7d843b1802
Add filters to mark terms in product list
In order to add marks to some terms (category and tags) in the product list, I've added two new filters.
2017-11-22 10:47:51 +01:00
Shiva Poudel cea8982ac3 Fix - Default shipping class not loading from localize script 2017-11-22 11:34:03 +05:45
claudiulodro 9ec24731bb Generalize child_is_in_stock 2017-11-21 15:06:35 -08:00
claudiulodro 99aefc91f3 Changes from feedback 2017-11-21 14:08:17 -08:00
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
Mike Jolley 98bebd14f2 Hooks for columns and preview list tables 2017-11-21 16:22:43 +00:00
Mike Jolley 2aeaf59f5c Update image loading path 2017-11-21 15:05:08 +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
Mike Jolley dd3ffe84fd
Merge pull request #17838 from woocommerce/feature/improved-phpcs-args
PHPCS custom settings to support minimum WP version and text domain
2017-11-21 13:14:55 +00:00
Mike Jolley 1c12459367
Merge pull request #17827 from woocommerce/fix/missing-text-domain
Fixed missing text domain in setup wizard
2017-11-21 13:13:59 +00:00
Mike Jolley c0afbf9bad
Merge pull request #17829 from woocommerce/refactor/run-grunt-checktextdomain-by-default
Run grunt checktextdomain by default
2017-11-21 13:13:40 +00:00
Claudio Sanches 34ec7a013f
Merge pull request #17835 from woocommerce/fix/17815
Checkout should store fee tax lines
2017-11-21 11:06:01 -02:00
Claudio Sanches af6bfd22fd
Merge pull request #17821 from woocommerce/fix/17820
When custom attributes are created, they are decoded. Make the values match.
2017-11-21 10:57:26 -02:00
Claudio Sanches 216ddc799a Fixed VSCode auto align mistake
One more reason to go back to sublime
2017-11-21 10:53:15 -02:00
Claudio Sanches 56888d334c Fixed typo 2017-11-21 10:47:42 -02:00
Claudio Sanches 914ebef337 PHPCS custom settings to support minimum WP version and text domain
Also makes sure that PHPCompatibility is looking for PHP 5.2+
2017-11-21 10:41:55 -02:00
Claudio Sanches 163c73ba97 Updated wp-coding-standards/wpcs version 2017-11-21 10:41:43 -02:00
Mike Jolley d9913c0d77 Checkout should store fee tax lines
Fixes #17815
2017-11-21 10:49:26 +00:00
Claudio Sanches e9a8c15099 Fixed typo 2017-11-20 22:18:07 -02:00
Claudio Sanches d99aec3fd9 Run grunt checktextdomain by default
This will help to find missing or incorrect text domains
2017-11-20 22:16:24 -02:00
Claudio Sanches f395fcd2e8 Fixed missing text domain in setup wizard 2017-11-20 22:08:23 -02:00
Mike Jolley 830ef8ed73 Change status action buttons 2017-11-20 22:43:37 +00:00
claudiulodro a73436bdcd Merge remote-tracking branch 'origin/master' into HEAD 2017-11-20 14:43:12 -08:00
claudiulodro 413758b395 Minify 2017-11-20 14:37:40 -08:00
claudiulodro afb74d4f7c Should be a number 2017-11-20 14:24:55 -08:00
claudiulodro cebe335dda Update routine 2017-11-20 14:21:08 -08:00
Claudio Sanches 9681a331e9 Fixed coding standards 2017-11-20 20:19:09 -02:00
Mike Jolley 2e08bfdb33 Tweak where meta gets sanitized before passing to comparison function 2017-11-20 21:48:35 +00:00
Mike Jolley 698db6c131 When custom attributes are created, they are decoded. Make the values match.
When we create/link variations, the entities are decoded.

When the variation form is posted, the entities are encoded (esc_attr).
This decodes them so they match correctly. Fixes #17820
2017-11-20 20:51:32 +00:00
claudiulodro 7892352ea5 Style backorder status mark 2017-11-20 11:39:37 -08:00
claudiulodro 03d51e5471 Tweak variable on backorder logic 2017-11-20 11:32:30 -08:00
claudiulodro b64b26d030 Variable products are on backorder if all children are backordered 2017-11-20 11:19:06 -08:00
JeroenSormani 14e5bcd51d Exclude virtual tax classes from calcluation for shipping taxes 2017-11-20 20:14:23 +01:00
claudiulodro 7a43b5a187 Fix bug in show/hide js 2017-11-20 10:44:50 -08:00