Commit Graph

19046 Commits

Author SHA1 Message Date
Mike Jolley 55c9554ace Use MDL
Closes #13016
2017-01-30 10:35:47 +01:00
Mike Jolley 1cee800b4e Merge pull request #13020 from Chouby/shop_on_front
Check SHOP_IS_ON_FRONT existence before defining it
2017-01-30 09:27:14 +00:00
Frédéric Demarle 4075024bb9 Use wp_die intead of die in ajax responses 2017-01-29 21:43:25 +01:00
Frédéric Demarle e03000126e Check SHOP_IS_ON_FRONT existence before defining it 2017-01-29 21:32:26 +01:00
Mike Jolley abe87d9bfa Merge pull request #12967 from woocommerce/fix/variation-get-name
Clean up variation names.
2017-01-27 17:01:34 +00:00
Mike Jolley 9c523d2bc1 Merge branch 'pr/12937'
# Conflicts:
#	templates/single-product/product-image.php
2017-01-27 16:52:46 +00:00
Mike Jolley 9bc5eefc98 Use array for class filter 2017-01-27 16:52:23 +00:00
Claudio Sanches 346e1ea1e0 Merge pull request #12996 from woocommerce/rest-api-missing-types-args
REST API Types
2017-01-27 14:49:35 -02:00
Mike Jolley 6a997ec6b2 Merge pull request #13001 from thenbrent/honour_default_checkout_get_value
Honour default checkout_get_value
2017-01-27 16:42:32 +00:00
Mike Jolley 365b456fa5 Make sure product is set. 2017-01-27 16:39:53 +00:00
Claudio Sanches 24a5fe7592 Make WC_REST_Exception extend WC_Data_Exception 2017-01-27 13:52:21 -02:00
Claudio Sanches 8c84836423 Merge pull request #12998 from todeveni/patch-3
Cast position as integer
2017-01-27 13:20:52 -02:00
Claudio Sanches 80bc7128be Merge pull request #13002 from thenbrent/fix_undefined_variable_function
Fix "Undefined variable: function" notice
2017-01-27 13:19:07 -02:00
Claudio Sanches 59baa961bb Merge pull request #13003 from thenbrent/fix_deprecated_action_messages
Fix deprecated action messages
2017-01-27 13:18:51 -02:00
Mike Jolley 2bbc363033 wiki 2017-01-27 11:24:16 +00:00
Mike Jolley 148dcc836b wiki image 2017-01-27 11:19:36 +00:00
Brent Shepherd 0e393da2cd Fix woocommerce_order_add_product deprecation msg 2017-01-26 16:58:47 -08:00
Brent Shepherd 5e77311384 Fix deprecated action messages
Don't end sentence with double .. and instead of "Replace with Use CRUD"
just say "Replace with CRUD"
2017-01-26 16:44:28 -08:00
Brent Shepherd 7a77c70d2a Fix "Undefined variable: function" notice
Triggered whenever wc_deprecated_argument() is called in an Ajax request.

Related to #12889
2017-01-26 16:31:11 -08:00
Brent Shepherd 50da0ebd4a Fix default WC_Checkout::get_value() behaviour
Prior to SHA: 43d362d1, WC_Checkout::get_value() would set the default value
for an $input whenever the value after was null after being passed through
filters. This logic changed with SHA: 43d362d1 to *always* return the filtered
value, even if the value was not changed by filters and was still null.

This means if any code filters just one checkout value, like order_comments,
then all other checkout values will default to null, because the has_filter()
check will pass, but the default null value won't be modified by that callback.
2017-01-26 14:47:43 -08:00
Toni Viemerö 2d92bdece6 Cast position as integer
Even though I'm sending `position` as integer in my REST request, it comes through as string value.

```
array (
  'id' => '186',
  'position' => '0',
)
```
2017-01-26 23:08:12 +02:00
Mike Jolley 7e1dda6d92 Merge pull request #12995 from todeveni/patch-2
Remove tilde from i
2017-01-26 20:59:58 +00:00
Mike Jolley e930ccd16e object types to fix unit tests 2017-01-26 20:58:55 +00:00
Toni Viemerö 2b00615fa2 Remove tilde from i 2017-01-26 22:55:23 +02:00
Mike Jolley 82d7fe6e73 Added more missing args and types 2017-01-26 20:33:39 +00:00
Mike Jolley b727c61da7 Missing arg and setting types 2017-01-26 20:06:18 +00:00
Mike Jolley 2d23705431 ID arg definitions 2017-01-26 19:22:57 +00:00
Mike Jolley def35a5aa2 Cast request ids to int 2017-01-26 18:34:11 +00:00
Mike Jolley 3632660d2c Merge pull request #12993 from jaydeeprami/Fix-Issue-12986
Fixed issue #12986
2017-01-26 18:10:26 +00:00
Jaydeep Rami 615ba59ebb Fixed issue #12986 2017-01-26 23:21:34 +05:30
Justin Shreve 0b1685c76b Remove variation get_name, it will get it from parent. 2017-01-26 07:48:04 -08:00
Justin Shreve 7b1adfb98f Bake out of get_title deprecation changes 2017-01-26 07:46:59 -08:00
Mike Jolley de6d1d23be Merge branch 'fix-12922'
# Conflicts:
#	assets/js/frontend/single-product.js
2017-01-26 14:59:30 +00:00
Mike Jolley 41f3572b23 Merge branch 'fix-12922' 2017-01-26 14:57:51 +00:00
Mike Jolley d2f4859f18 Merge branch 'pr/12938' 2017-01-26 14:50:49 +00:00
Mike Jolley e99d8c9ef6 Name filter woocommerce_single_product_image_thumbnail_html 2017-01-26 14:50:40 +00:00
Mike Jolley de312bc780 Merge pull request #12981 from shivapoudel/remove-cart-notices
Fix - Don't preserve cart notices for quantity update
2017-01-26 14:14:14 +00:00
Mike Jolley 40e9eabf9f Merge pull request #12983 from woocommerce/get_tax_classes
WC_Tax::get_tax_class_slugs()
2017-01-26 14:10:04 +00:00
Mike Jolley beb92dd83d Readme for #12821 2017-01-26 14:08:35 +00:00
Mike Jolley 173543ba82 Merge pull request #12821 from woocommerce/fix-12713
Don’t erase payment details w/ ‘update_checkout’
2017-01-26 14:07:31 +00:00
Mike Jolley 9eaffcde42 Merge pull request #12980 from woocommerce/fix/payment-token-update-props
When updating payment tokens, only update the props that have changed & fire off a hook of the changed props.
2017-01-26 14:06:44 +00:00
Mike Jolley 69483b242e Merge pull request #12982 from woocommerce/disable-coverage-reports
Disable coverage except on master, not PR, latest stable builds
2017-01-25 23:28:01 +00:00
Justin Shreve 3ad0ef5556 Merge pull request #12984 from woocommerce/ryanr14-video-translation-404-1
Update CONTRIBUTING.md
2017-01-25 14:00:38 -08:00
Ryan Ray 393c8bf9c5 Update CONTRIBUTING.md
Fixed a broken link for translating videos, hat tip Justin. ;)
2017-01-25 16:59:04 -05:00
Justin Shreve e176f008b8 Add some comments for the return value of get_tax_classes and get_tax_class_slugs 2017-01-25 13:48:29 -08:00
Justin Shreve 474a307420 Introduce get_tax_class_slugs. 2017-01-25 13:38:13 -08:00
Jon Surrell 994167046f Disable coverage except on master, not PR, 7.1 builds
This should vastly increase most automated travis builds.
Coverage reports are only interesting on master and not needed on all PRs.
2017-01-25 22:28:57 +01:00
Justin Shreve e8237eab3d Merge pull request #12965 from woocommerce/update/duplicate-product
Update WC_Admin_Duplicate_Product to use CRUD.
2017-01-25 12:18:49 -08:00
Justin Shreve bcae0166fd Fix spacing error, return objects on our new hook, and force sku to be unique when duplicating. 2017-01-25 11:44:27 -08:00
Shiva Poudel 04bfa3c36d Fix - Don't preserve cart notices for quantity update
Closes #12877
2017-01-26 01:05:38 +05:45