Commit Graph

24419 Commits

Author SHA1 Message Date
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
Mike Jolley 9cb3b2f954
Merge pull request #17782 from shivapoudel/fix/order-button-text
Fix - Order button text on payment method change
2017-11-18 18:29:10 +00:00
Mike Jolley 67d780a9f3
Merge pull request #17771 from woocommerce/fix/17770
Change default text for checkout page link
2017-11-18 18:28:17 +00:00
Mike Jolley a765367dd5
Merge pull request #17747 from woocommerce/feature/allow-add-content-to-order-preview
Introduce hooks to allow custom content into order preview
2017-11-18 18:26:08 +00:00
Mike Jolley 93a3256999
Merge pull request #17787 from mensmaximus/patch-1
Fix for #17778
2017-11-18 18:25:10 +00:00
Michael Weichselgartner 7164a7e190
Update class-wc-admin-post-types.php 2017-11-18 18:16:18 +01:00
Shiva Poudel 1fbc4e77cc Tweak - Display featured product checkbox inline 2017-11-18 21:43:09 +05:45
Mike Jolley a23541ad5d Fix 4.9 conflict with variation names
`santiize-title` works differently with `/` chars in 4.9. This update
routine keeps variations functioning by doing a DB update on read.

Fixes #17775
2017-11-18 14:53:18 +00:00
Shiva Poudel 56317052f2 Fix - Order button text on payment method change
CC @kloon
2017-11-18 20:08:19 +05:45
Mike Jolley 8a2050e066 When populating defaults, sanitize
part of #17775

Caused by https://github.com/woocommerce/woocommerce/pull/17629/files
leaving attribute names uppercase.
2017-11-18 13:55:26 +00:00
Claudiu Lodromanean a98c494148
Merge pull request #17777 from woocommerce/fix/17769
Restore global $GLOBALS['post'] after render products shortcode
2017-11-17 14:16:04 -08:00
Brandon Kraft e34551c6b7
Correct nesting of args 2017-11-17 15:40:54 -06:00
Brandon Kraft b77dadf5ba
Bump template version 2017-11-17 15:16:53 -06:00
Claudio Sanches b4347f4071 Restore global $GLOBALS['post'] after render products shortcode
Closes #17769
2017-11-17 18:38:30 -02:00
Claudio Sanches 36e7bb04a1
Merge pull request #17774 from woocommerce/fix/npm-grunt-stylelint-unmet-dependency
Npm package grunt-stylelint requires stylelint as a peer dependency
2017-11-17 18:31:27 -02:00
Claudio Sanches 7c955591d7 Introduces _start and _end hooks into order preview template 2017-11-17 18:30:01 -02:00
Claudio Sanches 3f6dfb531c
Merge pull request #17748 from woocommerce/fix/orders-rest-api-schema-types
Rest API: Update the schema types for tax_class and price
2017-11-17 17:54:10 -02:00
Claudio Sanches d9d27a9a97 Fixed "tax_class" type in REST API v1 2017-11-17 17:52:12 -02:00
Rodrigo Primo 7de52d77ae npm package grunt-stylelint requires stylelint as a peer dependency
It is necessary to add stylelint directly to package.json as it is a peer dependency of grunt-stylelint. Doing this to fix the following npm warning:

```
npm WARN grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.
```
2017-11-17 17:02:19 -02:00
Rodrigo Primo 8b1b6772e3 npm automatically organizes the package list alphabetically 2017-11-17 16:52:41 -02:00
Brandon Kraft 7e9068ac53
Correct errors per PHPCS 2017-11-17 12:10:58 -06:00
Claudiu Lodromanean 9c1d3b8108
Merge pull request #17726 from woocommerce/fix/17713
non-enabled children should not be ignored
2017-11-17 10:07:38 -08:00
Brandon Kraft 5974901124
Change default text for checkout page link 2017-11-17 11:17:22 -06:00
Mike Jolley 72e078e83e Merge branch 'fix/17236'
# Conflicts:
#	includes/class-woocommerce.php
2017-11-17 12:49:02 +00:00
Mike Jolley 21e51b9fc6
Merge pull request #17692 from woocommerce/update/16925
Add add_to_cart_description method and aria-labels to cart buttons in the loop
2017-11-17 12:35:50 +00:00
Mike Jolley 14a657e7cc
Merge pull request #17728 from woocommerce/fix/17712
Default variation tax class should be 'same as parent'
2017-11-17 12:22:11 +00:00
Mike Jolley 8fe5d6bad0
Merge pull request #17676 from woocommerce/update/17672
Clear transients when product terms are updated
2017-11-17 12:21:53 +00:00
Mike Jolley 97d9a35437 Merge branch 'feature/regenerate-images'
# Conflicts:
#	includes/class-woocommerce.php
2017-11-17 12:12:35 +00:00
Mike Jolley 9b68610c7b
Merge pull request #17718 from woocommerce/fix/17717
Added missing meta info (author and date) when adding order note.
2017-11-17 12:03:31 +00:00
Mike Jolley e9ba9736fc
Merge pull request #17740 from woocommerce/fix/wizard-payment-escaping
Wizard: Fix escaping in payment description
2017-11-17 11:47:59 +00:00
The Dramatist 85ce4e0078 Class wc emails backorder method extract function removed (#17724)
* Replaced extract() function usage.

Usage of `extract()` is kinda discouraged. Though here the array `$args` is verified, I think avoiding this `extract()` function will make it better. Besides, without `extract()` the code is more readable and easily understandable.

* Object checking should be done.

Checking `$args['product']` is an object or not should be done before `get_formatted_name()` method is being called.
2017-11-17 11:38:26 +00:00
Will G 07431b0620
Responsive table for order downloads 2017-11-17 00:21:28 -05:00
Kelly Dwan 5bb04dd61f Rest API: Update the schema types for tax_class and price 2017-11-16 16:39:14 -05:00
Claudio Sanches 563896931e Introduced hooks to allow custom content into order preview 2017-11-16 18:48:47 -02:00
Claudio Sanches 885d0aa415 Fixed WC_Tests_Formatting_Functions::test_wc_do_oembeds() 2017-11-16 17:59:50 -02:00
Mike Jolley facdc49fad Total should be a string 2017-11-16 19:47:34 +00:00
Mike Jolley bdea242019 Schema: Attributes are an array of strings 2017-11-16 19:44:14 +00:00
Claudio Sanches a32fae4191 Fixed WC_Tests_Product_Data::test_product_getters_and_setters tests 2017-11-16 17:23:42 -02:00
Claudio Sanches 4d55aaf4ef Fixed WC_Tests_Discounts::test_calculations 2017-11-16 17:08:45 -02:00
Claudio Sanches 876f67a5a9 Fixed non existing product on Products_API::test_get_products_without_permission 2017-11-16 16:59:21 -02:00
Mike Jolley a899b53b57 Unit test fix: Exclude syntax_highlighting 2017-11-16 18:58:09 +00:00