Commit Graph

10939 Commits

Author SHA1 Message Date
Claudio Sanches 7fd1c539a7 Merge branch 'master' of github.com:woothemes/woocommerce 2015-02-10 14:44:40 -02:00
Claudio Sanches 22c4f02bbf Used filtered comment for woocommerce_new_customer_note action, closes #7349 2015-02-10 14:44:28 -02:00
Claudio Sanches 9f7683e81b Merge pull request #7348 from RistoNiinemets/master
add input_class to all form field types
2015-02-10 14:38:36 -02:00
Claudio Sanches 736ed330c8 Fixed a typo in the frontend colors notice 2015-02-10 14:08:05 -02:00
Claudio Sanches a01a4dd171 Updated the .pot files 2015-02-10 14:02:09 -02:00
Claudio Sanches af99be8ffc Improved the tracking notice 2015-02-10 14:01:51 -02:00
Risto Niinemets 215bb8841d add input_class to all form field types 2015-02-10 17:41:34 +02:00
Claudio Sanches 0558c3c286 Added woocommerce_product_get_rating_html filter for WC_Product class, closes #7337 2015-02-10 13:01:04 -02:00
Claudio Sanches 80b0f6c494 Updated the .pot files 2015-02-10 12:45:25 -02:00
Claudio Sanches edac0b00c7 Fixed the remote post and get messages in status report 2015-02-10 12:16:25 -02:00
Claudio Sanches 6ca681ce86 Added new filters to help translation plugins, closes #7338 2015-02-10 10:51:44 -02:00
Claudio Sanches a92156337b Fixed the textdoamin in searchform 2015-02-10 10:41:38 -02:00
Mike Jolley 840efcaa00 is_on_sale should compare type Fixes #7344 2015-02-10 12:34:53 +00:00
Mike Jolley d93d00271d Use WP hook so we have access to query vars
Fixes #7341
2015-02-10 12:23:15 +00:00
Mike Jolley 78be4ad128 Upgrade routine for woocommerce_default_customer_address
Closes #7334
2015-02-10 11:49:09 +00:00
Mike Jolley 893babaaef woocommerce_product_get_weight filter Closes #7319 2015-02-10 11:18:38 +00:00
Mike Jolley 67610286f7 Merge pull request #7321 from shivapoudel/uninstall
No require global wp_roles as executing method via WC_Install::remove_ro...
2015-02-10 10:45:44 +00:00
James Koster f49ae4ce35 state select. closes #7316 2015-02-10 09:45:52 +00:00
Mike Jolley 1ec64a264d Merge pull request #7335 from om4james/geolocation-external-ip-fix
Geolocation: strip whitespace when obtaining external IP
2015-02-09 23:58:59 +00:00
James Collins 7e20fb9a3d Use wc_clean to trim and sanitize external IP
As per suggestion from @claudiosmweb, wc_clean() is more full featured than trim().

See #7335
2015-02-10 07:54:26 +08:00
James Collins 9c79a18edd Merge branch 'master' into geolocation-external-ip-fix 2015-02-10 07:40:32 +08:00
Claudio Sanches 3d540141ea Merge pull request #7333 from om4james/fixnotices
Fix 2 undefined index notices when editing/saving a product
2015-02-09 09:24:09 -02:00
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
Claudio Sanches 2ca799378f Merge pull request #7323 from bryceadams/patch-7317b
Return (first) role of user in customer API endpoint
2015-02-07 23:25:26 -02:00
Bryce deb4acd5a2 Return (first) role of user in customer API endpoint 2015-02-07 13:08:48 +07:00
shivapoudel 3b3cb844b2 No require global wp_roles as executing method via WC_Install::remove_roles 2015-02-06 21:05:14 +05:45
Mike Jolley 0939cf0e01 Fix product cats notice Closes #7298 2015-02-05 11:36:33 +00:00
Mike Jolley 7b144dce1d Merge pull request #7296 from RistoNiinemets/master
JS "hide_variation" hook
2015-02-05 11:27:43 +00:00
Mike Jolley c8ffc4e5a1 Removing hhvm until Claudio fixes our config :) 2015-02-05 11:23:53 +00:00
Mike Jolley f5ff10711d Merge pull request #7297 from shivapoudel/docblocks
Docblocks Fixes
2015-02-05 11:23:06 +00:00
Claudio Sanches 6ca08cc6b1 Updated the .pot files 2015-02-05 06:51:59 -02:00
Claudio Sanches 92e3951de6 Merge pull request #7307 from bryceadams/patch-7306
Add Gisborne to New Zealand States
2015-02-05 06:49:53 -02: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 d619ef4065 Add Gisborne to New Zealand States
Ref: http://www.wikiwand.com/en/Regions_of_New_Zealand

Closes #7306
2015-02-05 13:46:15 +07: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
James Koster 8f4c1e184f removed a couple of duplicates 2015-02-04 16:46:46 +00:00
James Koster a068e680f0 Storefront section in readme. 2015-02-04 16:40:13 +00:00
shivapoudel dcdf00e06f Cleanup WC_Admin_Permalink_Settings 2015-02-04 22:12:06 +05:45
shivapoudel db012b03df Cleanup WC_Unit_Test_Case 2015-02-04 22:07:52 +05:45
shivapoudel b207391041 Unit Test docblock comment for setUp 2015-02-04 22:03:01 +05:45
shivapoudel d6b44d9369 Docblocks cleanup for WC_Post_types 2015-02-04 21:59:14 +05:45
Risto Niinemets d9e63dcbb2 "hide_variation" hook 2015-02-04 18:08:14 +02:00
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