Mike Jolley
16345137e2
Merge pull request #14479 from emgk/fixed-14474
...
Fixed: get_term() returns objects not array.
2017-04-18 10:36:55 +01:00
Govind Kumar
200cd2de63
Fixed: get_term() returns objects not array.
2017-04-18 13:00:04 +05:30
claudiulodro
f21e47f7d0
Update save logic to allow filtering
2017-04-17 14:45:53 -07:00
Claudio Sanches
510630ea05
Merge pull request #14466 from bhubbard/schemal.org-to-https
...
Updated Schema URLs to use HTTPS
2017-04-17 14:19:34 -03:00
Claudio Sanches
523cd5a0b5
Merge pull request #14443 from woocommerce/fix/14429
...
wp_insert_term can return an error so handle appropriately in class-wc-product-attribute.php
2017-04-17 13:14:11 -03:00
Claudio Sanches
04f61c73dc
Merge pull request #14447 from woocommerce/fix/14362
...
Make wc_add_order_item pass correct values to woocommerce_new_order_item
2017-04-17 12:54:40 -03:00
Claudio Sanches
5fd29ce0f1
Merge pull request #14449 from woocommerce/add/item-meta-filter
...
Add woocommerce_order_item_get_formatted_meta_data filter
2017-04-17 12:53:53 -03:00
Brandon Hubbard
fe81c3d74b
Updated Schema URLs to use HTTPS
2017-04-17 12:35:21 -03:00
Mike Jolley
2071e8efee
Added has_shipping_address helper method
...
#14364
2017-04-17 15:15:08 +01:00
Mike Jolley
15fb5fb5ce
Add woocommerce_order_item_get_formatted_meta_data filter
...
2.6 had woocommerce_order_items_meta_display. 3.0 has no filter to
remove meta from display.
Closes #14372
2017-04-17 13:00:05 +01:00
Mike Jolley
887cb8b62c
Make wc_add_order_item pass correct values to woocommerce_new_order_item
...
Fixes #14362
2017-04-17 12:50:27 +01:00
Mike Jolley
4fcada6fe9
wp_insert_term can return an error so handle appropriately in class-wc-product-attribute.php
...
Fixes #14429
2017-04-17 12:05:36 +01:00
Mike Jolley
71929666ac
Merge pull request #14404 from thenbrent/fix_get_meta_returning_deleted_values
...
Don't return deleted meta in get_meta_data()
2017-04-17 11:38:12 +01:00
Mike Jolley
d11337706e
Merge pull request #14401 from woocommerce/fix/14389
...
Use read_downloads in variations
2017-04-17 11:20:14 +01:00
Mike Jolley
9187f3cbb3
Merge pull request #14436 from woocommerce/fix/14398
...
Fixes the shipping address map URL
2017-04-17 11:12:19 +01:00
Matt Cohen
4aba3d16b0
Adjusts the filter to apply after removing the undesired elements, instead of before. #14398
2017-04-17 12:05:29 +02:00
Matt Cohen
dc37646273
Removes the first name, last name, and company from the shipping address map URL. Fixes #14398
2017-04-17 11:15:30 +02:00
rafsuntaskin
6334e95576
UAE state field set to not required, resolves #14409
2017-04-16 14:55:13 +06:00
Mike Jolley
d4a8f3c25b
fix coupon update
2017-04-15 21:48:22 +01:00
Mike Jolley
1f28b9d0b8
Other object types
2017-04-15 21:18:24 +01:00
Mike Jolley
27c9006f77
Product data store loop protection
2017-04-15 21:04:41 +01:00
Mike Jolley
5a7dd4938d
Merge pull request #14390 from bekarice/fix-php71-notices
...
Fix PHP 7.1 warnings when manually adding order items
2017-04-15 18:02:03 +01:00
Beka Rice
d35621f166
Cast unmodified tax as float as well
2017-04-15 12:01:37 -04:00
claudiulodro
96ed33f227
Use read_downloads in variations
2017-04-14 14:18:08 -07:00
Brent Shepherd
0e40d2c764
Don't return deleted meta
...
By using $this->get_meta_data() which passed meta through the
WC_Data::filter_null_meta() method, rather than $this->meta_data
which still has null values set.
2017-04-14 13:58:00 -07:00
Claudiu Lodromanean
f7c166ca22
Merge pull request #14368 from mdrahul/Fix-14366
...
Reset ratings count when product is duplicated, ref #14366
2017-04-14 11:40:00 -07:00
Beka Rice
9de8589c9c
Fix PHP 7.1 warnings when manually adding order items
2017-04-14 11:12:53 -04:00
Mike Jolley
d695a141ed
Variations were not correctly inheriting the parent image or shipping class id
2017-04-14 13:32:14 +01:00
mdrahul
b4ca263a4f
Reset ratings count when product is duplicated, ref #14366
2017-04-14 11:37:15 +05:30
Claudio Sanches
b5090ad629
Merge pull request #14356 from woocommerce/fix/variation-get_attribute
...
Made the get_attribute method work on variation objects
2017-04-13 13:19:26 -03:00
Mike Jolley
a1390125a0
Made the get_attribute method work on variation objects
...
Fixes #14345
2017-04-13 17:16:46 +01:00
Claudio Sanches
75ecc91d96
Merge pull request #14308 from woocommerce/add/14304
...
Add backtrace to deprecated message
2017-04-13 12:49:01 -03:00
Claudio Sanches
2879b6ec75
Merge pull request #14353 from woocommerce/fix/itemreviewed-data
...
Restores itemReviewed structured data for product reviews
2017-04-13 12:37:47 -03:00
Claudio Sanches
a0822e6d1f
Merge pull request #14352 from woocommerce/fix/grouped-sale-badge
...
Grouped sale badge fix
2017-04-13 12:36:20 -03:00
Mike Jolley
7bdf8302ec
Restores itemReviewed structured data for product reviews
2017-04-13 16:30:06 +01:00
Claudio Sanches
ef8136b135
Merge pull request #14344 from woocommerce/remove/defer-email-default
...
Set default email sending method to not defer
2017-04-13 12:29:34 -03:00
Claudio Sanches
5d5fc57f40
Merge pull request #14342 from woocommerce/fix/14332
...
Use refund date not order date in refund display
2017-04-13 12:25:08 -03:00
Claudio Sanches
f33127b239
Merge pull request #14341 from woocommerce/fix/14333
...
When checking if the update notice should be shown, compare minor version, not the patch version
2017-04-13 12:24:14 -03:00
Mike Jolley
0e67202ab1
Grouped sale badge fix
...
Closes #14348
2017-04-13 16:13:48 +01:00
Mike Jolley
77d93a70e0
Set woocommerce_defer_transactional_emails to false by default
2017-04-13 14:22:33 +01:00
Mike Jolley
180f5cd40b
send_transactional_email try catch block
2017-04-13 14:22:07 +01:00
Mike Jolley
34227d826f
Add backtrace to wc_doing_it_wrong
2017-04-13 14:01:58 +01:00
Mike Jolley
4870506a65
Revert "Add backtrace to deprecated message"
...
This reverts commit 3e9f74d038
.
2017-04-13 13:34:19 +01:00
Mike Jolley
41f7a637cd
Use refund date not order date in refund display
...
Fixes #14332
2017-04-13 13:24:48 +01:00
Mike Jolley
412ddeacda
When checking if the update notice should be shown, compare minor version, not the patch version
...
Fixes #14333
2017-04-13 13:15:49 +01:00
Mike Jolley
8268fc01ad
Make sure filters apply on parent_data
...
Closes #14321
2017-04-13 12:48:21 +01:00
Mike Jolley
01a4f9432f
get_tax_class should handle both parent data and unfiltered context to get the tax class before plugin modification.
2017-04-13 12:39:19 +01:00
Mike Jolley
f9dd3310b2
Unfiltered context rather than true
2017-04-13 12:38:54 +01:00
Tim Elsass
02de1cc60b
Fixing grammar error in msg fixes #14319
2017-04-12 17:03:39 -04:00
Claudio Sanches
078b23a3c2
Revert "Apply distinct to term id only"
2017-04-12 15:54:48 -03:00
Claudio Sanches
ad5dad52a2
Merge pull request #14309 from woocommerce/fix/stock-notification-settings
...
woocommerce_notify_low_stock and woocommerce_notify_no_stock were not hooked up
2017-04-12 14:46:33 -03:00
Mike Jolley
85a67151ff
woocommerce_notify_low_stock and woocommerce_notify_no_stock were not hooked up
2017-04-12 18:01:59 +01:00
Mike Jolley
3e9f74d038
Add backtrace to deprecated message
2017-04-12 17:37:59 +01:00
Claudio Sanches
c0619f99cd
Merge pull request #14306 from woocommerce/fix/file-validation
...
Only validate file type on relative paths
2017-04-12 12:51:48 -03:00
Mike Jolley
de7d8681d2
Only validate file type on relative paths
2017-04-12 16:49:43 +01:00
Claudio Sanches
8151eb1320
Merge pull request #14291 from woocommerce/fix/dupe-cats
...
Apply distinct to term id only
2017-04-12 12:18:34 -03:00
Claudio Sanches
582999c6c5
Merge pull request #14297 from woocommerce/fix/wc_customer_has_capability
...
Add $order checks to ensure object is set
2017-04-12 12:09:44 -03:00
Claudio Sanches
c5ee1aa00e
Merge pull request #14298 from woocommerce/fix/read_downloads
...
Ensure name and file is set
2017-04-12 12:09:05 -03:00
Mike Jolley
21da0cf71f
Ensure name and file is set
2017-04-12 14:11:04 +01:00
Mike Jolley
b258e64902
Add $order checks to ensure object is set
2017-04-12 13:46:14 +01:00
Mike Jolley
0628a91cfc
Apply distinct to term id only
2017-04-12 11:38:59 +01:00
Claudio Sanches
307a42b37e
Merge pull request #14279 from woocommerce/fix/14276
...
Fix shipping item name update
2017-04-11 18:36:15 -03:00
Mike Jolley
692eceb4cd
Fix shipping item name update
...
Fixes #14276
2017-04-11 21:38:50 +01:00
Claudio Sanches
e7acb2918c
Merge pull request #14250 from woocommerce/fix/14231
...
Update notice wording links and styling
2017-04-11 17:34:15 -03:00
Claudio Sanches
b122681700
Merge pull request #14268 from woocommerce/fix/background-mails
...
Works around some cookie hosting issues, and updates the queue more frequently in case of error during email send.
2017-04-11 17:31:49 -03:00
Claudio Sanches
4133f77a31
Merge pull request #14242 from dixitadusara/issue-14227
...
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 17:26:58 -03:00
Claudio Sanches
627d7a8790
Merge pull request #14278 from woocommerce/fix/14209-alt
...
Variation Attribute Name Fixes (simplified)
2017-04-11 17:25:28 -03:00
Claudio Sanches
a1478442d8
Merge pull request #14274 from woocommerce/fix/14239
...
Ensure object exists
2017-04-11 17:13:55 -03:00
Mike Jolley
5cfed7569c
Simplify wc_is_attribute_in_product_name and change separator
2017-04-11 21:12:30 +01:00
Claudio Sanches
610bd3c4db
Merge pull request #14272 from woocommerce/fix/14266
...
GP, GF, KW, LB, MQ, RE and YT does not have states
2017-04-11 17:05:13 -03:00
Claudio Sanches
0df920ebde
Merge pull request #14273 from woocommerce/fix/14162
...
Return if there is no product in woocommerce_upsell_display
2017-04-11 17:03:46 -03:00
Claudio Sanches
3278d9e5d7
Merge pull request #14255 from woocommerce/fix/14163
...
Download permissions; Convert dates to timestamp on read so UTC is preserved.
2017-04-11 16:51:20 -03:00
Claudio Sanches
e027e5b0a1
Merge pull request #14228 from woocommerce/fix/14135
...
Fix shortcodes formatted with <p> and improved wc_format_content()
2017-04-11 16:14:18 -03:00
Mike Jolley
f0f1efcffd
Ensure object exists
...
fixes #14239
2017-04-11 19:29:20 +01:00
Mike Jolley
a7e22e3749
Return if there is no product in woocommerce_upsell_display
...
Fixes #14162
2017-04-11 19:21:13 +01:00
Mike Jolley
f5fdd59209
More states
...
Fixes #14270
2017-04-11 19:10:01 +01:00
Mike Jolley
6ad0f1755d
KW does not have states
...
Fixes #14266
2017-04-11 19:02:23 +01:00
Mike Jolley
7f820c2526
Break if batch is empty
...
Fixes #14261
2017-04-11 18:59:58 +01:00
Claudio Sanches
6ccdacb0fd
Merge pull request #14271 from woocommerce/fix/14259
...
Apply query_arg filter before generating transient name in product_loop
2017-04-11 14:52:26 -03:00
Claudio Sanches
765179b4da
Merge pull request #14253 from woocommerce/add/date-format-filter
...
woocommerce_admin_order_date_format filter to replace old post_date_column_time
2017-04-11 14:48:35 -03:00
Mike Jolley
cb668d42e0
Apply query_arg filter before generating transient name in product_loop
...
Fixes #14259
2017-04-11 18:47:05 +01:00
Claudio Sanches
4e9febc829
Merge pull request #14269 from woocommerce/fix/14263
...
Correct variable name
2017-04-11 14:45:25 -03:00
Mike Jolley
9757d2a0ce
Correct variable name
...
Fixes #14263
2017-04-11 18:29:55 +01:00
Mike Jolley
63cd7c25d0
Works around some cookie hosting issues, and updates the queue more frequently in case of error during email send.
2017-04-11 18:23:45 +01:00
Mike Jolley
510adc652c
Download permissions; Convert dates to timestamp on read so UTC is preserved.
...
Fixes #14163
2017-04-11 13:13:03 +01:00
Mike Jolley
899176bee7
woocommerce_update_customer_args filter
2017-04-11 12:47:53 +01:00
Mike Jolley
2f9a9589df
woocommerce_admin_order_date_format filter to replace old post_date_column_time
2017-04-11 12:41:30 +01:00
Mike Jolley
2eb9405caa
Fix notice styling
2017-04-11 11:40:42 +01:00
Mike Jolley
d81493cc52
Merge pull request #14229 from woocommerce/fix/14184
...
[REST API] Fixed line_items meta type to array on legacy REST API
2017-04-11 10:32:17 +01:00
dixitadusara
1bf13e2b8b
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 13:04:39 +05:30
Claudio Sanches
6b12559b76
Merge pull request #14164 from RamyTalal/patch-1
...
Fix notice errors on PHP 7.1
2017-04-11 02:20:27 -03:00
Ramy Talal
36de5db080
Coding standards
2017-04-11 07:19:24 +02:00
Claudio Sanches
4a5a93f629
Merge pull request #14107 from woocommerce/fix/rest-api-legacy-v3-variations
...
[REST API] Fixed missing $variations variable in legacy v3
2017-04-10 20:19:43 -03:00
Claudio Sanches
5c92f9141b
[REST API] Fixed line_items meta type to array on legacy REST API
...
Closes #14184
2017-04-10 19:57:35 -03:00
Claudio Sanches
5eab267ec1
Fixed shortcodes formatted with <p> and improved wc_format_content()
...
This fix the shortcode issue, stop extra sanitization and allow use
smilies, attachments, embeds and Jetpack markdown.
Closes #14135
2017-04-10 19:21:22 -03:00
Claudio Sanches
702d72f173
Merge pull request #14225 from woocommerce/fix/14213
...
Use correct thumbnail for variation images in gallery
2017-04-10 19:13:09 -03:00
Mike Jolley
7274c14591
Use correct thumbnail for variation images in gallery
...
Fixes #14213
2017-04-10 23:02:53 +01:00
Claudio Sanches
394532c9ab
Merge pull request #14199 from woocommerce/add/visibility-terms-debug-14147
...
Add product visibility terms to system status report to help debug
2017-04-10 18:52:10 -03:00
Claudio Sanches
8bd7e2de4a
Merge pull request #14188 from woocommerce/fix/14186
...
Correct calls to wc_reduce_stock_levels in PayPal and Simplify gateways
2017-04-10 18:50:51 -03:00
Claudio Sanches
2acc956254
Merge pull request #14206 from woocommerce/fix/14118
...
__clone meta correctly on object clone
2017-04-10 18:49:49 -03:00
Claudio Sanches
47a6741707
Merge pull request #14221 from woocommerce/fix/14216
...
Do not duplicate grouped products, only variations
2017-04-10 18:49:28 -03:00
Claudio Sanches
0b7f990dae
Merge pull request #14219 from woocommerce/fix/14211
...
Fix backwards compat logic in enable_guest_checkout
2017-04-10 18:48:16 -03:00
Claudiu Lodromanean
715656921d
wc_is_attribute_in_product_name
2017-04-10 14:35:16 -07:00
Claudio Sanches
b79711b54c
Merge pull request #14141 from rellect/copy_suffix
...
Add back the (Copy) suffix for duplicated products
2017-04-10 18:16:09 -03:00
Mike Jolley
bcd39e9a79
Pass id not object to wc_reduce_stock_levels
2017-04-10 21:55:17 +01:00
Mike Jolley
76d962b606
since
2017-04-10 21:52:06 +01:00
Mike Jolley
ade147ccc2
Do not duplicate grouped products, only variations
...
Fixes #14216
2017-04-10 21:45:57 +01:00
Mike Jolley
3cf50c60f6
Fix backwards compat logic in enable_guest_checkout
...
Fixes #14211
2017-04-10 21:18:49 +01:00
Claudiu Lodromanean
903b176b99
Attribute title tweaks
2017-04-10 13:16:58 -07:00
Claudio Sanches
043265101f
Merge pull request #14142 from rellect/unset_set_on_duplicating
...
Reset slug when duplicating product - fix #14128
2017-04-10 16:28:50 -03:00
Mike Jolley
12dbc059c3
Update add_to_cart_text for external products to include default
...
Fixes #14181
2017-04-10 17:54:39 +01:00
Mike Jolley
e14d85d0a3
__clone meta correctly on object clone
...
Fixes #14118
2017-04-10 17:12:17 +01:00
Claudio Sanches
e6d68c7897
Merge pull request #14198 from woocommerce/fix/14158
...
Make get_cross_sells unique.
2017-04-10 12:55:25 -03:00
Mike Jolley
7d5efe4b78
Add product visibility terms to system status report to help debug
...
Closes #14147
2017-04-10 15:51:14 +01:00
Mike Jolley
95397188d5
Make get_cross_sells unique.
...
Fixes #14158
2017-04-10 15:20:41 +01:00
Mike Jolley
243b7a0d3f
Exclude location meta from setters
2017-04-10 12:16:25 +01:00
Mike Jolley
8fa73602eb
Correct calls to wc_reduce_stock_levels in PayPal and Simplify gateways
...
Fixes #14186
2017-04-10 11:56:52 +01:00
Ramy Talal
6b29066d3e
Fix notice errors on PHP 7.1
2017-04-09 13:45:46 +02:00
refael iliaguyev
6ee1fb0a62
set empty string as slug
2017-04-08 18:14:34 +03:00
refael iliaguyev
5add77c201
add 'woocommerce' text domain
2017-04-08 15:59:01 +03:00
refael iliaguyev
3be5f80ee7
unset slug - fix #14128
2017-04-08 13:39:06 +03:00
refael iliaguyev
3af7452370
Add back the (Copy) suffix for duplicated products
2017-04-08 13:16:42 +03:00
Govind Kumar
2ea79cc5ed
Fixed issue #14124
2017-04-07 19:14:10 +05:30
Claudio Sanches
708df27719
Merge pull request #14117 from woocommerce/fix/14108
...
If variation tax class meta is not set, it should be 'parent' to support 2.6 data
2017-04-07 13:29:40 -03:00
Mike Jolley
7418b9f8b8
If variation tax class meta is not set, it should be 'parent' to support 2.6 data
...
Fixes #14108
2017-04-07 17:13:59 +01:00
Claudio Sanches
51c00cce09
Merge pull request #14099 from dixitadusara/issue-14089B
...
Modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 12:33:01 -03:00
Claudio Sanches
ef6895fd56
Merge pull request #14113 from woocommerce/fix/product-object-checks
...
Fix/product object checks
2017-04-07 12:31:28 -03:00
Mike Jolley
e14eb70814
Skip reports if no product is found
2017-04-07 16:08:06 +01:00
Mike Jolley
84c96046f0
Check objects are not false/null
2017-04-07 16:01:51 +01:00
Claudio Sanches
8de0bb0a46
[REST API] Fixed missing $variations variable in legacy v3
2017-04-07 10:31:28 -03:00
Claudio Sanches
731c9cfdd9
Merge pull request #14097 from woocommerce/fix/14085
...
Ensure meta_value has valid keys in read_attributes
2017-04-07 09:19:25 -03:00
Claudio Sanches
c42505f7e5
Merge pull request #14096 from woocommerce/fix/14087
...
Add missing woocommerce_cross_sells_columns filter.
2017-04-07 09:18:54 -03:00
Mike Jolley
4f412678bd
Ensure meta_value has valid keys in read_attributes
...
Fixes #14085
2017-04-07 10:59:59 +01:00
dixitadusara
e527b6608c
modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 15:27:52 +05:30
Mike Jolley
078dfb4ffa
Add missing woocommerce_cross_sells_columns filter.
...
Closes #14087
2017-04-07 10:35:42 +01:00
Gareth
425752d8ff
Updates product title in product loop commenting
...
Commenting indicated the product title in the product loop was enclosed in an `<h3>`, when the code was actually printing an `<h2>`.
2017-04-07 09:55:48 +02:00
dixitadusara
3ba9063d3d
Invalid argument supplied for foreach - class-wc-product-data-store-cpt.php ref #14089
2017-04-07 13:24:34 +05:30
Claudio Sanches
464ea7f01d
Fixed ccoding standards
2017-04-06 19:46:06 -03:00
Claudio Sanches
c4adec3e1a
Removed translatable function used for variables
2017-04-06 19:45:59 -03:00
Claudiu Lodromanean
19361127a9
Array filter before saving
2017-04-06 14:47:22 -07:00
Claudio Sanches
7f18e9ef83
Merge pull request #14076 from woocommerce/fix/remove-empty-items
...
filter items which are false
2017-04-06 18:21:14 -03:00
Claudio Sanches
c2830af5e1
Merge pull request #14071 from woocommerce/fix/14068
...
Fix variation category restriction and limit to x uses
2017-04-06 18:15:45 -03:00
Mike Jolley
fbcb46b273
filter items which are false
...
https://wordpress.org/support/topic/call-to-a-member-function-is_type-cl
ass-wc-order-php-on-line-1305/
2017-04-06 22:15:42 +01:00
Claudio Sanches
56b8a4661a
Merge pull request #14074 from woocommerce/fix/14067
...
Fixed sanitization of order items meta data
2017-04-06 18:14:34 -03:00
Claudio Sanches
ee76842edb
Merge pull request #14075 from woocommerce/fix/14072
...
Remove date on dupe
2017-04-06 18:13:26 -03:00
Mike Jolley
c1b670eaa6
Remove date on dupe
2017-04-06 22:11:00 +01:00
Claudio Sanches
af7f271de1
Fixed sanitization of order items meta data
...
Closes #14067
2017-04-06 17:58:24 -03:00
Mike Jolley
1b5cad3d78
Fix variation category restriction and limit to x uses
...
Fixes #14068
2017-04-06 21:51:11 +01:00
Claudiu Lodromanean
94814a0b03
Dont throw exceptions when reading
2017-04-06 13:39:36 -07:00
Mike Jolley
d8bc209cab
read_product_data does not exist
2017-04-06 20:55:51 +01:00