Mike Jolley
fb64e6e66e
Use wp_unslash and only decode when getting attributes, not saving
2015-08-13 13:03:51 +01:00
Mike Jolley
7552704e75
double encode attributes
2015-08-13 12:16:08 +01:00
Mike Jolley
a545a3aa02
wp_json_encode is 4.1 +
2015-08-13 12:07:12 +01:00
Mike Jolley
4908131b86
stripslashes_deep attributes
2015-08-13 12:07:05 +01:00
Mike Jolley
3a4653ba3b
Run html_entity_decode over text attributes to fix problems with quote characters.
2015-08-13 12:06:52 +01:00
Mike Jolley
8f759c8af1
Order variations by menu_order by fallback to ID.
2015-08-13 10:40:50 +01:00
Mike Jolley
d3e2217227
Allow errors with debug on
...
Closes #8805
2015-08-13 10:27:22 +01:00
Claudio Sanches
275849b5da
[2.4] Fixe order by user and sorting by total, closes #8803
2015-08-13 00:33:56 -03:00
Claudio Sanches
6d79f7f02b
Fixed default wc_lostpassword_url() args, closes #8800
2015-08-12 17:43:04 -03:00
Mike Jolley
f8b539eb5e
Improved refund email events and woocommerce_order_fully_refunded hook.
...
Closes #8793
2015-08-12 19:01:05 +01:00
Mike Jolley
cbb89fa4b9
wc_get_product_variation_attributes should only get parent attributes which are for variations.
...
Closes #8796
2015-08-12 18:02:13 +01:00
Mike Jolley
817f8476ac
Refund subjects when order contains downloadable product.
2015-08-12 17:50:57 +01:00
Mike Jolley
19e8cc4634
display_errors > error_reporting
2015-08-12 17:45:49 +01:00
Mike Jolley
7a58c5417c
Only process downloads if valid order is found
...
Closes #8798
2015-08-12 17:21:07 +01:00
Mike Jolley
457283bc3c
Ajax variations: stripslashes to fix attributes with quotes.
2015-08-12 17:08:21 +01:00
Mike Jolley
6a3f4ee969
Disable error_reporting during ajax requests to prevent malformed JSON.
2015-08-12 11:51:05 +01:00
Mike Jolley
2f79ab5e3a
When merging shipping taxes with a shipping rate taxes, ensure shipping rate taxes is not malformed.
...
Closes #8790
2015-08-12 11:28:24 +01:00
Mike Jolley
0da69f2bef
Query within wc_customer_bought_product().
2015-08-12 10:44:44 +01:00
Mike Jolley
f6f2d7f9df
Ensure array is returned from wc_get_attribute_taxonomies
2015-08-11 17:10:34 +01:00
Mike Jolley
3bd52a78a5
Use wc_get_attribute_taxonomies instead of global
2015-08-11 17:10:34 +01:00
Claudio Sanches
23f6544ffc
Stop jetpack markdown of add slashs in HTML, closes #8782
2015-08-11 12:06:59 -03:00
Mike Jolley
4dd19c3839
Stripslashes on text attributes
...
Fixes #8778 Closes #8771
2015-08-11 14:55:35 +01:00
Mike Jolley
7d27707043
Tax inclusive prices rounding issue
...
Remove rounding on cart_contents_total so total is calculated correctly.
Prevents issues with half rounded taxes and half rounded items.
Fixes #8776
2015-08-11 14:17:52 +01:00
Mike Jolley
fafb6d5dca
Tweak cart fix to avoid munging %%endpoint%%
2015-08-11 14:04:42 +01:00
Mike Jolley
3eedab457d
return; don't break
2015-08-11 13:47:12 +01:00
Mike Jolley
61f7dd428e
use shop_single instead of full image size for variations.
...
Closes #8764
2015-08-11 12:54:26 +01:00
Ninos Ego
98a1ae4b25
Add class arg to dropdown function
2015-08-11 13:17:52 +02:00
Mike Jolley
5b786261e1
Hide get_formatted_legacy notices when doing ajax.
2015-08-11 12:09:54 +01:00
Mike Jolley
faa8ab02e0
* Fix - ordering_args in product_category shortcode.
2015-08-11 12:04:30 +01:00
Mike Jolley
8a0f4fcc67
Tweak update shipping logic
2015-08-11 11:53:51 +01:00
Mike Jolley
1078564fca
Prevent double add to cart due to ajax endpoints.
2015-08-11 11:53:36 +01:00
Mike Jolley
1cae64f448
eval maths - output errors only if WP_DEBUG is on
2015-08-11 11:23:53 +01:00
Mike Jolley
15e3c545df
Made checkout make use of new ajax endpoints.
...
Fixes #8763
2015-08-11 11:18:50 +01:00
Mike Jolley
42e99286c7
If all variations are out of stock, maintain pricing.
2015-08-11 10:33:47 +01:00
Claudio Sanches
b1f0da9d76
Version 2.4.1
2015-08-10 18:44:32 -03:00
Claudio Sanches
a572c40405
Added the update script for 2.4.1
2015-08-10 18:27:07 -03:00
Claudio Sanches
f7c5d3d5f9
Fixed a typo
2015-08-10 18:26:06 -03:00
Claudio Sanches
7908d6e55a
Improved 2.4.1 update script
2015-08-10 18:23:28 -03:00
Claudio Sanches
2ad4592324
WooCommerce 2.4.1 update script
2015-08-10 18:18:33 -03:00
Mike Jolley
c1cd3f097c
Fix notices when calling get_shipping_classes().
2015-08-10 21:52:21 +01:00
Mike Jolley
1f5bca4daa
Ensure emails are disabled during this update routine
...
Closes #8758
2015-08-10 21:37:49 +01:00
Mike Jolley
77b2316d80
Merge pull request #8754 from JeroenSormani/is_on_sale
...
FIx is_on_sale bug on variable products
2015-08-10 15:43:35 +01:00
JeroenSormani
95609928ba
FIx is_on_sale bug on variable products
2015-08-10 16:36:40 +02:00
Mike Jolley
7363c85a2c
Get filtered variation prices #8753
2015-08-10 15:34:10 +01:00
Mike Jolley
318f399081
Small tidy for scruitinizer
2015-08-10 14:56:02 +01:00
Mike Jolley
d3f0fd1bb3
Correct docblocks
2015-08-10 14:42:10 +01:00
Mike Jolley
41e8cf74fb
Unused vars
2015-08-10 14:40:14 +01:00
Mike Jolley
f687a5a059
When setting up flat and international shipping during wizard, set availability based on base country
2015-08-10 11:03:36 +01:00
Mike Jolley
257010695e
Readme, versions, develop blog links
2015-08-10 10:39:08 +01:00
Brent Shepherd
a826330ad0
Reinstate default value for $items
...
That was (accidentally?) removed with SHA: 877e39064
Fixes "PHP Notice: Undefined variable: items" when attempting to get
line items of a type that does not exist on the order, like coupons.
2015-08-07 12:12:08 -07:00
Claudio Sanches
8bc5e9e284
Merge pull request #8747 from thenbrent/add_api_permissions_filter
...
Add permissions in scope filter
2015-08-07 15:25:00 -03:00
Brent Shepherd
1681b0f9d5
Add permissions in scope filter
...
To allow extensions to display the permissions API keys will provide
for their objects, in addition to the permissions for core WC objects.
2015-08-07 11:19:21 -07:00
Claudio Sanches
e9acb4f7cf
Fixed api keys migration for 2.4, closes #8746
2015-08-07 15:15:34 -03:00
Doug Smith
46536b6374
Minor grammar fixes to the update welcome message
2015-08-07 11:21:49 -05:00
Claudio Sanches
0a657fdd96
Added missing dot
2015-08-07 10:37:45 -03:00
Claudio Sanches
38aa17b67b
Fixed hardcoded string
2015-08-07 10:27:40 -03:00
Claudio Sanches
c0179c8bb2
Fixed a typo/extra end of line
2015-08-07 10:18:30 -03:00
Mike Jolley
877e390646
Remove $type from prepare
2015-08-07 14:06:19 +01:00
Mike Jolley
d6ceec0817
Flip esc_like and esc_sql, add %
2015-08-07 13:54:50 +01:00
Mike Jolley
800ae12552
Merge pull request #8742 from thenbrent/fix_truncated_key
...
Fix truncated_key value inserted on visual authentication request
2015-08-07 11:45:40 +01:00
Mike Jolley
5c9ac6a893
Avoid double escape when passing in arrays to sql queries. Use esc_sql
2015-08-07 11:37:19 +01:00
Mike Jolley
c5cba283ed
Remove numbered arguments from queries
2015-08-07 11:37:19 +01:00
Mike Jolley
fcbdd35223
Clean and escape API search
2015-08-07 11:37:19 +01:00
Mike Jolley
4c8ef3ff33
Use esc_sql on item type instead of esc_attr
2015-08-07 11:37:19 +01:00
Brent Shepherd
19a91e3afc
Fix truncated_key value inserted on visual auth
...
When inserting a new set of API keys via the visual API endpoint, only 5 format
values were specified in the 3rd param passed to the $wpdb->insert(); however,
6 values were specified in the 2nd param. This meant that the truncted_key value
was being formatted as an integer only the first numerical characters of the last
7 character of the consumer key were being stored. For example, given a consumer
key value of ck_e91f2aeae6c3dea3045293a3dbdf55c317ad762c the truncated_key value
should be 7ad762c but instead, it was being stored at 7.
2015-08-06 17:40:17 -07:00
Mike Jolley
ddd97b64c3
Remove white space to fix appearance of new rows
...
Fixes #8730
2015-08-06 11:38:46 +01:00
Mike Jolley
b91ccd32b9
Tweak wildcard tax handling to deal with 9 digit zip codes
...
Fixes #8736
2015-08-06 11:36:02 +01:00
Shiva Poudel
0d1c2dc4dc
Fix - calls for esc_*
2015-08-06 02:04:21 +05:45
George Stephanis
9269fd7432
Retooling how this is escaped.
...
Sanitize early, escape late. Rather than double escaping, I figured
it’d be better to sprintf it in, and then escape that string — closer
to the output.
Also, I’m not sure why `urlencode` was used to escape a name?
2015-08-05 15:18:47 -04:00
George Stephanis
c938fa24da
More missing esc_attr calls, :(
2015-08-05 15:17:52 -04:00
Claudio Sanches
b091f12393
Fixed some js conding standards
2015-08-05 15:57:15 -03:00
George Stephanis
95e6b84fbb
Make sure we esc_attr translation results
...
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
George Stephanis
29d9a7da8c
Found two missing `esc_js()` calls as well.
2015-08-05 14:10:10 -04:00
George Stephanis
c7ee929325
Partial _e() => esc_attr_e() changeover.
...
There’s a lot of them, so I’m breaking them into multiple commits.
This is safeguarding stuff in case some translation uses a double
quote, it will no longer risk breaking out of the attribute.
2015-08-05 14:10:09 -04:00
Claudio Sanches
47492fb273
Merge branch 'master' of github.com:woothemes/woocommerce
2015-08-05 15:03:05 -03:00
Claudio Sanches
054dfe0c7b
Changed default Underscore's template for wp.template in API Keys
2015-08-05 15:02:55 -03:00
Mike Jolley
7f3c2a78c5
Get total functions should respect rounding settings.
...
Closes #8707
2015-08-05 14:33:53 +01:00
Mike Jolley
737769174e
Customer class using wrong meta keys for address_1/shipping_address_1
...
Fixes #8717
2015-08-05 14:05:03 +01:00
Mike Jolley
e8ea978e9e
Merge pull request #8697 from JeroenSormani/define-ajax
...
Define DOING_AJAX early
2015-08-05 13:53:40 +01:00
Mike Jolley
afd0e9edd4
Pass $this to filters
...
#8722
2015-08-05 13:49:27 +01:00
Mike Jolley
ccbe22164b
Merge pull request #8722 from SiR-DanieL/cross-up-sells
...
Added cross and up sells IDs filters
2015-08-05 13:48:46 +01:00
Mike Jolley
c97f845d7f
Merge pull request #8727 from SiR-DanieL/order-items-fix
...
Fix possible fatal error on the order admin page
2015-08-05 13:48:11 +01:00
Mike Jolley
d222dd4c37
Don't apply product discount if price is already 0
...
Closes #8725
2015-08-05 13:45:32 +01:00
Nicola Mustone
bfb0aa95b3
fix possible fatal error on the order admin page
2015-08-05 14:10:23 +02:00
Nicola Mustone
9822edda0b
better naming
2015-08-05 13:54:20 +02:00
Nicola Mustone
9140ca0f76
added cross and up sells IDs filters
2015-08-05 11:01:47 +02:00
Claudio Sanches
2954707118
Fixed rest_api_allowed_post_types filter
2015-08-04 13:49:24 -03:00
Claudio Sanches
8bcc926c63
Allowed products into wp.com rest api to enable jetpack related posts feature, closes #8712
2015-08-03 18:36:25 -03:00
Mike Jolley
d6bd46c55d
Move expand_item_meta to own method
...
Fixes notices in some extensions (deposits)
2015-08-03 13:21:44 +01:00
Mike Jolley
ef798921aa
woocommerce_can_reduce_order_stock filter
...
Needed for extension (deposits)
2015-08-03 10:37:58 +01:00
toddlahman
50d659f380
fix for array_filter() expects parameter 1 to be array, boolean given
...
array_filter() expects parameter 1 to be array, boolean given
/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-
product.php(171)
$exclude is evaluated as a boolean.
2015-08-02 00:35:58 -07:00
Fredrik Rossland
841beb95a6
Found a typo, "Permissons"
...
Changed "Permissons" to "Permissions"
2015-08-01 19:42:10 +02:00
Brent Shepherd
501f0b752f
Save product type before saving variations
...
WooCommerce prior to WC 2.4 saved the product type before any variations were saved because
WC_Meta_Box_Product_Data::save_variations() was called by WC_Meta_Box_Product_Data::save().
However, in WC 2.4 the variations are saved independently of other data about the containing
variable product, including product type. Because the product type hasn't been saved yet,
extensions that need to save their own variation level meta data can't know when saving
variations if the product is of the type they want to act on. They also can't check `$_POST`
to find out when saving variations, because 'product-type' isn't passed to that as it's
variable level meta data, not variation level meta data.
This patch passes the product type along with the variation level meta data when saving variations.
It then uses that to save the product type if the variable product has not yet been saved (and
therefore the product type has never been stored, which means calling get_product() would instantiate
a 'simple' product, as that is the default product type). This can lead to fatal errors if callbacks
expect the product type to be variable and attempt to call methods that only exist on those product
types, like variable_product_sync().
It will also update the product type if it was previously saved but has since changed. This prevents
fatal errors like that mentioned above but caused by switching from one product type, like a simple
product, to another, like a variable product.
2015-07-31 11:42:21 -07:00
JeroenSormani
2c81a71f04
Define DOING_AJAX early
2015-07-31 20:15:17 +02:00
Mike Jolley
e7dfff8687
Update wording and add tooltip
...
#8690
2015-07-31 17:14:28 +01:00
Mike Jolley
61cb48afd7
Tweak wc ajax to post to the CURRENT URL rather than a fixed endpoint
2015-07-31 12:56:27 +01:00
Mike Jolley
82f50cedb0
Allow menu_order sorting like in 2.3
...
Also allow setting manually to allow sorting between pages.
Fixes #8690
2015-07-31 12:39:23 +01:00
Mike Jolley
763c7dde35
Fix product image size saving
...
Fixes #8695
2015-07-31 11:29:04 +01:00
Claudio Sanches
a215c4ed3c
[API] Fixed variation without parent for v2
2015-07-30 21:53:00 -03:00
Claudio Sanches
a42b25ec4e
Merge pull request #8692 from Nils-Fredrik/master
...
Fix for #8691 : Variation without parent will not cause 500.
2015-07-30 21:51:13 -03:00