Commit Graph

4099 Commits

Author SHA1 Message Date
James Collins b5cc22e8f5 Geolocation: strip whitespace when obtaining external IP
The "ip.appspot" service returns an IP address plus a  new line character in its response.

An example response from "ip.appspot" is:

```123.123.123.123\n```

This fix strip whitespace from the response before proceeding.
2015-02-09 14:00:05 +08:00
James Collins 0bbb4464ab Fix 2 undefined index notices when editing/saving a product
Fixes:

Notice: Undefined index: upsell_ids in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 1202
Call Stack
#	Time	Memory	Function	Location
1	0.0110	486692	{main}( )	../post.php:0
2	4.7790	60047856	edit_post( ??? )	../post.php:229
3	4.7917	60075016	wp_update_post( ???, ??? )	../post.php:321
4	4.7930	60089156	wp_insert_post( ???, ??? )	../post.php:3572
5	4.9212	60223012	do_action( ???, ???, ???, ??? )	../post.php:3499
6	4.9213	60224380	call_user_func_array ( ???, ??? )	../plugin.php:496
7	4.9213	60224412	WC_Admin_Meta_Boxes->save_meta_boxes( ???, ??? )	../plugin.php:0
8	7.2460	60224516	do_action( ???, ???, ??? )	../class-wc-admin-meta-boxes.php:207
9	7.2539	60199340	call_user_func_array ( ???, ??? )	../plugin.php:496
10	7.2890	60735660	WC_Meta_Box_Product_Data::save( ???, ??? )	../plugin.php:0

( ! ) Notice: Undefined index: crosssell_ids in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 1203
Call Stack
#	Time	Memory	Function	Location
1	0.0110	486692	{main}( )	../post.php:0
2	4.7790	60047856	edit_post( ??? )	../post.php:229
3	4.7917	60075016	wp_update_post( ???, ??? )	../post.php:321
4	4.7930	60089156	wp_insert_post( ???, ??? )	../post.php:3572
5	4.9212	60223012	do_action( ???, ???, ???, ??? )	../post.php:3499
6	4.9213	60224380	call_user_func_array ( ???, ??? )	../plugin.php:496
7	4.9213	60224412	WC_Admin_Meta_Boxes->save_meta_boxes( ???, ??? )	../plugin.php:0
8	7.2460	60224516	do_action( ???, ???, ??? )	../class-wc-admin-meta-boxes.php:207
9	7.2539	60199340	call_user_func_array ( ???, ??? )	../plugin.php:496
10	7.2890	60735660	WC_Meta_Box_Product_Data::save( ???, ??? )	../plugin.php:0
2015-02-09 11:51:33 +08:00
Bryce deb4acd5a2 Return (first) role of user in customer API endpoint 2015-02-07 13:08:48 +07:00
Mike Jolley 0939cf0e01 Fix product cats notice Closes #7298 2015-02-05 11:36:33 +00:00
Mike Jolley f5ff10711d Merge pull request #7297 from shivapoudel/docblocks
Docblocks Fixes
2015-02-05 11:23:06 +00:00
Claudio Sanches 1a38cecb8c Merge pull request #7305 from bryceadams/patch-7302
Fix notice when invalid order id / email used
2015-02-05 06:49:20 -02:00
Claudio Sanches 0749fe752d Merge pull request #7304 from bryceadams/patch-7301
Fix fatal error on /my-account/view-order/ endpoint
2015-02-05 06:48:37 -02:00
Claudio Sanches 00916b9e29 Merge pull request #7303 from mattallan/matt/wc-api-orders-tweaks
WC_API_Orders: pass data var to new wrappable api function.
2015-02-05 06:46:34 -02:00
Bryce d36af4b721 Fix notice when invalid order id / email used
We also need to check if the $order object exists. Closes #7302
2015-02-05 13:03:13 +07:00
Bryce 888622a621 Fix fatal error on /my-account/view-order/ endpoint
When no order number is set this causes a fatal error. This check for
the $order object should be sufficient.

Closes #7301
2015-02-05 12:55:33 +07:00
matttallan 6531eb0373 pass data var to wrappable api function. 2015-02-05 15:43:05 +10:00
shivapoudel dcdf00e06f Cleanup WC_Admin_Permalink_Settings 2015-02-04 22:12:06 +05:45
shivapoudel d6b44d9369 Docblocks cleanup for WC_Post_types 2015-02-04 21:59:14 +05:45
shivapoudel fa6a99bd1d Docblocks cleanup for WC_Frontend_Scripts 2015-02-04 21:52:33 +05:45
shivapoudel cb57c7e709 Docblocks cleanup for WC_Comments 2015-02-04 21:44:42 +05:45
Mike Jolley 782aa34808 Merge pull request #7291 from bryceadams/patch-7289
Allow people to override roles when querying customers API
2015-02-04 15:20:48 +00:00
Mike Jolley 7795f69f51 Update wording to include refunds
Closes #7290
2015-02-04 15:14:02 +00:00
Mike Jolley 3154b08d3e Replace CDN select2 with local copy
Closes #7287
2015-02-04 15:00:14 +00:00
Mike Jolley 2a877eb562 Do a db query to flush spent and count which may be incorrect/outdated
Closes #7286
2015-02-04 14:22:15 +00:00
Mike Jolley 3691a8fdfb Fix thumbnail notice
Closes #7292
2015-02-04 14:04:02 +00:00
Mike Jolley 5bb4b7739f Fix IDS param Closes #7288 2015-02-04 12:44:30 +00:00
Bryce 1e9349a585 Remove $wpdb and $blog_id 2015-02-04 19:33:25 +07:00
Bryce d0e0a6be6b Change so only single role can be set in role param 2015-02-04 19:31:14 +07:00
Bryce 0f927acdd3 Allow people to override roles when querying customers API
Just fixing core
and closes #7289
2015-02-04 18:59:25 +07:00
Mike Jolley 6af80f8e60 Merge pull request #7280 from mattallan/matt/wc-api-orders-tweaks
Some more tweaks to WC API Orders
2015-02-04 11:46:33 +00:00
Mike Jolley 7b294c7cbf Prevent meta boxes being saved multiple times 2015-02-04 11:35:02 +00:00
matttallan e5c3385d3b Change private wc-api method to protected.
Mainly so that it can be used in the new Subscriptions API :)
2015-02-04 11:38:38 +10:00
matttallan f3fbbdeecc Use validate_request() to avoid duplicate code. 2015-02-04 11:38:36 +10:00
matttallan cd085f2adc add an overrideable function to a create custom post.
Especially handy for WC Subscriptions seeing as they extend the Abstract
Order Class.
2015-02-04 11:16:11 +10:00
matttallan c2520a528b changes to avoid writing duplicated code 2015-02-04 09:59:02 +10:00
Mike Jolley b2e979640c Removed unused vars 2015-02-03 16:24:01 +00:00
Mike Jolley ffd512a55e Why assign $the_product to itself? 2015-02-03 16:14:56 +00:00
Mike Jolley 037242a9a2 More docblock tweaks 2015-02-03 16:03:28 +00:00
Mike Jolley 55baf7b60a Missing properties 2015-02-03 15:55:51 +00:00
Mike Jolley 35f006d282 This can return a bool 2015-02-03 15:55:40 +00:00
Mike Jolley 9bc1b09fc5 Undefined and dead variables in checkout class 2015-02-03 15:27:40 +00:00
Mike Jolley 0300ce2768 Undefined and dead variables in cart class 2015-02-03 15:23:25 +00:00
Mike Jolley 133e85560f Dead var 2015-02-03 15:08:54 +00:00
Mike Jolley 27a7a58e8c Can return wp_error 2015-02-03 15:08:36 +00:00
Mike Jolley c01fe87d69 Cast to array 2015-02-03 15:06:15 +00:00
Mike Jolley 74abdf27c9 Cast to array 2015-02-03 15:06:08 +00:00
Mike Jolley 03cf7fa572 Fix potential notice 2015-02-03 14:57:04 +00:00
Mike Jolley 2809986fcf Dead var 2015-02-03 14:56:01 +00:00
Mike Jolley c814a9fa23 docblock corrections 2015-02-03 14:44:57 +00:00
Mike Jolley 1ef8a24ec9 These should be default_attr, not attribute 2015-02-03 14:44:57 +00:00
Mike Jolley 84fad56258 No return needed 2015-02-03 14:44:57 +00:00
Mike Jolley f032a9c7dd Missing props 2015-02-03 14:44:57 +00:00
Mike Jolley caff5c3a66 Remove dead var api_class 2015-02-03 14:44:57 +00:00
Mike Jolley 10a819bd45 Use coupon_amount in api 2015-02-03 14:44:57 +00:00
Scrutinizer Auto-Fixer de06d17c6d Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-02-03 14:32:10 +00:00
Mike Jolley a54b9c61e2 Define coupon magic props 2015-02-03 14:20:46 +00:00
Mike Jolley 81515fddbe Incorrect api docblock 2015-02-03 14:17:49 +00:00
Mike Jolley 4c3a58c957 Undefined product_ids_titles 2015-02-03 14:12:48 +00:00
Mike Jolley fc826de960 Dead vars in category report 2015-02-03 14:12:04 +00:00
Mike Jolley ff2b0db69b Undefined var customers 2015-02-03 14:10:03 +00:00
Mike Jolley 7acfc0b7f2 Dead var 2015-02-03 14:09:54 +00:00
Mike Jolley 7694f8039c Dead vars when saving variations 2015-02-03 14:08:43 +00:00
Mike Jolley f93e027b09 validate_multiselect_field had dead var 2015-02-03 14:05:09 +00:00
Mike Jolley 447ee6e7bb Docblocks 2015-02-03 14:02:38 +00:00
Mike Jolley c11d283ddc Still trying to get scruit to pick up these variables. Testing a few variations. 2015-02-03 13:49:04 +00:00
Mike Jolley f711ef32ce Missing bracket in previous commit #copypastefail 2015-02-03 13:16:41 +00:00
Mike Jolley 7c019c0c50 More docblocks; the check for WP_POST isn't needed as the second case (isset) runs regardless and is true for posts 2015-02-03 13:13:07 +00:00
Mike Jolley c038001eab Docblocks for order/product 2015-02-03 12:57:08 +00:00
Mike Jolley dc5b8d9710 @var 2015-02-03 12:28:15 +00:00
Mike Jolley 52c84f407c Fix download save after adding with ajax 2015-02-03 10:57:43 +00:00
Mike Jolley 086d0195ce Download should expire at midnight Fixes #7269 2015-02-03 10:57:43 +00:00
Mike Jolley d68dc3c6e0 Merge pull request #7272 from bryceadams/patch-7270
Fix 5.2 func_args issue
2015-02-03 10:22:07 +00:00
Mike Jolley d46158cc8a Merge pull request #7271 from michaeltieso/patch-1
Customer New Account message clarification
2015-02-03 10:06:52 +00:00
Bryce e6038486d9 Fix 5.2 func_args issue 2015-02-03 11:06:50 +07:00
Claudio Sanches 566f1ea7b6 Make possible to show log by URL
@mikejolley
2015-02-02 21:58:25 -02:00
Michael Tieso 933fe5ff57 Customer New Account message clarification
Suggestion for clarification that this goes to the customer, not admin.
2015-02-02 15:41:12 -08:00
Mike Jolley cac9035c6f Updated jquery-payment lib 2015-02-02 16:20:03 +00:00
Mike Jolley 31806595f4 Merge pull request #7268 from franticpsyx/remove_restore_hooks
[2.3] Allow extensions to add support for the remove/restore cart item functionality
2015-02-02 15:07:06 +00:00
Mike Jolley 1785d48096 Update rating text
Based on feedback from Marina and James, cc @bftrick
2015-02-02 14:53:13 +00:00
Mike Jolley 16eb1facd9 Add link to payment_status_canceled_reversal Closes #7267 2015-02-02 14:49:30 +00:00
Mike Jolley d0daa1ecee Tweak reset_admin_notices to add, not remove, notices
Fixes #7254
2015-02-02 14:40:11 +00:00
Manos Psychogyiopoulos f8567680da added remove/restore cart item hooks 2015-02-02 16:01:43 +02:00
Mike Jolley 35b09bf282 Merge pull request #7266 from woothemes/hotfix-tracker-updates
Tracker Tweaks
2015-02-02 12:48:20 +00:00
Gerhard 28385b8868 Update usage tracking notice link 2015-02-02 14:40:52 +02:00
Mike Jolley e810672430 Remove reference to deprecated property
Closes #7249
Closes #7248
2015-02-02 12:38:37 +00:00
Gerhard f5bdcecf0b Add WC version to tracking data. 2015-02-02 14:37:00 +02:00
Mike Jolley 370ccc95c3 Merge pull request #7259 from bryceadams/patch-7258
Extra currency options for API
2015-02-02 12:32:42 +00:00
Jack Gregory 836a87d6e7 Add hook to admin product advanced data 2015-02-01 15:17:07 +00:00
Bryce 0d656dfa23 fix spacing 2015-02-01 14:24:29 +07:00
Bryce a582481c13 Extra currency options for API
* `currency_position`
* `thousand_separator`
* `decimal_separator`
2015-02-01 14:22:41 +07:00
Tamara Zuk c1100fbce5 Reviews meta box: avoid undefined index notice
Avoids a notice when updating some Product Reviews Pro review types
2015-01-31 14:05:51 -05:00
msdesign21 2e76a58385 Update html-notice-template-check.php
Would also be nice to include a direct link when we mention the System Status report. Wasn't sure the best way to do that.
2015-01-30 15:34:25 -05:00
Claudio Sanches 05a011376d Updated the api docs url 2015-01-30 13:32:23 -02:00
Mike Jolley 6bc269858a tweak docblock 2015-01-30 14:30:10 +00:00
Mike Jolley a3e323f4e0 Define vars passed to addons view 2015-01-30 14:21:49 +00:00
Claudio Sanches d6023818fd Fixed the increase and decreate of coupons usage count 2015-01-30 12:14:34 -02:00
Mike Jolley d6ee40191c Split webhooks column_default into multiple columns 2015-01-30 13:57:45 +00:00
Claudio Sanches a87f852122 Make it easy to find all orders that use a coupon #6925 2015-01-30 11:47:32 -02:00
Barry Kooij e41841cee3 Round net_sales in API to 2 decimals 2015-01-30 14:33:13 +01:00
Barry Kooij 7a92094b72 Added net_sales to API reports response. 2015-01-30 14:29:10 +01:00
Barry Kooij 5435c16a3b API code standards 2015-01-30 14:28:53 +01:00
Barry Kooij 746a46778d Fixed sales data in API so it matches the WC reports page.
Fixes #7233
2015-01-30 14:28:35 +01:00
Claudio Sanches 242dbe1bc0 [API] product visible by default 2015-01-30 11:08:17 -02:00
Claudio Sanches 129f78a761 Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-30 11:01:08 -02:00
Claudio Sanches ce569c153b [API] Set default product visibility 2015-01-30 11:00:57 -02:00
Mike Jolley 9f8a7d1199 Remove datepicker icon's and use focus event 2015-01-30 12:54:33 +00:00
Claudio Sanches 1a3617c55b Improved the select fields in webhooks ui 2015-01-30 10:31:43 -02:00
Bryce 171f189f70 Update URL to link to review form
Closes #7243
2015-01-30 18:26:01 +07:00
Claudio Sanches def250e912 Display taxes labels in order totals when order has refunded, closes #7229 2015-01-29 18:50:08 -02:00
Claudio Sanches d3ac28fbb3 Check if product is published, closes #7220 2015-01-29 16:30:07 -02:00
Claudio Sanches afb19715d4 Prevented XSS in urls 2015-01-29 12:33:06 -02:00
Claudio Sanches 7890095ba0 Fixed the webhooks topic saving, closes #7236 2015-01-29 11:11:35 -02:00
Claudio Sanches 7eb3ec9a4a Admin footer text improvements #7234
@BFTrick @mikejolley
2015-01-29 10:41:39 -02:00
Claudio Sanches 85adccb416 Merge pull request #7234 from BFTrick/iss-7213
Adding Please Rate Our Plugin Footer Text
2015-01-29 10:37:28 -02:00
Claudio Sanches f7e24c0b77 Fixed more typos 2015-01-29 01:31:03 -02:00
Claudio Sanches 80b70c79f1 Fixed a typo in status report 2015-01-29 00:54:46 -02:00
Patrick Rauland e7224cdc1d using wc_get_screen_ids instead of manually typing them out. see #7213 2015-01-28 17:20:38 -07:00
Patrick Rauland ee11ac6080 adding please rate our plugin footer text. closes #7213 2015-01-28 17:13:13 -07:00
Mike Jolley c2c1e733ba Typo #7216 2015-01-28 21:03:09 +00:00
Mike Jolley 15fa903537 install() is triggered after includes, so these includes are not needed 2015-01-28 19:46:09 +00:00
Brent Shepherd 3702b77c74 Fix "Undefined variable: identity_token"
And make sure the identify token is passed to `WC_Gateway_Paypal_PDT_Handler`
2015-01-28 10:59:48 -08:00
Mike Jolley 725d5e28d8 Additional tweaks to @b2c573ed8a04a8d425a73e018a450179514cbdc7
- Load API with other includes
- Register activation hook early
- Include autoloader early

cc @claudiosmweb
2015-01-28 17:50:58 +00:00
Mike Jolley f3cc45cfa9 Grammar corrections
Closes #7216
2015-01-28 17:15:48 +00:00
Mike Jolley 8a42b1c211 Revert earlier change where PayPal IPN was on or off depending on PDT.
Because IPN is used for future events such as refunds it should not be
disabled. @claudiosmweb
2015-01-28 17:15:48 +00:00
Claudio Sanches a723cfb256 Fix the cleanup of reviews transients, closes #7214
@mikejolley

Please enter the commit message for your changes. Lines starting
2015-01-28 15:09:37 -02:00
Brent Shepherd 3a1dc68ff9 Fix typo 2015-01-27 14:42:36 -08:00
Brent Shepherd 60a161aa93 Fix session expired notice on checkout 2015-01-27 14:14:17 -08:00
Mike Jolley 59359ef9b4 Try catch block in add_to_cart to allow plugins to abort the add to cart event
cc @claudiosmweb @barrykooij
2015-01-27 16:02:57 +00:00
Mike Jolley 2e38fc9041 Removed ID check - $the_coupon->is_valid() checks for existance 2015-01-27 12:11:58 +00:00
Claudio Sanches 5f63425e0a [API] Fixed the deleted type for refunds 2015-01-26 19:39:33 -02:00
Claudio Sanches cd88ac0d72 [API] Fixed the refunds returned data 2015-01-26 19:24:54 -02:00
Claudio Sanches c995f23354 Fixed WC_Abstract_Order coupon methods
@mikejolley
2015-01-26 16:48:03 -02:00
Claudio Sanches 8ff08e70af Fixed the WC_Abstract_Order::get_user_id() return type and fixed the orders customer_id 2015-01-26 14:41:19 -02:00
Claudio Sanches 4774646a0e [API] Removed cart_discount, we have now only total_discount 2015-01-26 14:24:59 -02:00
Mike Jolley 0f5c6c4219 Add error handler/debug info in checkout ajax #7176 2015-01-26 14:24:03 +00:00
Mike Jolley 54e025939b Use get_post_status to avoid out of date order data.
Partly related to #7208
2015-01-26 13:07:29 +00:00
Mike Jolley 7e1ca1d3a3 Option to choose EITHER PDT or IPN
Closes #7208
2015-01-26 12:58:33 +00:00
Mike Jolley 0b252d03f4 Added conditional to unset session itself
Closes #7182
2015-01-26 11:42:24 +00:00
Mike Jolley 2a95402d22 Merge pull request #7201 from thenbrent/fix_wc_product__isset
[2.3] Do not set WC_Product property when calling __get()
2015-01-26 11:38:21 +00:00
Jason Conroy eae7bde755 Allow devs to filter is_checkout()
This is useful for extensions like WooCommerce One Page Checkout where the "checkout" may not be the default one used by WooCommerce core.
2015-01-24 21:35:35 +11:00
Brent Shepherd 95d87e28d6 Do not set property when calling __get()
SHA: 100b95a tweaked the `__get()` magic method in `WC_Product` to:
 * only call `get_post_meta()` once; and
 * set `$this->$key` to save the overhead of calling `__get()` every
   time that property needs to be accessed.

However, in the process, it also set an empty value (`''`) - the default
return value of `get_post_meta()` for every single value accessed on
the product object, meaning that any calls to `isset()` after attempting
to get that value would return `true`, even if `metadata_exists()` for
that property would return false (and no value is set in memory).
2015-01-23 15:01:10 -08:00
Claudio Sanches 177bcbe7d5 Removed unused code 2015-01-23 16:34:43 -02:00
Claudio Sanches 04c584ccf6 Added properties docs for abstract product class 2015-01-23 15:51:33 -02:00
Claudio Sanches 560d7d24ee Fixed the tracking opt-out 2015-01-23 15:20:09 -02:00
Mike Jolley e52611bbc3 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	includes/class-wc-tracker.php
2015-01-23 16:38:44 +00:00
Mike Jolley 5ffaf97397 Only load tracking during cron and move notices to notices class 2015-01-23 16:36:52 +00:00
Claudio Sanches a1462ccf26 Merge pull request #7198 from splashingpixels/theme-support-notice
fixed theme-support notice closes #7196
2015-01-23 14:32:51 -02:00
Claudio Sanches 71558c449f Improved the WC_Tracker::get_theme_info() version compare 2015-01-23 14:29:10 -02:00
Claudio Sanches b1c5e19d56 Improved the system status report script 2015-01-23 14:19:06 -02:00
splashingpixels 6c61bf8c4c fixed theme-support notice closes #7196 2015-01-23 08:15:31 -08:00
Mike Jolley a9103ad01a Opt-in tracking: move link out of localisation 2015-01-23 15:37:53 +00:00
Gerhard d09df4fc0f Merge branch '6711-opt-in-tracking' 2015-01-23 17:31:01 +02:00
Gerhard 8610ca6aef Merge branch 'master' into 6711-opt-in-tracking
Conflicts:
	includes/admin/class-wc-admin-status.php
2015-01-23 17:30:11 +02:00
Gerhard afca781480 Add link to tracking doc. 2015-01-23 17:15:55 +02:00
Scrutinizer Auto-Fixer 19f660171e Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-01-23 14:37:20 +00:00
Mike Jolley 7f2a943075 Docblocks 2015-01-23 14:35:17 +00:00
Mike Jolley 8db443799b Remove void/access public docblocks 2015-01-23 14:01:00 +00:00
Mike Jolley 1163e2af0b Leave session data alone before calculation #7182 2015-01-23 13:58:38 +00:00
Claudio Sanches 9f4e3ed409 Merge branch 'master' of github.com:woothemes/woocommerce 2015-01-23 11:49:00 -02:00
Claudio Sanches f0c63b1fee Restore all items from session, closes #7180 2015-01-23 11:48:49 -02:00
Mike Jolley 09ae877b96 defined check 2015-01-23 13:29:23 +00:00
Mike Jolley 2d707689d9 Add transient cache to webhooks Closes #7184 2015-01-23 13:28:30 +00:00
Mike Jolley b289c9446c WC_INSTALLING constant - don't create options for any gateways/shipping methods during install. 2015-01-23 13:05:38 +00:00
Claudio Sanches 517fe717dd Fixed chmod 2015-01-23 10:59:41 -02:00
Claudio Sanches da16c4ac29 Improved emogrifier emogrify() 2015-01-23 10:46:06 -02:00
Claudio Sanches ea908283a3 Make emogrifier works with PHP 5.2, closes #7179 2015-01-23 10:41:15 -02:00
Mike Jolley 586025b17e Ensure settings are installed for all sections and subsections
Fixes #7181
2015-01-23 12:36:22 +00:00
Mike Jolley 2584041700 wc_price enhancements
- Renamed some 2.3 methods for consistency
- Allow more args to be passed to wc_price to control output
- Filter wc_price args which Closes #7188
- wc_get_price_decimal_separator function
- wc_get_price_thousand_separator function
- wc_get_price_decimals function
2015-01-23 11:50:32 +00:00
Mike Jolley 186f223d92 Fix indents in #7174 2015-01-23 11:17:27 +00:00
Mike Jolley 69bf2afda9 Merge pull request #7174 from aelia-co/master
Added/altered product filters to make them work consistently
2015-01-23 11:16:27 +00:00
Mike Jolley 5695f514ed get_session_data() check to see if user has session before getting option
Closes #7185
2015-01-23 11:14:30 +00:00
Mike Jolley e8d47748ea Session handler doc blocks 2015-01-23 11:14:30 +00:00
Gerhard b4997a7da4 Update tracker notice message. 2015-01-23 12:27:19 +02:00
Gerhard efb15ab1c4 Adjust user agent string 2015-01-23 09:15:16 +02:00
Gerhard 4e8b7327ca Switch to https for encryption. 2015-01-23 09:13:07 +02:00
Claudio Sanches eb68b1d688 [API] Fixed the products reviews ID type 2015-01-22 22:04:03 -02:00
Claudio Sanches 78fe840499 [API] Fixed the properties for save downloadable files in products endpoint #5942 2015-01-22 19:20:05 -02:00
Claudio Sanches 3561c63ec1 [API] Fixed the default_attributes name and prevent errors with the old param 2015-01-22 18:49:09 -02:00
Claudio Sanches bfb5329a55 [API] Fixed the WC_API_Products::get_attribute_taxonomy_by_slug() 2015-01-22 18:38:39 -02:00
Claudio Sanches ece4f00a71 [API] Prevent "PHP Notice: Trying to get property of non-object" errors 2015-01-22 17:22:21 -02:00
Diego Zanella dbeeb6d7b5 Fixed bug in is_on_sale() method 2015-01-22 16:05:59 +00:00
Mike Jolley 6b39849be2 Functions: wc_price_decimal_separator, wc_price_thousand_separator with defaults.
Closes #7167
2015-01-22 16:05:47 +00:00
Claudio Sanches 1dafa5d3cd [API] Fixed the download limit and expiry to accept empty string as unlimited/never value 2015-01-22 11:15:52 -02:00
Diego Zanella 04bf4fecd2 Added/altered product filters to make them work consistently
* WC_Product_Variable::get_variation_regular_price() now always calls the "woocommerce_get_variation_regular_price" filter (removed early exit).
* WC_Product_Variable::get_variation_sale_price() now always calls the "woocommerce_get_variation_sale_price" filter (removed early exit).
* WC_Product_Variable::is_on_sale() now calls the "woocommerce_product_is_on_sale" filter.
* WC_Product_Grouped::is_on_sale() now calls the "woocommerce_product_is_on_sale" filter.
2015-01-22 13:02:43 +00:00
James Koster 44fd8f69cf child theme context. closes #7173 2015-01-22 10:36:15 +00:00
Claudio Sanches bdf88d2323 [API] Allow edit the comment status in products endpoint using the reviews_allowed param 2015-01-21 21:09:08 -02:00
Claudio Sanches ffbafbf652 Prevent errors in webhook log display 2015-01-21 14:25:33 -02:00
Mike Jolley e3b360c138 Tweak to process_reset_password 2015-01-21 14:59:44 +00:00
Mike Jolley 204d1ae166 2 empties as PHP < 5.5 doens't like the join 2015-01-21 14:25:59 +00:00
Mike Jolley 064f2ebe17 Fix multiple product section in coupon section. Fixes #7170 2015-01-21 14:24:39 +00:00
Mike Jolley 10dac6fedd process_lost_password/process_reset_password 2015-01-21 14:15:52 +00:00
Claudio Sanches ec6039794a [API] Fixed the datetime format for WC_API_Customers::get_customer_downloads() 2015-01-21 10:38:33 -02:00
Claudio Sanches de4d70d16a Fixed the product_id type in wc_get_customer_available_downloads() 2015-01-21 10:21:42 -02:00
Claudio Sanches 5a8ecf3947 Merge pull request #7168 from woothemes/utm-links
Storefront Notice Fixes
2015-01-21 09:10:20 -02:00
Mike Jolley 59b902b50d Refactor menu_highlight 2015-01-21 11:06:55 +00:00
Gerhard d2b6673eef Add utm params to the storefront link 2015-01-21 07:33:22 +02:00
Gerhard 07d728f851 Link to storefront and not hightwind in theme search. 2015-01-21 07:25:01 +02:00
Claudio Sanches 4e2ae38233 [API] Fixed the expiry date when create a new coupon 2015-01-20 17:57:27 -02:00
Claudio Sanches 183d6ce62c [API] Fixed create coupon attributes 2015-01-20 17:03:21 -02:00
Mike Jolley 51c6f7f670 Clean up process_registration() 2015-01-20 16:05:08 +00:00
Mike Jolley 2d8f021cc7 Optimise the admin notices class.
@claudiosmweb
2015-01-20 15:23:34 +00:00
Mike Jolley 91de767442 Product constructor setting post incorrectly 2015-01-20 14:00:30 +00:00
Mike Jolley 22f68af061 These should be arrays 2015-01-20 13:50:25 +00:00
Mike Jolley 5404006b29 MAP Url method 2015-01-20 13:31:02 +00:00
Mike Jolley de4129f9b2 WP_POST docs 2015-01-20 13:20:22 +00:00