Commit Graph

24258 Commits

Author SHA1 Message Date
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
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
JeroenSormani 14e5bcd51d Exclude virtual tax classes from calcluation for shipping taxes 2017-11-20 20:14:23 +01:00
Claudiu Lodromanean 8801279c10
Merge pull request #17813 from woocommerce/fix/17779
Add option to disable rounding when adding precision
2017-11-20 09:09:46 -08:00
Claudio Sanches 5a858eb2b1 Use WC_Query->get_query_vars() instead of WC_Query->query_vars
Closes #17733
2017-11-20 14:40:56 -02:00
Mike Jolley c8d1a46315 Default rounding to true. 2017-11-20 16:37:44 +00:00
Mike Jolley ec5db3b123 When adding precision to taxes, don't round when adding precision. 2017-11-20 16:30:23 +00:00
Mike Jolley 80ffcfb45d Add round param for `wc_add_number_precision`
Let’s us return the cent value without rounding to an integer.
2017-11-20 16:30:04 +00:00
Mike Jolley 1bd30af0d0
Merge pull request #17803 from woocommerce/fix/17600
Regenerate download permissions when linking orders.
2017-11-20 12:38:46 +00:00
Mike Jolley b9bfc4a26b
Merge pull request #17753 from willgorham/fix/17597
Responsive table for order downloads
2017-11-20 12:18:54 +00:00
Mike Jolley 99d8d30ec0
Merge pull request #17810 from woocommerce/fix/17762
Apostrophe in product search breaks nav filters (invalid characters in hrefs & form data)
2017-11-20 12:16:01 +00:00
Mike Jolley 46775c2f7d standards 2017-11-20 12:14:05 +00:00
Claudio Sanches fc3226929e
Merge pull request #17798 from shivapoudel/tweak/exclude-vendor
Exclude vendor directory while creating POT
2017-11-20 10:09:32 -02:00
The Dramatist 67aced7d62 Unused variable removed and some comment added. (#17786) 2017-11-20 11:47:16 +00:00
Mike Jolley 6e581a313d
Merge pull request #17802 from woocommerce/fix/17780
Image resize sizes array exist check
2017-11-20 11:32:27 +00:00
Mike Jolley c05d8ac94f
Merge pull request #17799 from axelmm/patch-2
Access to importer parameters - DRY
2017-11-20 11:31:57 +00:00
Mike Jolley bfdd5e2e45
Merge pull request #17800 from shivapoudel/tweak/api-request
Tweak - Fix IPN validation for PayPal as its notify URL has different case
2017-11-20 11:31:17 +00:00
Gerhard Potgieter 26c7cf15cd Use single isset with multiple params instead of multiple isset's 2017-11-20 13:23:10 +02:00
Mike Jolley dff41d3e83
Merge pull request #17793 from jamesckemp/patch-7
Minor grammar change
2017-11-20 11:17:34 +00:00
Mike Jolley deeadccf78
Merge pull request #17790 from mensmaximus/patch-2
Fix method upload_dir in class WC_Admin_Post_Types
2017-11-20 11:16:05 +00:00
Gerhard Potgieter 32c568209d Add unit test to cover download permissions when running wc_update_new_customer_past_orders 2017-11-20 10:12:59 +02:00
Gerhard Potgieter 95b669280a Refactor wc_update_new_customer_past_orders to not call update_post_meta directly but use the datastore. Check if order has downloadable items and then regenerate permissions. 2017-11-20 08:44:42 +02:00
Gerhard Potgieter b7f76e1a1b Make sure sizes array exist before checking for children 2017-11-20 07:50:35 +02:00
Shiva Poudel 4eaeff1729 Tweak - Fix IPN validation for PayPal as its notify URL has different case 2017-11-20 07:52:15 +05:45
axelmm 1a309856c3
Access to importer parameters - DRY
Access (read only) to params can be required in many cases when you're playing with importing. 
In my case it was extending importer with filters and actions (procedural way - within original csv importer process) but it relates to objective way (extending importer class), too.

I wanted to know if 'update_existing' flag is set (other way than $_POST values) within filter 'woocommerce_product_importer_parsed_data' in parse/expand loop (called from class-wc-product-csv-importer.php 'set_parsed_data' method). Unfortunately this (and similiar) filter doesn't receive importer instance, only row data (raw, parsed and product object). Thanks to https://github.com/woocommerce/woocommerce/pull/15796 we have 'woocommerce_product_importer_formatting_callbacks' filter receiving importer instance. Unfortunately importer '$params' field is not accessible (protected in abstract). This PR resolves this simple problem - we can get this flag (and other params) before importing loops, processing rows etc.
2017-11-20 02:09:49 +01:00
Shiva Poudel fc4482c03e Updated node packages and exclude vendor directory while creating POT 2017-11-20 02:34:26 +05:45
James Kemp 5c03d9cbd5
Minor grammar change 2017-11-18 22:08:42 +00:00
Claudiu Lodromanean 106e6533f2
Merge pull request #17781 from woocommerce/fix/17629
When populating defaults, sanitize
2017-11-18 13:40:40 -08:00
Claudiu Lodromanean 89e729cd8e
Merge pull request #17784 from woocommerce/fix/17775-4.9
Fix 4.9 conflict with variation names
2017-11-18 13:37:20 -08:00
Alexandre GASNE 0018b4349e Fix: Apostrophe wrongly escaped for price nav filter and widget nav filters 2017-11-18 20:11:53 +01:00
Michael Weichselgartner ff8326b20e
Fix method upload_dir in class WC_Admin_Post_Types
Fix undefined variable `$uploads` in method `upload_dir` from class `WC_Admin_Post_Types` by reverting back to `$pathdata` as reported in #17789
2017-11-18 20:06:45 +01:00
Mike Jolley 55433aa7a9
Merge pull request #17785 from shivapoudel/fix/visibility-featured
Correct escape for featured product checkbox
2017-11-18 18:29:30 +00:00