Gerhard
21ad281850
Add new wc_uasort_comparison function
2018-10-31 07:38:38 +02:00
Claudiu Lodromanean
59d60debb7
Merge pull request #21757 from woocommerce/fix/21730
...
Use array instead of string to define class for address line 2 input on checkout
2018-10-30 11:35:49 -07:00
Claudiu Lodromanean
b282ea9e89
Merge pull request #21749 from woocommerce/fix/21746
...
Fix get_cart_from_session infinite loop
2018-10-30 11:04:28 -07:00
Rodrigo Primo
bdb8f26d44
Use array instead of string to define class for address line 2 input on checkout
...
Doing this to be consistent with the other instances where a class is added to one of the checkout fields and thus make it easier for third-parties to add classes to checkout fields.
2018-10-30 14:59:08 -03:00
Claudiu Lodromanean
aa8caacf9c
Merge pull request #21675 from woocommerce/fix/21660
...
Removed non-existing WC_Product_Simple->set_date_created_gmt method
2018-10-30 10:47:02 -07:00
nishitlangaliya
e7b9056c58
fix: global table included along with multisite tables
2018-10-30 20:50:09 +05:30
Gerhard
560a49a3b2
Use a cleaner approach to prevent loading cart from session to call itself.
2018-10-30 11:58:39 +02:00
Gerhard
b808c70c44
Do not populate cart from session when ordering again and using the get_cart in a hook, the order again functionality already loads the cart from session, which get_cart does as well causing infinite loops.
2018-10-30 11:52:00 +02:00
Md. Saiful Islam
285151843f
compare with $request['id'] instead of $term
2018-10-30 11:36:16 +06:00
Claudiu Lodromanean
83c71f053b
Merge pull request #21703 from woocommerce/fix/21702
...
Update product block editor hook for WP 5.0
2018-10-29 16:12:51 -07:00
Claudio Sanches
f765b47cbf
Make easy to register new REST API versions into webhooks
...
Closes #21697
2018-10-29 19:31:47 -03:00
Claudiu Lodromanean
94ab419988
Merge pull request #21744 from woocommerce/tweak/add-get-cart-contents-filter
...
Introduce a new filter for 'get_cart_contents'
2018-10-29 13:29:05 -07:00
Boro Sitnikovski
8c6226e7bd
Introduce a new filter for 'get_cart_contents'
2018-10-29 21:08:22 +01:00
Rodrigo Primo
fce22a705f
Reapply change made in c765ce644d
...
Reverting commit 61c7abc
in commit ece9f02776
, overrode a unrelated change made to the same code in another PR by commit c765ce644d
. This commit simply reapplies this change.
2018-10-29 16:34:48 -03:00
Claudiu Lodromanean
3e30682b41
Merge pull request #21704 from woocommerce/fix/reduce-strings
...
Merged similar strings to reduce number of translateable strings
2018-10-29 12:04:08 -07:00
Claudiu Lodromanean
1dd4ba0af6
Merge pull request #21729 from woocommerce/update/21627
...
Make PDT validation use the same rounding as the IPN validation.
2018-10-29 11:44:53 -07:00
Claudiu Lodromanean
2829c5ad13
Merge pull request #21658 from woocommerce/fix/21653
...
Revert show shipping behavior change
2018-10-29 11:20:15 -07:00
Claudiu Lodromanean
5222309eba
Merge pull request #21633 from AlexeyKhmyrov/issue_21406
...
Use html entity for times (x) sign when outputting dimensions.
2018-10-29 11:19:49 -07:00
Rodrigo Primo
55fcd4c210
Preserve changes in includes/class-wc-background-updater.php
2018-10-29 13:14:05 -03:00
Rodrigo Primo
ece9f02776
Revert "First pass at using post_author instead of the post meta '_customer_user'"
...
This reverts commit 61c7abce4f
.
2018-10-29 11:48:44 -03:00
Rodrigo Primo
be4132e228
Revert "Set post_author to 0 for refund orders"
...
This reverts commit ad4304450d
.
2018-10-29 11:47:00 -03:00
Rodrigo Primo
ff7e307b6b
Revert "Make sure post_author is used only after WC 3.3.0 DB upgrade routine is executed"
...
This reverts commit 997a6fa40d
.
2018-10-29 11:46:33 -03:00
Rodrigo Primo
7db65aea2c
Revert "Use post_author field instead of post meta in orders admin page"
...
This reverts commit 6ecc3bc442
.
2018-10-29 11:46:02 -03:00
Rodrigo Primo
487ac201c0
Revert "Bump WC version to 3.4.0"
...
This reverts commit 7f43c39f2f
.
2018-10-29 11:44:32 -03:00
Rodrigo Primo
8d80d1417c
Revert "Add filter to list of post_types used to build the query to copy _customer_user to post_author"
...
This reverts commit 1f39f7d633
.
2018-10-29 11:42:51 -03:00
Rodrigo Primo
1051b3fbeb
Revert "Reposition wc_update_340_order_customer_id() function"
...
This reverts commit 35998e56cb
.
2018-10-29 11:42:25 -03:00
Rodrigo Primo
911df7806f
Revert "Migrate _customer_user to post_author in batches"
...
This reverts commit 4123cc6f7d
.
2018-10-29 11:37:54 -03:00
Rodrigo Primo
1d9ab63134
Revert "Punt to WC version 3.5.0"
...
This reverts commit ccf10f6ab2
.
2018-10-29 11:37:24 -03:00
Rodrigo Primo
3374ec7a74
Revert "Migrate data to post_author in a single go when using WP-CLI"
...
This reverts commit e02f3fbec4
.
2018-10-29 11:25:55 -03:00
Gerhard Potgieter
dba5469efa
update comment for PHPCS passes
...
Co-Authored-By: siananda <anandacsebd@gmail.com>
2018-10-29 20:21:14 +06:00
Rodrigo Primo
ee6e0a345e
Revert "Monitor only memory limit while running the data migration"
...
This reverts commit 923eeb2e43
.
2018-10-29 11:19:52 -03:00
Rodrigo Primo
ad31742ba1
Revert "Cache query to get the list of orders placed by the user ID 1"
...
This reverts commit 697421a9fa
.
2018-10-29 11:17:39 -03:00
Rodrigo Primo
a2c18145fc
Revert "Set post_author to 0 on all orders that belong to a deleted customer"
...
This reverts commit f725dc17af
.
2018-10-29 11:16:07 -03:00
Rodrigo Primo
f109008e0d
Revert "Update wc_customer_bought_product() and customers report to use post_author instead of _customer_user"
...
This reverts commit b97f2749d6
.
2018-10-29 11:15:22 -03:00
Rodrigo Primo
86650d9fb8
Revert "Update WC API v1 and v2 to use post_author instead of _customer_user"
...
This reverts commit fdfe95b07e
.
2018-10-29 11:14:24 -03:00
Ron Rennick
427d7df7fb
Introduce WC_Admin_Notices::is_ssl(), add SSL check to dashboard SSL notice
2018-10-29 11:10:09 -03:00
Rodrigo Primo
37c796487d
Revert "Update WC_Customer_Data_Store to use post_author instead of _customer_user"
...
This reverts commit 482e844f16
.
2018-10-29 11:09:13 -03:00
Rodrigo Primo
e47ebfaafb
Revert "Update WC_Order_Data_Store_CPT::get_wp_query_args() to use post_author instead of _customer_user"
...
This reverts commit 8db3236889
.
2018-10-29 11:08:53 -03:00
Rodrigo Primo
4151c9e5cb
Revert "Fix some code untitentional code changes added during the last merge from master"
...
This reverts commit 7f70c6372c
.
2018-10-29 11:07:53 -03:00
Rodrigo Primo
7c50892089
Revert "Pass user_id via $wpdb->prepare()"
...
This reverts commit 77add46705
.
2018-10-29 11:07:20 -03:00
Rodrigo Primo
61045ecb6f
Revert "Fix indentation"
...
This reverts commit 397e40f165
.
2018-10-29 11:07:05 -03:00
Rodrigo Primo
0258f43589
Revert "Add @return for wc_update_350_order_customer_id() docblock"
...
This reverts commit 5c5cddf26a
.
2018-10-29 11:06:15 -03:00
Gerhard
aba734f033
Make PDT validation use the same rounding as the IPN validation.
2018-10-29 11:50:47 +02:00
Kim Helge Frimanslund
fece37f814
Prevent extract from polluting hook arguments
2018-10-28 15:36:13 +01:00
Kanishk
2c642f3880
Cleaned cache right after filters are added
2018-10-28 16:55:07 +05:30
Karolína Vyskočilová
6687633c92
fix PHP 7.2 travis build
2018-10-28 11:36:55 +01:00
Karolína Vyskočilová
1dec0264bc
custom settings on shipping section ( #13463 , #13461 )
2018-10-27 23:53:43 +02:00
nishitlangaliya
e275bf2b1d
fix: Various 'Table does not exist' in WooCommerce status
2018-10-27 11:20:21 -08:00
angelleye
7ec6f3f67b
Sets signature field type to password for security, resolves #21714
2018-10-27 06:21:56 -05:00
Claudio Sanches
ccb3f3d82c
Normalize string in terms controller
2018-10-26 20:12:09 -03:00
Claudio Sanches
2be69a90a6
Reduce number of duplicated strings
2018-10-26 20:08:24 -03:00
Claudio Sanches
47a6c32d5c
Remove duplicated string in reviews endpoint
2018-10-26 19:31:03 -03:00
Claudio Sanches
3aa9b60b61
Merged similar strings to reduce number of translateable strings
2018-10-26 18:16:14 -03:00
claudiulodro
d59f165e31
Update block editor hook to new one
2018-10-26 13:48:47 -07:00
Md. Saiful Islam
50d33a5793
Fix for issue #21652
...
Prevent deleting the default product category. Added additional checking is the category is the default category or not.
2018-10-26 21:05:52 +06:00
Gerhard
86c15f24c1
Dont include the html tags in the translated string.
2018-10-26 13:33:40 +02:00
Gerhard
5285ea0dcc
Allow the strong tags to be used.
2018-10-26 13:29:56 +02:00
Gerhard
1af659e73b
comment_type should be review for the latest reviews dashboard widget.
2018-10-26 13:16:16 +02:00
Sławek Amielucha
29344a5ffd
Fixes typos in class comments.
2018-10-25 22:38:07 +02:00
Claudiu Lodromanean
d1c90c5972
Merge pull request #21647 from am777/master
...
Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php
2018-10-25 12:12:58 -07:00
Claudiu Lodromanean
e343f4def7
Merge pull request #21645 from woocommerce/remove/live-rates-mention-setup-wizard
...
Setup wizard: remove mention of live shipping rates from “activate” step
2018-10-25 11:57:14 -07:00
Claudiu Lodromanean
f311ad0d12
Merge pull request #21608 from woocommerce/use-crud-instead-of-has-post-thumbnail
...
Use $product->get_image_id() instead of has_post_thumbnail()
2018-10-25 11:51:11 -07:00
Claudio Sanches
53fa49b13a
Removed non-existing WC_Product_Simple->set_date_created_gmt method
...
Closes #21660
2018-10-25 13:12:40 -03:00
Jeff Stieler
b9b9f191e9
Setup wizard: store shipping label opt-in in options table, use for “activate” step feature list.
2018-10-25 11:43:13 -04:00
Kanishk
9bd4a8957f
Purged plugin and theme cache so that the helper can detect locally installed plugins and themes
2018-10-25 15:27:04 +05:30
claudiulodro
874ee8895d
Revert show shipping behavior change
2018-10-24 13:09:32 -07:00
claudiulodro
255877211a
Dont default to gallery thumbnail size if flexslider disabled
2018-10-24 11:07:43 -07:00
amit.chauhan
8ea696f57a
Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php and removed comment
2018-10-24 19:19:16 +05:30
Emran Ahmed
5bceee62ad
Add extra filter param
...
Add `$attribute` to get more info about custom attribute types
2018-10-24 19:32:27 +06:00
amit.chauhan
b753548df3
Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php
2018-10-24 18:32:59 +05:30
Jeff Stieler
950f0c4688
Setup wizard: remove mention of live shipping rates from “activate” step.
2018-10-24 08:57:09 -04:00
jamsheerkrd
bb5df05920
Update abstract-wc-data.php
...
https://github.com/woocommerce/woocommerce/issues/21640
2018-10-24 14:05:49 +05:30
Keith Light
f9cbcbece6
Amend `absint` to `esc_html` to allow for negative numbers in menu order
2018-10-23 20:51:14 +01:00
Reuven Karasik
a9afc72991
Updated html-variation-admin.php to comply with CS
...
Based on @ikraav 's proposals
2018-10-23 15:36:13 +03:00
Claudiu Lodromanean
bdf5c02f48
Merge pull request #21619 from woocommerce/fix/21571
...
Tweaks to unsupported theme handling and hidden preview button handling
2018-10-22 09:41:45 -07:00
Claudiu Lodromanean
6ebdffd615
Merge pull request #21617 from itowhid06/master
...
[REST API] pass missing $filter as parameter in legacy get_order_refund endpoints
2018-10-22 09:40:26 -07:00
AlexeyKhmyrov
179d0fdc52
Issue #21406 Dimensions in RTL Languages are displayed incorrectly on single product pages.
...
Using '×' instead of 'x' in string '10 x 20 x 30 cm'
2018-10-22 11:29:07 -05:00
AlexeyKhmyrov
a58e907994
Fixed coding standards
2018-10-22 11:27:01 -05:00
Rodrigo Primo
8f04e09f26
Fix PHPCS violations automatically using phpcbf
2018-10-22 11:22:22 -03:00
Claudiu Lodromanean
9351d0c937
Merge pull request #21601 from woocommerce/fix/21534-2
...
Change wp_woocommerce_sessions before dbDelta() is called
2018-10-19 12:00:53 -07:00
Claudiu Lodromanean
14ea40cae0
Merge pull request #21614 from menakas/issue_21511
...
Trim the import file headers while reading
2018-10-19 11:16:28 -07:00
claudiulodro
b49a9a5809
Tweaks to unsupported theme handling and hidden preview button handling
2018-10-19 10:49:58 -07:00
Towhidul Islam
b68cef2062
[REST API] pass missing $filter as parameter in get_order_refund
2018-10-19 20:41:20 +06:00
Menaka S
566c57cc45
Trim the import file headers while reading
2018-10-19 16:43:52 +05:30
Claudio Sanches
bd37853923
Improved review and reviewer_email
2018-10-18 18:53:16 -03:00
Claudio Sanches
f3fdcd2ec0
Fixed order or collection params
2018-10-18 18:17:15 -03:00
Claudio Sanches
17a80c863e
[REST API] Fixed product reviews schema and content
2018-10-18 18:13:21 -03:00
Claudio Sanches
d987fb95b9
[REST API] Register data endpoints
2018-10-18 16:04:54 -03:00
Rodrigo Primo
12af00e38f
Merge pull request #21605 from woocommerce/fix/21578
...
Fix: WC_Product::get_image() should use $attr parameter
2018-10-18 14:34:02 -03:00
Claudiu Lodromanean
c994956f03
Merge pull request #21573 from woocommerce/fix/21548
...
Simplified path check for CSV importer to cause less issues
2018-10-18 07:56:34 -07:00
Rodrigo Primo
9b094fc74d
Use $product->get_image_id() instead of has_post_thumbnail()
...
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032
and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Rodrigo Primo
6ed2ebb3ba
Fix: WC_Product::get_image() should use $attr parameter
...
This commit fixes a issue that was introduced when WC_Product::get_image() was refactored in 64b589f032
that was making this method ignore what was passed in the $attr parameter.
2018-10-17 19:40:57 -03:00
Claudiu Lodromanean
59a863bc70
Merge pull request #21591 from JeroenSormani/master
...
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-17 08:27:04 -07:00
Claudiu Lodromanean
8c6b7032c6
Merge pull request #21596 from woocommerce/fix/rest-api-v3-producs-schema
...
[REST API] Fixed schema stock_status on products endpoints
2018-10-17 08:25:12 -07:00
Claudiu Lodromanean
5ca9600a23
Merge pull request #21595 from woocommerce/fix/rest-api-v3-trashed-orders
...
[REST API] Ability to query orders from trash bin
2018-10-17 08:24:06 -07:00
Claudiu Lodromanean
6f32369144
Merge pull request #21594 from woocommerce/fix/rest-api-v3-order-refunds-schema
...
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-17 08:11:16 -07:00
Rodrigo Primo
41d2e1cafd
Change wp_woocommerce_sessions before dbDelta() is called
...
On PR #21245 , I added a db update routine to change wp_woocommerce_sessions primary key from session_key char(32) to session_id bigint auto_increment as dbDelta() is unable to handle primary key changes (see https://core.trac.wordpress.org/ticket/40357 ). But I didn't realize that dbDelta() was actually trying to add a new primary key to the table without droping the old key first and this was generating the following error:
```
WordPress database error Multiple primary key defined for query ALTER TABLE wp_woocommerce_sessions ADD PRIMARY KEY (`session_id`)
```
To prevent this error from happening, this commit moves the query that changes the primary key from db update routine to WC_Install::create_tables() so that it runs before dbDelta() is called.
2018-10-17 12:11:01 -03:00
Rodrigo Primo
0c77ea584b
Revert "Do not try and create primary key using upgrade routine, dbdelta does that automatically. Just drop the key if it exists and add a new unique key."
...
This reverts commit d3e59b770b
.
2018-10-17 11:20:39 -03:00
Rodrigo Primo
35bd8ba05d
Revert "Do check on new key field instead and only run alter when not found."
...
This reverts commit a41df43cb0
.
2018-10-17 11:20:27 -03:00
Steve Grunwell
550b309901
Merge branch 'master' into feature/sanitize-order-id-tests
2018-10-17 02:21:04 +00:00
Claudio Sanches
2bcd4598f8
Fixed coding standards
2018-10-16 21:15:03 -03:00
Claudio Sanches
a9b36a4e23
[REST API] Fixed schema stock_status on products endpoints
2018-10-16 21:12:49 -03:00
Claudio Sanches
c6daf8287d
[REST API] Ability to query orders from trash bin
2018-10-16 20:19:34 -03:00
Claudio Sanches
98c8bb3eda
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-16 19:20:53 -03:00
Claudio Sanches
0f1f91f90a
[REST API] Fixed duplicated entry in orders notes schema
2018-10-16 19:07:58 -03:00
Claudiu Lodromanean
8e47d2afd5
Merge pull request #21575 from JoryHogeveen/patch-1
...
Validate multisite super admins before filtering editable roles & mapping capabilities
2018-10-16 11:23:42 -07:00
Claudiu Lodromanean
84ec31d3cc
Merge pull request #21588 from woocommerce/fix/21587
...
[REST API] Product downloads - Check if file ID is not empty and exists
2018-10-16 10:09:52 -07:00
JeroenSormani
7b4075f11a
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-16 18:53:31 +02:00
Claudio Sanches
63390c181d
[REST API] Fixed schema for product's downloads
...
Download ID are generated with wp_generate_uuid4() for while now.
Also we allow users to manipulate it.
2018-10-16 13:19:41 -03:00
Claudio Sanches
00c1a9016a
Check if file ID is not empty and exists
...
Closes #21587
2018-10-16 13:01:51 -03:00
Jory Hogeveen
481903d915
No need to continue parsing for shop manager if target user is an administrator
2018-10-16 14:11:36 +02:00
Khan M Rashedun-Naby
439bd54ce5
The variable should be 0 rather than empty string
2018-10-16 14:23:43 +06:00
Khan M Rashedun-Naby
7940694ce4
Removed Unnecessary Variable.
2018-10-16 13:25:56 +06:00
Kathy Darling
61f4f4e298
add $product object to woocommerce_quantity_input_classes
2018-10-15 17:24:47 -05:00
Jory Hogeveen
991ae6e7f2
Check super admin status before modifying editable roles
2018-10-15 23:53:29 +02:00
Jory Hogeveen
00e942d0b7
Check super admin status before mapping caps
2018-10-15 23:52:47 +02:00
claudiulodro
ccdf6d0253
Simplified path check for CSV importer to cause less issues
2018-10-15 13:50:34 -07:00
Claudiu Lodromanean
df55670bf0
Merge pull request #21503 from woocommerce/fix/21497
...
Add support for sanitizing arrays used when saving order item data
2018-10-15 11:37:02 -07:00
Claudiu Lodromanean
f2d5b73617
Merge pull request #21569 from JoryHogeveen/patch-1
...
Stop using `current_user_can` for validation roles.
2018-10-15 10:22:47 -07:00
Claudiu Lodromanean
76ae5382a8
Merge pull request #21570 from woocommerce/fix/21542
...
Fix: Posted variation attribute values not recognized if "+" present
2018-10-15 10:02:46 -07:00
Claudiu Lodromanean
fe2b969534
Merge pull request #21565 from Prospress/issue_21515
...
Issue 21515
2018-10-15 09:51:56 -07:00
Claudiu Lodromanean
c3bf253a88
Merge pull request #21561 from woocommerce/fix/21534
...
Improve session table update routine
2018-10-15 09:47:41 -07:00
Claudiu Lodromanean
a70618711b
Merge pull request #21560 from woocommerce/fix/21552
...
Products shortcode allow numeric term slug matching
2018-10-15 09:42:16 -07:00
Claudiu Lodromanean
e4796cfa75
Merge pull request #21557 from jdeeburke/fix-memory-limit-byte-values
...
Fix some memory limit values not correctly converting to bytes
2018-10-15 09:17:27 -07:00
Claudiu Lodromanean
d230b5e2e5
Merge pull request #21550 from woocommerce/update/geo-get-upload-dir
...
Use wp_get_upload_dir for geolite DB path
2018-10-15 09:15:46 -07:00
Jory Hogeveen
54036f8f38
Codestyle
2018-10-15 17:38:13 +02:00
Rodrigo Primo
f53b696ddf
Remove unnecessary call to urldecode()
...
This commit removes an unnecessary call to urldecode() as the superglobal $_REQUEST is already decoded by PHP (see http://php.net/urldecode ). Calling urldecode() on a previously decoded value was causing the issue described in #21542 .
2018-10-15 12:27:12 -03:00
Jory Hogeveen
e5f934d0a9
Codestyle
2018-10-15 17:21:04 +02:00
Jory Hogeveen
b85c142d97
Stop checking shop_manager role if the user also is an administrator
2018-10-15 17:15:53 +02:00
Jory Hogeveen
dfbe5174ef
Stop using `current_user_can` for validation roles.
...
Fixes #21568
2018-10-15 16:48:16 +02:00
Ron Rennick
1ea2d79dd6
Merge branch 'master' into issue_21515
2018-10-15 11:00:14 -03:00
Alex Kirk
3e7cf4be21
Fix typo revivew
2018-10-15 15:54:19 +02:00
Terence O'Donoghue
f7c9b7d62c
Update abstract-wc-rest-crud-controller.php
2018-10-15 14:20:19 +01:00
Gerhard
a41df43cb0
Do check on new key field instead and only run alter when not found.
2018-10-15 14:13:21 +02:00
Gerhard
d3e59b770b
Do not try and create primary key using upgrade routine, dbdelta does that automatically. Just drop the key if it exists and add a new unique key.
2018-10-15 14:07:48 +02:00
Gerhard
aa6a6f2b10
Refine numeric slug checking when using the products shortcode for attributes and categories.
2018-10-15 13:22:12 +02:00
Gerhard
48de1f6b97
Accommodate numeric slugs in the product shortcode attribute and category fields.
2018-10-15 12:49:56 +02:00
Jared Burke
4557108805
Fix some memory limit values not correctly converting to bytes
2018-10-15 01:26:45 -05:00
Kathy Darling
5c722a32e8
Add support for custom classes on quantity input with new woocommerce_quantity_input_classes filter
2018-10-13 22:22:17 -05:00
Mohammad Jangda
0590522180
Use wp_get_upload_dir for geolite DB path
...
By default, `wp_upload_dir` will "will create a subfolder in your Uploads folder corresponding to the queried month (or current month, if no $time argument is provided" (https://developer.wordpress.org/reference/functions/wp_upload_dir/ ).
This is not necessary in our case since all we want is the `basedir` value.
We're switching to `wp_get_upload_dir`, which is a wrapper for `wp_upload_dir` that turns of the folder create behaviour.
2018-10-13 01:27:45 -04:00
Ron Rennick
ec44a36913
only include erasure tools link in erasure desc_tip when user has manage_privacy_options, escape the desc_tip
2018-10-12 21:49:05 -03:00
Claudiu Lodromanean
74693979db
Merge pull request #21531 from wayheming/master
...
Fix cart notice position
2018-10-12 08:57:54 -07:00
Claudiu Lodromanean
e0d31107ea
Merge pull request #21523 from woocommerce/fix/21509
...
Fix DB log handler cleanup
2018-10-12 08:22:22 -07:00
Jesper V Nielsen
8799de8477
fix-missing-colon
2018-10-12 09:43:43 +02:00
Jesper V Nielsen
1e8692aeb1
allow-filtering-on-wiget-get_current_page_url
...
Allow for filtering on get_current_page_url() in widgets, to make it possible to extend the parameteres, and keep them.
If building some functionality, where wee work with the parameters in the url, they will be removed, when using the links produced by wc_widget - for example the layered nav, or the price range.
With the filter, we kan add out custom parameter, to the url generated by these widgets.
2018-10-12 08:53:46 +02:00
Claudio Sanches
2f7f514f14
Fixed coding standards
2018-10-11 13:31:37 -07:00
claudiulodro
d1e9e85cbb
Extra safety
2018-10-11 13:31:37 -07:00
claudiulodro
c9c12c2518
Initial implementation
2018-10-11 13:31:37 -07:00
claudiulodro
d5ac2e4dee
Backwards compatibility handling
2018-10-11 13:31:34 -07:00
Claudio Sanches
09ed5fd152
Fixed coding standards
2018-10-11 13:31:34 -07:00
claudiulodro
bd7d73a788
Extra checking to make sure log file is in log file directory
2018-10-11 13:31:34 -07:00
claudiulodro
87b81c94ae
Better way of doing it
2018-10-11 13:31:34 -07:00
claudiulodro
3bbf05d025
Prevent deleting things outside the log dir
2018-10-11 13:31:34 -07:00
claudiulodro
5f2b915f18
Add filter for ease of extensions
2018-10-11 13:31:30 -07:00
claudiulodro
7ea4e7b1b5
Prevent role changing
2018-10-11 13:31:30 -07:00
claudiulodro
d6144a769e
Restrict shop managers to editing customers
2018-10-11 13:31:30 -07:00
claudiulodro
26b188569b
Add filter for disabling file path check
2018-10-11 13:31:27 -07:00
claudiulodro
acf8757636
Add path checking and fix bug
2018-10-11 13:31:27 -07:00
claudiulodro
7b19673dea
Extra file type checking
2018-10-11 13:31:27 -07:00
claudiulodro
b6f22d9950
Fix typo
2018-10-11 13:31:18 -07:00
claudiulodro
afd24dea4b
Add http(s) to // download urls
2018-10-11 13:31:18 -07:00
claudiulodro
e53e21d65f
Better variable name
2018-10-11 13:31:18 -07:00
claudiulodro
441fe32f0b
Add filetype checking for all files located on the server
2018-10-11 13:31:18 -07:00
claudiulodro
989230f2b9
Refactor for increased safety
2018-10-11 13:31:18 -07:00
claudiulodro
88d506bac0
Dont do abspath file_exists check on urls that start with // since those are remote urls and not local urls
2018-10-11 13:31:18 -07:00
unknown
12279989bd
Fix cart notice position
2018-10-11 15:47:35 +03:00
claudiulodro
7e17be74d9
Fix db log handler cleanup
2018-10-10 12:14:25 -07:00
AmanS
9d327ac52e
WC Refund class older name 'WC_Refund' somehow left over in the function docblock. Corrected to WC_Order_Refund.
2018-10-10 00:28:15 +05:30
Reuven Karasik
86c4c56d44
Fixed version and removed $variation_data array
...
Fixed version and removed $variation_data array (since it's deprecated) from filter `woocommerce_variation_header`
2018-10-06 12:21:40 +03:00
claudiulodro
91d2411aa9
Use wc_check_utf8 function
2018-10-05 15:58:50 -04:00
claudiulodro
dfad1306de
Revert sanitization function used for order item data
2018-10-05 15:46:49 -04:00
Frédéric Demarle
7c3ef6cc27
Fix missing punctuation mark a the end of the comments
2018-10-04 20:22:18 +02:00
Steve Grunwell
65cda44fe6
Add tests for wc_sanitize_order_id()
...
This commit adds four test cases (via a PHPUnit data provider) for the `wc_sanitize_order_id()` function.
While writing the tests, it was also discovered that the function was returning a *string*, not an integer as indicated by the DocBlock, so explicit type-casting was added.
2018-10-04 13:53:55 +00:00
Claudiu Lodromanean
96005a51c4
Merge pull request #21494 from woocommerce/fix/21484
...
Don't fire duplicate actions in shipping settings
2018-10-03 16:59:06 -04:00
Claudiu Lodromanean
a5509f1c75
Merge pull request #21493 from woocommerce/fix/21430
...
Add `address_1` to shipping packages info
2018-10-03 16:57:40 -04:00
JD
0871ad8627
Update class-wc-webhook.php
2018-10-03 21:38:53 +01:00
claudiulodro
1716538617
Prevent duplicate actions from firing in shipping settings
2018-10-03 15:43:11 -04:00
claudiulodro
84e5de5eef
Add address_1 to shipping packages info
2018-10-03 14:31:35 -04:00
JD
b0b2b34884
Avoid treating HTTP 301 and 302 Codes as Failures
...
As per:
https://github.com/woocommerce/woocommerce/issues/21490
Change the definition of a Webhook Delivery Failure to exclude HTTP/301 and HTTP/302 responses. This allows webhook handlers (such as Google Apps Script) to avoid breaching failure limits and disabling webhooks.
2018-10-03 16:40:49 +01:00
Claudiu Lodromanean
543c63072d
Merge pull request #21461 from dgwatkins/master
...
The orderby=ID argument needs to be uppercase.
2018-10-03 10:13:53 -04:00
Claudiu Lodromanean
71ca7c45ad
Merge pull request #21452 from andgrankin/patch-2
...
Update documentation
2018-10-03 10:11:11 -04:00
Claudiu Lodromanean
2368c4d4a8
Merge pull request #21448 from dyszczo/bugfix/logger-instance-warning
...
Fix for warning in wc_get_logger when woocommerce_logging_class retur…
2018-10-03 10:05:25 -04:00
Claudiu Lodromanean
ceccd62c91
Merge pull request #21456 from woocommerce/fix/21389
...
Add inline float style for email label to match order details styling
2018-09-28 08:26:33 -07:00
Claudiu Lodromanean
f1a7792454
Merge pull request #21403 from woocommerce/fix/21294
...
Fix attributes bugs
2018-09-28 08:24:03 -07:00
Frédéric Demarle
e20ce00101
Fix ajax responses not testable when calling wp_send_json_success in a try block
2018-09-28 13:42:51 +02:00
David Garcia Watkins
d4484f3a4b
The orderby=ID argument needs to be uppercase.
2018-09-27 19:51:10 +02:00
Claudiu Lodromanean
c8bab001a9
Merge pull request #21410 from rnaby/fix/21395
...
Fix for issue #21395
2018-09-27 10:46:23 -07:00
Claudiu Lodromanean
9f77ef8526
Merge pull request #21455 from woocommerce/fix/20912
...
Change query to save session data
2018-09-27 10:39:46 -07:00
Claudiu Lodromanean
8b7ccf84ec
Merge pull request #21447 from woocommerce/fix/21392
...
Allow saving 0 as stock value when using quick edit
2018-09-27 10:37:13 -07:00
Claudiu Lodromanean
f5d5cad65c
Merge pull request #21241 from woocommerce/fix/21226
...
Revise coupon logic and add tests.
2018-09-27 08:58:47 -07:00
Khan M Rashedun-Naby
f1f3eee195
discussion_r219948141 and discussion_r219949290 fix
2018-09-27 12:41:45 +06:00
Gerhard Potgieter
dd1d3b0c77
Make sure _stock is set and unslash value before using. Update PHPCS exclude rule to be more specific.
2018-09-27 08:02:12 +02:00
claudiulodro
4082222f7a
Add inline float style for email label to match order details styling
2018-09-26 11:13:29 -07:00
Rodrigo Primo
734a9370be
Change query to save session data
...
Use `INSERT ... ON DUPLICATE KEY UPDATE` instead of `REPLACE` in the query that saves session data. Doing this to prevent deadlocks in this table. For more information see https://github.com/woocommerce/woocommerce/issues/20912#issuecomment-420888726
2018-09-26 14:46:28 -03:00
Claudiu Lodromanean
b338c14faf
Merge pull request #21445 from woocommerce/fix/21428
...
Output notices on woocommerce_before_customer_login_form
2018-09-26 09:34:26 -07:00
andgrankin
526e3826e8
Update documentation
...
Update documentation for methods set_coupon_discount_totals and set_coupon_discount_tax_totals
2018-09-26 22:43:17 +07:00
Gerhard Potgieter
14aea98d49
Merge pull request #21305 from woocommerce/fix/product-review-type
...
Save comment_type for product reviews
2018-09-26 13:35:05 +02:00
Gerhard Potgieter
a365fb10e9
Merge pull request #21408 from woocommerce/fix/21269
...
Dont modify attributes orderby when ordering by name
2018-09-26 13:30:40 +02:00
Gerhard Potgieter
0d77d3a777
Merge pull request #21444 from woocommerce/fix/issue-21443
...
Remove 'order_again' query string to avoid multiple re-orders
2018-09-26 13:03:03 +02:00
dyszczo
7f5122d502
Fix for warning in wc_get_logger when woocommerce_logging_class returns valid logger instance
2018-09-26 12:56:59 +02:00
Gerhard Potgieter
9374e2e79a
PHPCS fixes
2018-09-26 12:43:04 +02:00
Gerhard Potgieter
0428ea4f1e
When quick edit saving stock, check for numeric value as empty returns true on 0 and you can set stock to 0.
2018-09-26 12:34:19 +02:00
Gerhard Potgieter
7a323c4a6d
Output notices on woocommerce_before_customer_login_form
2018-09-26 11:32:19 +02:00
Boro Sitnikovski
82f3d6f3fb
Remove 'order_again' query string to avoid multiple re-orders
2018-09-26 09:39:48 +02:00
Daniel Bitzer
2b57f95552
Add coupon object param to get coupon data filter
...
This makes it easier to manage virtual coupon objects created through the woocommerce_get_shop_coupon_data filter
2018-09-26 12:43:27 +09:30
Claudiu Lodromanean
6e8f995426
Merge pull request #21424 from thenbrent/update_action_scheduler
...
Update Action Scheduler to v2.1.0
2018-09-25 10:58:24 -07:00
Claudio Sanches
61f988db63
Merge branch 'master' into fix/product-review-type
2018-09-25 12:35:41 -03:00
Claudiu Lodromanean
b424213554
Merge pull request #21416 from pierrebuet/master
...
Show the right size of placeholder image on single product page
2018-09-24 13:03:20 -07:00
Claudiu Lodromanean
2008b8e2b2
Merge pull request #21384 from woocommerce/fix/rest-api-order-statuses
...
[REST API] Updated order statuses slugs
2018-09-24 11:28:56 -07:00
Claudiu Lodromanean
e597e16e33
Merge pull request #21346 from Spreeuw/patch-6
...
Fixes #21345
2018-09-24 11:28:01 -07:00
Brent Shepherd
6eddeaec50
PHPCS fixes
2018-09-24 11:43:46 +10:00
pierrebuet
db3270a390
Show the right size of placeholder image on single product page
...
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes. wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
Jeff Stieler
5fbbd38728
OBW: update to official ShipStation plugin slug.
2018-09-21 10:48:10 -06:00
Khan M Rashedun-Naby
f979b43b25
Fix for issue #21395
2018-09-21 14:36:04 +06:00
claudiulodro
fdef6b4c73
Dont modify attributes orderby when ordering by name
2018-09-20 12:32:06 -07:00
claudiulodro
d7afce5f4c
Update routine to set reviews comment type
2018-09-20 09:28:39 -07:00
claudiulodro
67d80c35d8
Update cache key to consistently work with all types of chars
2018-09-20 08:21:39 -07:00
XLPlugins
e283eff149
Added new filter to modify order status during orders using cheque as a gateway.
2018-09-20 19:07:23 +05:30
Brent Shepherd
0c27837b2b
Add cancel_all() to WC_Queue_Interface
...
And the WC_Action_Queue implementation of WC_Queue_Interface.
This avoids ambiguity between the behaviour of cancel(), which can
be confusing given it technically unschedules all actions for cron
or recurring actions, but only the next instance of a single action.
2018-09-20 15:42:24 +10:00
Brent Shepherd
32d3de3aa8
Use new as_ prefixed Action Scheduler functions
2018-09-20 15:39:56 +10:00
Brent Shepherd
e45824a8c3
Update Action Scheduler to v2.1.0
...
Merge commit '3c610aec4ad1ebef9de8df1f4dae0097fcbf8469'
2018-09-20 12:16:26 +10:00
claudiulodro
178f98ff65
Fix attribute saving
2018-09-19 11:35:46 -07:00
Claudiu Lodromanean
3d2b0ab72b
Merge pull request #21333 from ediamin/conditional_check_for_float_type_product_meta
...
Ignore converting float meta value for registered post meta
2018-09-19 09:42:06 -07:00
Claudiu Lodromanean
9df1ded20f
Merge pull request #21353 from ediamin/fix/cron_interval_property_in_WP_Background_Process
...
Fix cron_interval property support in WP_Background_Process
2018-09-19 08:04:21 -07:00
Claudiu Lodromanean
2dad30c151
Merge pull request #21381 from woocommerce/fix/21264
...
Should check AND NOT IN array
2018-09-19 07:43:53 -07:00
Claudio Sanches
4ce8544478
[REST API] Fixed reports results
2018-09-18 12:14:17 -03:00
Claudio Sanches
bd7a73696a
[REST API] Updated order statuses slugs
...
All REST API does not include "wc-" prefix, removing here makes easy to
work with all endpoint without care about any prefix.
2018-09-18 11:27:26 -03:00
Claudio Sanches
48a0045373
[REST API] Fixed endpoints registered in /reports
2018-09-18 11:23:35 -03:00
Gerhard Potgieter
9849228442
Logical not bitwise operator
2018-09-18 15:11:26 +02:00
Trafikbyran
b27980dae7
Update wc-template-functions.php
...
it's supposed to check if it isn't (&!) in the array of taxonomies that are stated on the following rows not if it is (&&)... before rows 623 to 630 did nothing..
one could argue that it should be possible to set the taxonomies in the array it checks "( 'product_cat', 'product_tag' )" in the filter but i haven't thought that through
2018-09-18 15:10:50 +02:00
Gerhard Potgieter
2f9ca949f7
Merge pull request #21336 from woocommerce/fix/21335
...
Triggering woocommerce_order_edit_status on single order status edit.
2018-09-18 12:43:33 +02:00
Gerhard Potgieter
e69900a4d6
Shipping totals should show even if calculator is disabled.
2018-09-17 13:43:32 +02:00
Gerhard Potgieter
c22c92b838
Introduce wc_sanitize_endpoint_slug and run all endpoint sanitization before saving through it to ensure that only valid slugs can be used for endpoints.
2018-09-14 09:35:49 +02:00
Gerhard Potgieter
ed06fc5d01
Revert "Do not use camel case for password reset request subject and heading"
...
This reverts commit bd7f1a6a4d
.
2018-09-14 09:23:06 +02:00
Gerhard Potgieter
bd7f1a6a4d
Do not use camel case for password reset request subject and heading
2018-09-14 09:15:23 +02:00
Edi Amin
f1f03928f9
Fix cron_interval property support in WP_Background_Process
2018-09-14 09:29:48 +06:00
Ewout Fernhout
9c411dc532
Fixes #21345
2018-09-13 15:23:00 +02:00
Reuven Karasik
37da7b6680
Added action 'woocommerce_variation_header' action
2018-09-13 12:17:51 +03:00
Chris Shultz
2506ff250b
Triggering woocommerce_order_edit_status on single order status edit.
2018-09-12 10:07:02 -07:00
Claudiu Lodromanean
7b1344e567
Merge pull request #21327 from woocommerce/feature/21119
...
[REST API] Allow apply and remove coupons in orders endpoint
2018-09-12 08:04:00 -07:00
Claudiu Lodromanean
c3170b423b
Merge pull request #21328 from woocommerce/fix/21321
...
wc-checkout js params use is_checkout
2018-09-12 07:53:32 -07:00
Claudiu Lodromanean
07351d5e11
Merge pull request #21288 from woocommerce/update/humanize-emails
...
Humanize emails
2018-09-12 07:51:07 -07:00
Edi Amin
4725bb3e72
Ignore converting float meta value for registered post meta
2018-09-12 20:39:24 +06:00
Gerhard Potgieter
0dd12e0d05
Merge pull request #21243 from woocommerce/update/20991
...
Send emails for cancelled_to_* orders
2018-09-12 12:49:51 +02:00
Gerhard Potgieter
55b188ad8f
Merge pull request #21111 from woocommerce/fix/structured-data-breadcrumbs
...
Include URL for the last element in breadcrumb list
2018-09-12 12:45:23 +02:00
Gerhard Potgieter
5f7b833844
Add missing # before order numbers and escape properly
2018-09-12 12:24:27 +02:00
Gerhard Potgieter
d7cb15c8f8
Update email copy based on https://github.com/woocommerce/woocommerce/pull/21288#issuecomment-420251277
2018-09-12 11:30:53 +02:00
Gerhard Potgieter
43e4ef85e0
Use is_checkout conditional instead of is_page for the wc-checkout js paramaters.
2018-09-12 08:38:54 +02:00
Claudio Sanches
bfdd758bd4
Improve coupons logic and throw errors for invalid coupons
2018-09-11 18:26:32 -03:00
Claudio Sanches
8d9da1cb94
Created method to apply and remove coupons
2018-09-11 18:10:58 -03:00
Claudio Sanches
fda3f6890c
Fixed allow to remove coupons when using line item ID.
2018-09-11 17:18:59 -03:00
Claudiu Lodromanean
92c5c4e54e
Merge pull request #21326 from woocommerce/fix/rest-api-settings-schema
...
[REST API] Updated Settings schema since now we allow batch update
2018-09-11 13:16:36 -07:00
Claudio Sanches
2b7e5121f2
[REST API] Allow apply and remove coupons in orders endpoint
...
Closes #21119
2018-09-11 16:53:55 -03:00
Claudio Sanches
ccd1e1ced6
Fixed coding standards
2018-09-11 16:53:41 -03:00
Claudio Sanches
0ab5dc3e5b
[REST API] Updated Settings schema since now we allow batch update
2018-09-11 16:21:10 -03:00
Claudio Sanches
45c542aa8a
[REST API] Fixed order notes schema
2018-09-11 15:53:13 -03:00
Claudiu Lodromanean
1411567177
Merge pull request #21312 from woocommerce/fix/21295
...
Fix encoded special chars in layered nav "Any %s" string.
2018-09-11 10:01:36 -07:00
Claudiu Lodromanean
c60eb6a2f2
Merge pull request #21314 from woocommerce/add/20822
...
Add filter to control the restore refunded items chekbox default
2018-09-11 09:26:55 -07:00
Claudiu Lodromanean
a9b635efb1
Merge pull request #21322 from woocommerce/update/tracker
...
Tracker changes
2018-09-11 09:17:04 -07:00
Gerhard Potgieter
6ff90a1912
Cleaner code and correct apply_filters
2018-09-11 12:50:20 +02:00
Claudio Sanches
61873627a7
Merge branch 'master' into feature/rest-api-v3
2018-09-10 19:16:22 -03:00
Claudio Sanches
ead415e4b8
Check if comment_type is empty
2018-09-10 18:40:46 -03:00
Claudiu Lodromanean
48bf960a74
Merge pull request #21245 from woocommerce/fix/woocommerce-sessions-schema
...
Change wp_woocommerce_sessions primary key
2018-09-10 12:20:45 -07:00
Claudiu Lodromanean
fe1acc0e8e
Merge pull request #21311 from woocommerce/update/21308
...
Sort by latest instead of Sort by newness
2018-09-10 10:27:43 -07:00
Claudiu Lodromanean
ba0a989a38
Merge pull request #21306 from woocommerce/feature/21115
...
[REST API] Reports totals endpoints
2018-09-10 10:23:56 -07:00
Claudiu Lodromanean
75bac9f3c6
Merge pull request #21316 from woocommerce/fix/21120
...
Replaced in_stock with stock_status for v3 products endpoint.
2018-09-10 09:47:31 -07:00
Claudiu Lodromanean
ac24982e92
Merge pull request #21304 from woocommerce/fix/customer-list-query
...
Fix customer list query
2018-09-10 09:42:01 -07:00
Claudiu Lodromanean
f7028154a1
Merge pull request #21278 from woocommerce/fix/20989
...
Updated shipping class count and posts query to account for variations correctly.
2018-09-10 09:02:31 -07:00
Peter Fabian
17f9b601e9
Reverted more accurate counting of shipping class items as it could cause perf issues.
2018-09-10 16:23:06 +02:00
Gerhard Potgieter
c572327ce9
Check if helper is connected to woocommerce.com
2018-09-10 15:47:46 +02:00
Gerhard Potgieter
1f2b028b0b
Category counts
2018-09-10 15:35:44 +02:00
Gerhard Potgieter
58a2ae494d
Review counts
2018-09-10 15:30:17 +02:00
Gerhard Potgieter
f28002f257
Use wp_json_encode instead of esc_js. Hat tip @dtugend
2018-09-10 14:35:55 +02:00
Peter Fabian
f80d628c56
Fixed omitted grandparent's prepare_objects_query for products endpoint.
2018-09-10 13:49:42 +02:00
Peter Fabian
1237e5ef7e
Added enums to collection_params for stock_status.
2018-09-10 12:36:18 +02:00
Peter Fabian
0ddd8f4506
Fixed stock_status validation.
2018-09-10 12:32:01 +02:00
Gerhard Potgieter
16b2abe8cd
Remove charset, WP will load site charset by default. We need to do esc_js first before wp_specialchars_decode to avoid esc_js to encode double quotes again.
2018-09-10 11:58:39 +02:00
Peter Fabian
70a4309d81
Replaced in_stock with stock_status for v3 products endpoint.
2018-09-10 11:53:20 +02:00
Gerhard Potgieter
e3994348b3
Update checked functionality to use a filter, removed option from settings screen. Can use the woocommerce_restock_refunded_items filter to have the option checked or not, defaults to unchecked.
2018-09-10 11:31:24 +02:00
Ivete Tecedor
9b07180c7a
#20822 -- adding config for making the "restock refunded items" checkbox be UNchecked by default
2018-09-10 11:27:14 +02:00
Gerhard Potgieter
6b3feb0417
Decode encoded special chars for Any string label used in the layered nav widget.
2018-09-10 10:49:25 +02:00
Gerhard Potgieter
8b51ceaca2
Sort by latest instead of Sort by newness
2018-09-10 10:26:04 +02:00
Claudio Sanches
14a1217218
Load all product types even when empty
2018-09-08 22:45:51 -03:00
Claudio Sanches
5f723fc0d9
Removed extra code
2018-09-08 22:40:27 -03:00
Claudio Sanches
d199538514
Inserted data for /reports/reviews/count endpoint
2018-09-08 22:10:19 -03:00
Claudio Sanches
18f8a51cc7
Included @since tag
2018-09-08 21:53:57 -03:00
Claudio Sanches
c18d3c3fff
Save comment_type for product reviews
2018-09-08 21:47:49 -03:00
Claudio Sanches
6d54a533ae
Fixed customer list query
2018-09-08 21:21:00 -03:00
Claudio Sanches
d2b0ff0f32
Initial /reports/reviews/totals endpoint
2018-09-08 21:19:57 -03:00
Claudio Sanches
2fcabfe7e6
/reports/coupons/totals endpoint
2018-09-08 21:04:13 -03:00
Claudio Sanches
daf6650d5d
/reports/customers/count endpoint
2018-09-08 20:32:39 -03:00
Claudio Sanches
a0145c0265
Fixed schema to include instance_id for shipping_lines
2018-09-08 19:12:40 -03:00
Claudio Sanches
30a2e87cf5
Fixed schema to include instance_id for shipping_lines
2018-09-08 19:10:45 -03:00
Claudio Sanches
ca36e368c5
Added /reports/products/totals endpoint
2018-09-08 19:02:29 -03:00
Claudio Sanches
5d67b474ed
Load product types
2018-09-08 19:02:22 -03:00
Claudiu Lodromanean
0cc137be1e
Merge pull request #20848 from woocommerce/fix/20844
...
Make wc_get_attachment_image_attributes do what it is suppose to.
2018-09-07 12:08:34 -07:00
claudiulodro
08a76e1eea
Add srcset handling
2018-09-07 11:36:03 -07:00
Claudiu Lodromanean
2da0c5715c
Merge pull request #21292 from woocommerce/fix/21091
...
Tax display in cart now depends on whether customer is tax exempt.
2018-09-07 11:01:42 -07:00
Gerhard Potgieter
dccc0d5461
Restore space
2018-09-07 10:33:20 +02:00
Gerhard Potgieter
3b57bf7051
Fix invoice escaping
2018-09-07 09:54:31 +02:00
Gerhard Potgieter
ace541910d
Shopping not shipping :)
2018-09-07 09:03:47 +02:00
Gerhard Potgieter
e2a83bb4e7
Update footer text to show on new line
2018-09-07 08:31:27 +02:00
Claudiu Lodromanean
d9b5cf7b6f
Merge pull request #21244 from rubn-g/fix/variable-product-cache-miss
...
Fix/variable product cache miss
2018-09-06 15:17:27 -07:00
Ruben
0a0f733a6e
fix lint code style issue
2018-09-06 22:52:48 +02:00
Claudiu Lodromanean
5ee82ce9c0
Merge pull request #21270 from jessepearson/add/system-tools-action
...
Add action for when system tools are run
2018-09-06 13:17:09 -07:00
Claudiu Lodromanean
552adaae13
Merge pull request #21274 from woocommerce/fix/21215
...
Improve performance of the query to delete version transients
2018-09-06 12:48:28 -07:00
Claudiu Lodromanean
d6cbf78825
Merge pull request #21193 from woocommerce/add/21182
...
Add hidden, screen-reader label on address line 2 input on checkout
2018-09-06 10:32:36 -07:00
Claudiu Lodromanean
dbbf31c99d
Merge pull request #21234 from woocommerce/update/obw-shipping-step-fulfillment
...
OBW: Remove live rates from shipping step, promote label printing.
2018-09-06 10:31:02 -07:00
Peter Fabian
cf3f54ec64
Made tax display in cart depend on whether customer is tax exempt.
2018-09-06 17:40:21 +02:00
Jeff Stieler
1dc6a1c66d
OBW: fix PHPCS errors.
2018-09-06 09:13:58 -06:00
Gerhard Potgieter
866aab0ead
New accout email copy changes
2018-09-06 14:38:43 +02:00
Gerhard Potgieter
cf03db7392
Update customer reset password email copy
2018-09-06 14:18:09 +02:00
Gerhard Potgieter
68b5fbe279
Customer note email copy changes
2018-09-06 13:58:56 +02:00
Gerhard Potgieter
9361aaa05b
Update invoice emails copy
2018-09-06 13:48:40 +02:00
Gerhard Potgieter
fac659c9c6
Update refunded emails copy
2018-09-06 13:24:28 +02:00
Gerhard Potgieter
84b935490d
Update completed email copy
2018-09-06 13:11:58 +02:00
Gerhard Potgieter
5eaa6da98b
Update processing emails copy
2018-09-06 13:00:21 +02:00
Gerhard Potgieter
697e3229f2
Update on-hold emails copy
2018-09-06 12:48:39 +02:00
Gerhard Potgieter
b03e5cff45
Failed admin email changes
2018-09-06 12:30:33 +02:00
claudiulodro
52e272c807
Add breadcrumb links for product categories and tags
2018-09-05 13:32:53 -07:00
Tomáš Kavalek
f93f36ee65
Added missing HTML filter for quantity
...
https://github.com/woocommerce/woocommerce/pull/21069#pullrequestreview-147005349
2018-09-05 20:39:12 +02:00
Claudio Sanches
017b44693b
Updated names
2018-09-05 10:30:14 -03:00
Claudio Sanches
f13deab00a
/reports/orders/count
2018-09-05 10:28:22 -03:00
Claudio Sanches
25ed037fb0
Include new reports endpoints results
2018-09-05 09:36:19 -03:00
Claudio Sanches
9fd386155f
Allow to easy manipulate /reports endpoint results
2018-09-05 09:28:58 -03:00
Claudio Sanches
f0e6ec7a6c
Register reports
2018-09-05 09:25:56 -03:00
Claudio Sanches
c271fca508
Restored reports endpoints
2018-09-05 09:24:02 -03:00
Jesse Pearson
fe7817163c
Moved action call
2018-09-05 07:34:52 -04:00
Peter Fabian
2ba13d06fd
Fixed PHPCS.
2018-09-05 11:38:14 +02:00
Peter Fabian
43e3957bd5
Switched the variations to parent products to fix product counts for shipping classes.
2018-09-05 11:37:11 +02:00
Peter Fabian
ab4630111b
Fixed posts query to include parent products if variations have the shipping class assigned.
2018-09-05 11:35:05 +02:00
Florian Ludwig
3e4791fbb4
Fixes wrong usage of deprecated get_cart_for_session
2018-09-05 10:16:01 +02:00
claudiulodro
1afde50ed6
Generate URLs for singles in structured data
2018-09-04 13:36:10 -07:00
Rodrigo Primo
b4b7062d7b
Improve performance of the query to delete version transients
...
This commit removes the `ORDER BY option_id` part of the query to remove the version transients from the `wp_options` table. This change should help users having performance issues with this query (see for example #21215 ) and, as far as I can see, ordering is not necessary in this context.
Removing the `ORDER BY` from the query means that MySQL won't have to use filesort:
```
MySQL [wccore]> explain DELETE FROM wp_options WHERE option_name LIKE '\\_transient\\_%1510258328' ORDER BY option_id LIMIT 1000;
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-----------------------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-----------------------------+
| 1 | DELETE | wp_options | NULL | range | option_name | option_name | 766 | const | 67 | 100.00 | Using where; Using filesort |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-----------------------------+
1 row in set (0.02 sec)
MySQL [wccore]> explain DELETE FROM wp_options WHERE option_name LIKE '\\_transient\\_%1510258328' LIMIT 1000;
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-------------+
| 1 | DELETE | wp_options | NULL | range | option_name | option_name | 766 | const | 67 | 100.00 | Using where |
+----+-------------+------------+------------+-------+---------------+-------------+---------+-------+------+----------+-------------+
1 row in set (0.00 sec)
```
2018-09-04 17:20:35 -03:00
Rodrigo Primo
b7cc3077ca
Remove unneeded usage of @codingStandardsIgnoreStart
2018-09-04 16:03:02 -03:00
Jesse Pearson
2faadce24f
Add action for when system tools are run
2018-09-04 09:33:16 -04:00
Claudio Sanches
6a3483fa8a
[REST API] Make product's created date editable
2018-09-03 10:57:28 -03:00
Rodrigo Primo
2740a686dc
Change wp_woocommerce_sessions primary key
...
This commit changes wp_woocommerce_sessions primary key to the bigint field session_id. Before it was the char(32) field session_key. Doing this change primarily as it should reduce the occurrence of deadlocks, but also because it is not a good practice to use a char(32) field as the primary key of a table.
2018-08-31 16:56:30 -03:00
Ruben
081125043d
wordpress coding standards
2018-08-31 19:12:12 +02:00
Ruben
d0db74edd5
Fix variable product cache misses
...
If the child product doesn't have weight or dimensions, the value is not being cached correctly as a ```false``` value is being stored and it always recheck that on every page load.
2018-08-31 19:10:32 +02:00
claudiulodro
33154afd03
Send emails for cancelled_to_* orders
2018-08-31 09:31:16 -07:00
claudiulodro
e24aa057ad
Revise coupon behavior and add unit tests
2018-08-31 08:35:41 -07:00
Jeff Stieler
412a3fb17f
OBW: render the product dimension and weight units selection inline in a sentence.
2018-08-30 15:36:08 -06:00
Jeff Stieler
b3532dc4de
OBW: hook up WCS / ShipStation install in shipping step save handler.
2018-08-30 15:36:08 -06:00
Jeff Stieler
c179f7c5c6
OBW: remove live rates method setup from shipping step save handler.
2018-08-30 15:36:08 -06:00
Jeff Stieler
fde57ab5d9
OBW: recommend either WCS or ShipStation (based on location) for label printing on shipping step.
2018-08-30 15:36:08 -06:00
Jeff Stieler
2a243915f1
OBW: remove now defunct WCS shipping carrier by country helper function.
2018-08-30 15:36:08 -06:00
Jeff Stieler
23e0174c19
OBW: add information about live rate extensions to shipping step.
...
This commit also refactors the script/style enqueueing in the wizard.
2018-08-30 15:36:08 -06:00
Jeff Stieler
934b6e1698
OBW: remove live rates from shipping step.
2018-08-30 15:35:16 -06:00
Claudiu Lodromanean
dc55b9b002
Merge pull request #21232 from hahn208/fix/21229-shipping-class
...
#21229 Updated class attribute for shipping class meta box
2018-08-30 12:17:49 -07:00
Claudio Sanches
4738162c25
Improvements to wc_create_attributes (DRI)
2018-08-30 12:13:16 -07:00
Hahn
6623db017b
#21229 Updated class attribute for shipping class meta box
2018-08-30 12:17:43 -06:00
Claudiu Lodromanean
fd722da88a
Merge pull request #21188 from woocommerce/fix/21156
...
Updated phone validation and formatting rules.
2018-08-30 09:52:13 -07:00
Jeff Stieler
8a29945531
OBW: move Jetpack+WCS requirement description to plugin install info area at bottom of payment step.
2018-08-29 16:47:46 -06:00
Jeff Stieler
0028902eb2
OBW: change Stripe and PayPal account creation to opt-out and remove descriptions.
2018-08-29 16:44:47 -06:00
Rodrigo Primo
eee61b7880
Merge branch 'issue/21062' of https://github.com/kakshak/woocommerce into kakshak-issue/21062
2018-08-29 13:27:39 -03:00
Rodrigo Primo
e3cbebf29e
Merge pull request #21192 from woocommerce/fix/20979
...
Restrict category creation in importer to appropriate permissions
2018-08-29 11:27:49 -03:00
Rodrigo Primo
f1c2dbbf2b
Remove unneeded phpcs ignore comment
2018-08-29 10:34:06 -03:00
Rodrigo Primo
e28bdddbc2
Merge pull request #21191 from woocommerce/fix/21161
...
Only suppress comments number on unsupported theme shop page
2018-08-29 10:29:20 -03:00
Grzegorz Rola
9df10fac5a
Taxes should be rounded on subtotals in cart when option woocommerce_tax_round_at_subtotal is checked.
2018-08-29 13:43:13 +02:00
Grzegorz Rola
20ac4a8b69
Taxes should be rounded on subtotals in cart when option woocommerce_tax_round_at_subtotal is checked.
2018-08-29 13:34:22 +02:00
Grzegorz Rola
5c3f4c9c10
Revert "Taxes should be rounded on subtotals in cart when option woocommerce_tax_round_at_subtotal is checked."
...
This reverts commit dafcbc5
2018-08-29 13:25:22 +02:00
Grzegorz Rola
dafcbc56b0
Taxes should be rounded on subtotals in cart when option woocommerce_tax_round_at_subtotal is checked.
2018-08-29 13:22:51 +02:00
Claudiu Lodromanean
1258f242ff
Merge pull request #21204 from woocommerce/fix/21197
...
Corrected wording of stock quantity description.
2018-08-28 13:23:49 -07:00
Claudiu Lodromanean
8d21f4ad77
Merge pull request #21205 from woocommerce/fix/21107
...
Unslash city name to prevent double escape.
2018-08-28 13:04:23 -07:00
Claudiu Lodromanean
e1b1aca807
Merge pull request #21200 from madeincosmos/fix/21199
...
Enable PDT handling for custom pending payment statuses
2018-08-28 10:47:53 -07:00
Peter Fabian
964ee9ac1a
Unslash city name to prevent double escape.
2018-08-27 18:33:14 +02:00
Peter Fabian
32d3ff76c5
Use simple quote.
2018-08-27 17:28:29 +02:00
Peter Fabian
058f14e7d3
Corrected wording of stock quantity description.
2018-08-27 17:20:46 +02:00
Maria Górska
0369e3d622
Enable PDT handling for custom pending statuses
2018-08-27 12:10:36 +02:00
Gerhard Potgieter
43de3d00cd
Remove icanhazip service from ip lookup, their DNS is blacklisted and blocked by most servers.
2018-08-27 11:21:37 +02:00
claudiulodro
87054ece9a
Add hidden label on address line 2 input on checkout
2018-08-24 11:57:30 -07:00
claudiulodro
74645b13f9
Dont allow users without manage_product_terms permissions to create categories using the importer
2018-08-24 11:32:48 -07:00
claudiulodro
2e87ec3bf1
Only suppress comments number on unsupported theme shop page
2018-08-24 10:46:57 -07:00
Claudiu Lodromanean
66c7c244ca
Merge pull request #21186 from woocommerce/fix/string-i18n
...
Use entire sentence for checkout address_2 placeholder string
2018-08-24 10:04:54 -07:00
Claudiu Lodromanean
d72ffe48e7
Merge pull request #21180 from woocommerce/fix/21160
...
Make RO state required.
2018-08-24 09:53:53 -07:00
Claudiu Lodromanean
1b405c2c12
Merge pull request #21162 from wackywombaat12/Fix/20987
...
Fix/20987
2018-08-24 09:51:23 -07:00
Claudiu Lodromanean
a479ba1ff6
Merge pull request #21168 from woocommerce/fix/21079
...
Updated order of array traversal to respect user's order
2018-08-24 07:04:05 -07:00
Peter Fabian
897af8d20e
Updated phone validation and formatting rules.
2018-08-24 15:43:46 +02:00
Rodrigo Primo
e1aa7bba4d
Use entire sentence for checkout address_2 placeholder string
...
The placeholder string that is displayed in the address_2 field in the checkout was changed in #20639 to hide the "(optional)" part when the field is mandatory. The problem is that this was done splitting the sentence in two parts which goes against i18n best practices (https://developer.wordpress.org/themes/functionality/internationalization/#best-practices-for-writing-strings ) as the order of the words can be different depending on the language. This commit creates two full sentences one with the "(optional)" part and another one without it to better support the translation of both strings.
2018-08-24 09:45:16 -03:00
Peter Fabian
2e350fe5b7
Small PHPCS fix.
2018-08-24 09:21:49 +02:00
Gerhard Potgieter
bea8151533
Make RO state required.
2018-08-24 09:16:07 +02:00
Jack Boyle
63b84ef407
Fix Requested Changes
...
Changed to check if field exists and the field is not blank.
2018-08-24 13:03:09 +10:00
Claudiu Lodromanean
babfacd6bb
Merge pull request #21108 from woocommerce/fix/21025
...
Set tabindex=1 for notices
2018-08-23 13:11:08 -07:00
Andrew Minion
067a79c336
fix typo
2018-08-23 14:37:54 -04:00
Peter Fabian
f5fd36fbdf
Updated order of array traversal to respect user's order when changing order of attributes for variations.
2018-08-23 18:41:28 +02:00
Gerhard Potgieter
2ce1262f69
Humanize admin cancelled order emails
2018-08-23 09:38:16 +02:00
Gerhard Potgieter
903523638a
Admin new order default subject change
2018-08-23 09:06:28 +02:00
Gerhard Potgieter
679399b4b2
Humanize admin new order email
2018-08-23 09:04:24 +02:00
Jack Boyle
fd33f2c2a6
Added Tests
...
Added Tests for new wildcard functionality.
2018-08-23 15:23:35 +10:00
Jack Boyle
c4eda39177
Add wildcard handler for SKU and other meta values
...
Add wildcard handler for SKU and other meta values
2018-08-23 09:59:39 +10:00
Claudiu Lodromanean
fe69a875e2
Merge pull request #20993 from woocommerce/fix/20959
...
Changed wc_clean to checking for valid utf8 for line items and password.
2018-08-22 10:12:48 -07:00
Gerhard Potgieter
64c9b5fc6a
Merge pull request #21109 from woocommerce/fix/21057
...
Fix: properly output product structured data when product URL contains some non-ASCII characters
2018-08-22 13:09:14 +02:00
James Kemp
1ca1189f79
Add params to `woocommerce_variation_option_name` for admin variations
2018-08-22 11:49:17 +01:00
James Kemp
9fe201dd86
Add parameters to `woocommerce_variation_option_name` in admin view
2018-08-22 11:44:40 +01:00
James Kemp
111c2fded0
Add more parameters to `woocommerce_variation_option_name`
...
Add term, taxonomy, and product object to the `woocommerce_variation_option_name` filter.
2018-08-22 11:37:47 +01:00
kakshak
4d17ebeadc
fix(woocommerce): per cart coupon condition updated
2018-08-22 11:09:58 +05:30
kakshak
0f27d4799b
Merge branch 'master' of https://github.com/woocommerce/woocommerce into issue/21062
2018-08-22 11:03:55 +05:30
Claudiu Lodromanean
bfa36fe923
Merge pull request #21106 from woocommerce/fix/21027
...
Use refund currency when displaying refund amount
2018-08-21 12:46:59 -07:00
Claudiu Lodromanean
9777ba18ff
Merge pull request #21103 from woocommerce/fix/21093
...
Disabled postcode requirement for Bahrain.
2018-08-21 12:11:11 -07:00
Peter Fabian
5b0cc306a5
Moved the wc_kses_notice to wc-notice-functions.php and applied it in wc_print_notices().
2018-08-21 12:00:48 +02:00
Peter Fabian
9845c3c131
PHPCS.
2018-08-21 11:48:29 +02:00
Peter Fabian
ae05d6e5ea
Removed author tag and bumped version of templates to 3.5.0, factored out function to one common place.
2018-08-21 11:47:50 +02:00
Peter Fabian
9319b3c262
Bahrain postcode visible, but not required.
2018-08-21 11:15:09 +02:00
Rodrigo Primo
e1ac6317da
Include URL for the last element in breadcrumb list
...
I noticed that the structured data generated by WooCommerce doesn't pass Google Structured Data validation (https://search.google.com/structured-data/testing-tool ) due to the following error in the last element of the BreadcrumbList:
"The value provided for item.id must be a valid URL."
This happens because the code was explicitly omitting the URL for the last element. This commit simply removes this check and now an URL is included for every element (unless there is no URL set).
2018-08-20 18:02:38 -03:00
Rodrigo Primo
5e7c8c6959
Remove unneeded call to wc_clean() when outputting product structured data
...
This commit removes an unneeded call to wc_clean() before outputting product structured data to the browser. wp_json_encode() is called before the data is sent to the browser and it should be enough to escape it. wc_clean(), which calls sanitize_text_field() internally, was causing issues with the product URL when its name contained some non-ASCII characters (see #21057 for examples of characters).
2018-08-20 14:48:17 -03:00
Claudiu Lodromanean
42e2e4a4b2
Merge pull request #21073 from woocommerce/fix/20694
...
Show system status updates for woocommerce wp.org plugins
2018-08-20 10:29:01 -07:00
Peter Fabian
355d95db9d
Added tabindex 1 to Add to cart notices (View cart/Continue shopping).
2018-08-20 18:39:31 +02:00
Rodrigo Primo
b8354da6b1
Use refund currency when displaying refund amount
...
Use the refund currency when wc_price() is called to display the refund amount in the "Edit order" admin screen. Without this change, wc_price would use the store default currency which is a problem for stores that at some point changed their currency or stores using extensions which support multiple currencies.
2018-08-20 11:32:56 -03:00
Rodrigo Primo
aef5d3373c
phpcs fixes
2018-08-20 11:12:12 -03:00
Peter Fabian
a777f9b548
Disable postcode requirement for Bahrain.
2018-08-20 12:40:53 +02:00
kakshak
6c57b59353
fix: ability to apply coupon on a sale item even when the coupon is restricted to only non sale items
2018-08-18 13:02:51 +05:30
Peter Fabian
0f7b470167
Added test if request is a REST API request so that cart is not loaded.
...
Code inspired by WC_REST_Authentication::is_request_to_rest_api, but included also legacy API .
2018-08-17 19:13:44 +02:00
Peter Fabian
1a2f0d4a0b
Removed check for invalid utf8 in passwords.
2018-08-17 11:01:30 +02:00
Claudiu Lodromanean
6eea244a28
Merge pull request #21074 from woocommerce/fix/21026
...
Fixes two product attributes issues when non-ASCII characters are used in the attribute name
2018-08-16 13:22:16 -07:00
Claudiu Lodromanean
f1c6f3cb3e
Merge pull request #21065 from andgrankin/patch-1
...
Fixed typo in translations context
2018-08-16 12:59:57 -07:00
Claudiu Lodromanean
7a0b15b9ec
Merge pull request #21072 from woocommerce/fix/21071
...
Hide activate step in wizard when you cannot install plugins
2018-08-16 12:55:41 -07:00
Gerhard Potgieter
2c15bee1d4
Refine wp.org update check to use correct data structures when querying data.
2018-08-16 14:27:35 +02:00
Gerhard Potgieter
2625823734
Add fallback to wp.org plugin info check if the changelog check fails, this is for free plugins hosted on .org
2018-08-16 14:09:39 +02:00
Gerhard Potgieter
1b98c1e22e
Hide activate step on wizard when the user does not have install_plugins capability, administrators on multisites cannot install plugins, only super admins are allowed.
2018-08-16 12:38:27 +02:00
Tomáš Kavalek
34300a1c52
Added missing HTML filter for quantity
...
New filter into wc_add_to_cart_message which allows modify printed product quantity into message – for example in case of floats units – 1.2 kg (add_filter('woocommerce_stock_amount', 'floatval');)
2018-08-16 09:44:01 +02:00
David Marín
bc86676b7e
Update class-wc-meta-box-product-data.php
2018-08-16 09:28:48 +02:00
David Marín
6b3ef46f4e
Complete filter call
2018-08-16 09:28:03 +02:00
David Marín
97eddce025
Admin: New filter to customize variations count
...
Adding new filter to customize variations count, so internal-use variations can be hidden by plugins.
2018-08-16 08:37:25 +02:00
andgrankin
5bb55159a7
Fixed typo in translations context
...
When only one shipping package translation was not applied because of wrong context.
2018-08-16 12:30:42 +07:00
Rodrigo Primo
4d2530ef45
Fix: product attributes cache should work when non-ASCII characters are used
...
This commit fixes an issue in the code that sets product attributes that was breaking product attributes cache removal when non-ASCII characters are used in the attribute name. For more information see https://github.com/woocommerce/woocommerce/issues/21026#issuecomment-412111740
2018-08-15 13:24:33 -03:00
Rodrigo Primo
fef0cd48ea
phpcs fixes
2018-08-15 13:24:09 -03:00
Claudiu Lodromanean
ec0613ad78
Merge pull request #21056 from Luminus/fix-21055
...
Make postcode field optional and hidden for Nigeria and label State correctly
2018-08-15 08:38:13 -07:00
Luminus Olumide Alabi
798cd36f04
Make postcode field optional and hidden for Nigeria and label State correctly
2018-08-15 10:36:20 +01:00
Nico Mollet
cc9e904cfc
Standardize case of button View cart
...
Hello,
In this WC_Cart class, there are two string for `View cart`.
Line 1037 and line 1065.
The other `button wc-forward` buttons are first character uppercase only.
The PR changes `View Cart` to `View cart`.
Thank you
2018-08-15 09:13:59 +02:00
Claudiu Lodromanean
41a9994e52
Merge pull request #21051 from woocommerce/feature/add-cart-contents-filter
...
Add new filter to allow modifications of cart contents
2018-08-14 13:02:25 -07:00
Boro Sitnikovski
a1bec3f200
Update comment style
2018-08-14 21:30:02 +02:00
Boro Sitnikovski
1c4ef011d2
Add new filter to allow modifications of cart contents
2018-08-14 18:34:52 +02:00
Florian Ludwig
0f6f6814ad
Moves cart hash calculation to WC_Cart class
2018-08-14 18:08:55 +02:00
Rodrigo Primo
20fd569a55
Fix clearing filters in "Filter products by attribute" widget
...
This commit fixes an issue that was making it impossible to clear filters in the "Filter products by attribute" widget when the attribute name contained non-ASCII characters. The problem was caused by a call to sanitize_title() which doesn't seem necessary as it is sanitizing one of the widget parameters which is already sanitized in 679d719368/includes/widgets/class-wc-widget-layered-nav.php (L116)
. So this commit simply removes the sanitize_title() call. Even if we needed to sanitize the variable `$taxonomy`, it would be better to use sanitize_text_input_field() or wc_sanitize_taxonomy_name() as sanitize_title() will replace accented characters.
For more about the problem that is fixed by this commit see #21028
2018-08-14 11:45:57 -03:00
Rodrigo Primo
a637fe10b8
Merge pull request #21018 from Luminus/fix-21016
...
Make city field optional and hidden for Singapore addresses
2018-08-14 10:31:27 -03:00
Peter Fabian
4dce6ec050
Merge pull request #21011 from woocommerce/fix/21010
...
Allow usage of orderby sorting via GET params when using the shortcode.
2018-08-14 09:54:11 +02:00
Khan M Rashedun-Naby
e41a6199bb
Updated @todo comment
2018-08-14 13:11:23 +06:00
Khan M Rashedun-Naby
826e94f5a6
Added @todo comment to PHPDoc
2018-08-14 13:03:02 +06:00
Claudiu Lodromanean
28f4185899
Merge pull request #21038 from woocommerce/fix/21002
...
Update customer's ip address on successful payment.
2018-08-13 11:32:09 -07:00
Peter Fabian
ca08beaa42
Changed explicit check to implicit.
2018-08-13 19:44:33 +02:00
Peter Fabian
96b9ebae14
Merge pull request #21007 from woocommerce/fix/21000
...
jquery-blockui dependency for wc-add-to-cart and wc-add-to-cart-variation scripts.
2018-08-13 19:36:00 +02:00
Peter Fabian
84e008337c
Update customer's ip address on successful payment.
2018-08-13 14:37:21 +02:00
Peter Fabian
1c2f51ee86
Unslashed the SKU for variation.
2018-08-09 12:13:23 +02:00
Peter Fabian
d4fab78b05
PHPCS update.
2018-08-09 11:30:40 +02:00
Luminus Olumide Alabi
a3d8c6d599
Make city field optional and hidden for Singapore addresses
2018-08-09 10:02:09 +01:00
Claudiu Lodromanean
11911aa2ea
Merge pull request #20870 from woocommerce/add/export-products-based-on-category
...
Add category filter to product export functionality.
2018-08-08 08:51:58 -07:00
Gerhard Potgieter
1f4e86bd83
Allow exporting of variations for a parent product when a category is selected since variations are not tied to a category.
2018-08-08 14:45:57 +02:00
Chunkford
1b49a2d545
Update class-wc-product-variable-data-store-cpt.php
2018-08-08 12:45:03 +01:00
Gerhard Potgieter
a250b0044f
Add support for order as well to the shortcode
2018-08-08 13:44:47 +02:00
Chunkford
c9f60f7669
Update class-wc-product-variable-data-store-cpt.php
2018-08-08 12:31:38 +01:00
Gerhard Potgieter
2596796de3
Allow usage of orderby sorting via GET params when using the shortcode.
2018-08-08 11:05:27 +02:00
Gerhard Potgieter
7db8940d2d
Merge pull request #20982 from shabnam611/fix/20943
...
Fix for issue 20943: Removed unnecessary php tag [point 2] and removed a return false stat…
2018-08-08 10:51:31 +02:00
Shabnam
722c21066f
changed version to 3.5.0 and adjusted the curly brace
2018-08-08 13:27:54 +06:00
Gerhard Potgieter
90cc41c895
Make jquery-blockui dependencies for wc-add-to-cart and wc-add-to-cart-variation since it uses the block function but has not dependency on the woocommerce script.
2018-08-08 08:56:49 +02:00
Chunkford
a3c826c1e4
Giving the ability to add custom price data
...
I need a way to add my own pricing data to the variation data store, so I can check which price to display on the product and category pages, So instead of adding unnecessary load by leading each variation object to extract the data and meta I need, this gives me a way to get the data through the data store which in turns uses transients instead.
2018-08-07 22:39:05 +01:00
Gerhard Potgieter
b9a28b7ec2
Allow for multiple category selections when exporting.
2018-08-07 16:58:39 +02:00
Gerhard Potgieter
70e9b747e8
Merge pull request #20832 from rnaby/180718-010448-class-wc-checkout
...
HashTable Implemented
2018-08-07 12:26:08 +02:00
Rodrigo Primo
7922e68022
Merge pull request #20953 from woocommerce/fix/20927
...
Hide "Stock status" field for grouped products
2018-08-07 06:58:36 -03:00
Peter Fabian
925002bc37
Changed wc_clean sanitization to checking for valid utf8 and the input is later sanitized by WordPress db layer.
...
It caused issues in 2 places: Order item name (product name) and user's password.
2018-08-06 20:49:27 +02:00
Claudiu Lodromanean
d32a675c25
Merge pull request #20931 from woocommerce/fix/download-log-data-store
...
Fix: orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs()
2018-08-04 07:57:17 -07:00
Shabnam
4affbff47e
removed unnecessary php tag [point 2] and removed a return false statement[point 3]
2018-08-04 19:51:25 +06:00
Claudio Sanches
0b0fba824b
Returns only reviews and fixed prepared args
2018-08-02 14:01:46 -03:00
Gerhard Potgieter
19401ea7d0
Fix PHPCS errors on WC_Action_Queue and make sure to pass on correct variable in schedule_cront function.
2018-08-01 20:11:08 +02:00
Gerhard Potgieter
883a5f90eb
Fix PHPCS errors in WC_Queue class
2018-08-01 20:07:14 +02:00
Claudiu Lodromanean
71f67b0f2b
Merge pull request #20030 from thenbrent/issue_18003
...
Prototype using Action Scheduler Event Queue for Async Webhook Delivery
2018-08-01 09:57:56 -07:00
Rodrigo Primo
1274c61a7c
Hide "Stock status" field for grouped products
...
In the product admin page, the field "Stock status" should be hidden for grouped products as stock is controlled individually for each of the child products and setting a stock status in the parent product has no effect.
Fixes #20927
2018-08-01 10:30:21 -03:00
Rodrigo Primo
4f41f99cd2
phpcs fixes
2018-08-01 10:27:22 -03:00
Rodrigo Primo
deb48c7c7a
Merge branch 'master' of github.com:woocommerce/woocommerce
2018-07-31 16:12:22 -03:00
Rodrigo Primo
3f82ecee8c
Remove unnecessary uses of @codingStandardsIgnoreLine
2018-07-31 16:10:51 -03:00
Claudiu Lodromanean
3a6f14f380
Merge pull request #20905 from woocommerce/fix/20904
...
Fixes an issue with the 'woocommerce_grant_product_download_access' hook
2018-07-31 11:31:05 -07:00
Claudio Sanches
c98cb8b0fd
Introduced batch endpoint and set default for status
2018-07-31 13:33:33 -03:00
Claudio Sanches
48078f6bcc
DELETE /product/reviews/<id>
2018-07-31 12:37:44 -03:00
Claudio Sanches
a286bde484
PUT /products/reviews/<id>
2018-07-31 11:51:18 -03:00
Brent Shepherd
ab78e65af9
Update WC_Queue_Interface::get_next()
...
To more closely align return value with other date APIs in WC, namely
WC_Data. Includes changing return value to:
1. a WC_DateTime instead of a timestamp when a scheduled occurrence is found
2. null instead of false, similar to the default of WC_Data::set_date_prop()
2018-07-31 12:29:15 +10:00
Brent Shepherd
d9158a8c0e
Add WC_Queue and WC()->queue() wrapper for accessing it
...
To take care of instantiating a canonical job queue for use across
all of WooCommerce, and by 3rd party code.
Also use this new API for enqueuing webhooks instead of raw Action
Scheduler APIs.
2018-07-31 12:21:07 +10:00
Brent Shepherd
0611ff7665
Add WC_Action_Queue
...
As a wrapper for Action Scheduler. This implements the WC_Queue_Interface
so it can be used as WC core's job queue. Implementing WC_Queue_Interface
also means this class has more generic and appropriate job queue nomenclature
than Action Scheduler itself. For exsample, it provides a method for
non-delayed jobs, i.e. WC_Queue_Interface::add(), unlike Action Scheduler,
which requires scheduling a job for now(), which while fairly simple, is not
intuitive or immediately obvious to new comers.
This makes it both more clear and convenient to use Action Scheduler
as a simple job queue instead of just a queue for delayed jobs.
2018-07-31 12:21:04 +10:00
Brent Shepherd
8e4466c9c8
Add WC_Queue_Interface
...
To provide an agreed set of public methods that need to be defined
for any class wanting to act as WooCommerce's queue handler.
The require APIs support both delay jobs, by providing APIs to
schedule an action/job/event for some time in the future, and a
non-delayed job API, to add an event to the queue to run as soon
as possible.
2018-07-31 12:20:30 +10:00
Rodrigo Primo
b09bb3eee9
Fix: orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs()
...
This commit fixes a bug in WC_Customer_Download_Log_Data_Store::get_download_logs() that made impossible to change the order in which the query returned the results. This method accepts the arguments order_by and order, but it was ignoring them and always using the default values ('download_log_id' and 'ASC' respectively).
It also introduces a very basic unit test to cover the method main functionality and to make sure that the parameters order and orderby are not ignored anymore.
It seems that the modified method was inspired in WC_Customer_Download_Data_Store::get_downloads() before the same bug was fixed in #18620 .
2018-07-30 16:40:21 -03:00
Claudiu Lodromanean
dc191b58a4
Merge pull request #20916 from woocommerce/fix/20906
...
Do not use array_merge for appending to tax classes
2018-07-30 11:46:13 -07:00
Claudiu Lodromanean
28f1aed9b0
Merge pull request #20913 from shoheitanaka/patch-15
...
If email @local include non alphabet
2018-07-30 11:43:10 -07:00
Shohei Tanaka
d77990edde
Update it again
...
Thank you for the concrete method.
2018-07-29 09:17:39 +09:00
Claudiu Lodromanean
075cbd156e
Merge pull request #20915 from stromhalm/master
...
Merging plugin's tax_queries on REST endpoint, fixes #20914
2018-07-27 06:52:17 -07:00
Shohei Tanaka
f4db4ecad7
Update it
...
Do you mean it?
2018-07-27 19:12:17 +09:00
Adrian Jagusch
dc8d15356b
Ensure coding standards on #20914
2018-07-27 11:38:57 +02:00
Gerhard Potgieter
11832f937d
Use + instead of array_merge for appending to tax classes since it rewrites numeric keys which we allow in tax class names.
2018-07-27 11:18:16 +02:00
Gerhard Potgieter
75e462c448
Do not use array_merge for appending parent to tax classes rather +, array_merge will rewrite numeric keys which we allow for tax class names.
2018-07-27 11:16:28 +02:00
Adrian Jagusch
7b7bccaf21
Ensure coding standards on #20914
2018-07-27 10:51:15 +02:00
Claudio Sanches
2f3779afa9
POST method for product reviews endpoint
2018-07-26 16:31:17 -03:00
Claudiu Lodromanean
30d34dcf8c
Merge pull request #20910 from woocommerce/fix/tax-rate-non-numeric
...
Cast tax rate to float so that it can be treated as number further on.
2018-07-26 10:44:56 -07:00
Adrian Jagusch
2a2345acae
Fixes #20914
2018-07-26 17:32:08 +02:00
Shohei Tanaka
fdc9d42dc4
If email @local include non alphabet
...
If I input infoおおお@test.com as billing email address, automatically change to info@test.com by sanitize_email function.
So at first check the email address by is_email function, after that we must use sanitize_email function.
2018-07-27 00:18:09 +09:00
Peter Fabian
9bca5abb40
Cast tax rate to float so that it can be treated as number going forward.
...
In case no tax rate is specified for the default catch-all tax rate, the tax rate was an empty string which caused a PHP notice when it was later used in arithmetic operations.
2018-07-26 14:32:48 +02:00
Kanishk
4fc06834b6
Fix for #20904
2018-07-26 15:12:28 +05:30
Claudio Sanches
575575d280
Fixed reset password cookie when REQUEST_URI includes cyrillic alphabet
...
WordPress core doesn't try to satinize this either.
See: ae2b929294/wp-login.php (L646)
Closes #20895
2018-07-25 20:33:11 -03:00
Gerhard Potgieter
20a6c40bdf
Merge pull request #20856 from woocommerce/fix/custom-menu-order
...
Allow custom menu ordering when set by another filter
2018-07-25 13:55:58 +02:00
Brent Shepherd
e00e728f1f
Merge branch 'master' into issue_18003
2018-07-25 14:41:56 +10:00
Claudio Sanches
1137782c6a
Improved links
2018-07-24 15:56:46 -03:00
Claudio Sanches
7d07d52279
Allow _fields
2018-07-24 15:52:48 -03:00
Claudio Sanches
73938b642a
Allow fetch multiple reviews
2018-07-24 15:45:12 -03:00
Claudio Sanches
6233d8bdf0
Improved reviews schema
2018-07-24 15:10:41 -03:00
Claudiu Lodromanean
59de4c7148
Merge pull request #20879 from woocommerce/fix/20671
...
Update redirect option during activation of MailChimp in Install Wizard.
2018-07-24 11:07:00 -07:00
Claudiu Lodromanean
4c945f2e7e
Merge pull request #20854 from EmranAhmed/master
...
Prevent JS Issue if `woocommerce_available_variation` filter return false
2018-07-24 10:50:08 -07:00
Claudio Sanches
ac0f56244a
Fixed product reviews permission check
2018-07-24 14:38:32 -03:00
Claudiu Lodromanean
9886d678bb
Merge pull request #20812 from woocommerce/fix/20804
...
Do not build paypal pay link when no base country is set.
2018-07-24 10:31:34 -07:00
Claudiu Lodromanean
8cde592c54
Merge pull request #20787 from thenbrent/error_log_file_line
...
Expand fatal error logging and add file/line number to log entries
2018-07-24 10:28:38 -07:00
Claudiu Lodromanean
a0b4a8df03
Merge pull request #20611 from woocommerce/fix/20349
...
Allow filtering variations by attributes in API.
2018-07-24 10:25:36 -07:00
Claudiu Lodromanean
87acfa731d
Merge pull request #20260 from leglesslizard/master
...
Set low stock notification threshold per product
2018-07-24 10:23:15 -07:00
Claudio Sanches
809c2f0539
Merge branch 'feature/rest-api-v3' into feature/rest-api-reviews-v3
2018-07-24 14:01:50 -03:00
Peter Fabian
d679a88156
Update redirect option during activation of MailChimp in Install Wizard.
2018-07-24 12:29:10 +02:00
Gerhard Potgieter
865f724187
Add category filter to product export functionality.
2018-07-23 11:59:01 +02:00
Khan M Rashedun-Naby
90b6f98582
PHPDoc | Return type changed to string from array.
2018-07-20 22:59:41 +06:00
Khan M Rashedun-Naby
eb104ecd17
PHPDoc | Return type changed from array to string.
2018-07-20 22:53:16 +06:00
Emran Ahmed
f0151ca873
Re-indexing `get_available_variations` method values when `woocommerce_available_variation` filter return false.
...
### All Submissions:
* [x] Have you followed the [WooCommerce Contributing guideline](https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md )?
* [x] Does your code follow the [WordPress' coding standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/ )?
* [x] Have you checked to ensure there aren't other open [Pull Requests](../../pulls) for the same update/change?
<!-- Mark completed items with an [x] -->
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
### Changes proposed in this Pull Request:
Re-indexing `get_available_variations` method values.
Suppose you made changed with `woocommerce_available_variation` hook and skip returning some specific variation product with false value. There is `array_filter` function to filter empty values from `get_available_variations` but it keeps index which convert to js object rather then array on `single-product/add-to-cart/variable.php` template variation form `data-product_variations` attribute, and select box dropdown doesn't show. I just added `array_values` PHP function to reindex after `array_filter` function which convert to js array rather then js object before `get_available_variations` function return.
Closes # .
### How to test the changes in this Pull Request:
1. Before approving pull req just return false on a specific variation via `woocommerce_available_variation` filter.
2. Now check that variation product dropdown doesn't show. Because it needs to reindex array.
### Other information:
* [x] Have you added an explanation of what your changes do and why you'd like us to include them?
* [ ] Have you written new tests for your changes, as applicable?
* [x] Have you successfully ran tests with your changes locally?
<!-- Mark completed items with an [x] -->
### Changelog entry
> Enter a short summary of all changes on this Pull Request. This will appear in the changelog if accepted.
2018-07-20 20:14:57 +06:00
Alex Sanford
0e1ec203cd
Allow custom menu ordering when set by another filter
...
This fixes the case where another plugin sets custom menu ordering to be
true, but its filter runs before WooCommerce's filter. Otherwise
WooCommerce's filter will return false, and disallow the other plugin to
customize its menu items.
2018-07-19 17:39:41 -03:00
Emran Ahmed
33949f3c25
Prevent JS Issue if `woocommerce_available_variation` return false for a variation.
...
After checking some condition if `woocommerce_available_variation` filter return false. Then Option list don't show because of JS issue.
2018-07-20 01:33:25 +06:00
Peter Fabian
b9cdc760ac
Merge pull request #20817 from keefyhub/master
...
Add class names to `edit_category_fields()` to be inline with other f…
2018-07-19 18:45:00 +02:00
Peter Fabian
22059880cd
Merge pull request #20842 from rnaby/180718-221942-wc-data
...
Unnecessary Variables and Spaces Removed
2018-07-19 13:49:25 +02:00
Gerhard Potgieter
95a99a93b7
Just use src as there is no first index on src, it just returns the first char of the string which defeats the purpose of the check.
2018-07-19 11:53:28 +02:00
Gerhard Potgieter
2411214091
Forgot src
2018-07-19 11:38:37 +02:00
Gerhard Potgieter
dda30061f7
Make sure $attr[0] is set before referencing it.
2018-07-19 11:36:44 +02:00
Khan M Rashedun-Naby
25ab294d40
Unnecessay Spaces Removed
2018-07-19 10:33:22 +06:00
Claudio Sanches
09d50df86b
Merge pull request #20753 from ldybecklee/master
...
Fix product csv exporter get stock value
2018-07-18 21:23:44 -03:00
Gerhard Potgieter
ea2b3f9d7a
Merge pull request #20821 from woocommerce/fix/20718
...
Pass an instance of the background updater to the db update callbacks
2018-07-18 14:51:12 +02:00
Khan M Rashedun-Naby
416f4b64ee
HashTable Implemented
2018-07-18 01:37:08 +06:00
Khan M Rashedun-Naby
d56edfd53a
#20696 Cart widget Customizer selective refresh fix
2018-07-17 22:57:32 +06:00
ldybecklee
a7de4672dc
Update class-wc-product-csv-exporter.php
2018-07-17 12:10:55 +08:00
ldybecklee
0cf070ed5e
fix method 'get_column_value_stock'
2018-07-17 12:09:34 +08:00
Rodrigo Primo
b39b419e5b
Pass an instance of the background updater to the db update callbacks
...
This commit changes the way that WC_Background_Updater::task() calls the database update callbacks and adds the WC_Background_Updater instance as the first parameter to the callbacks. This is used in wc_update_350_order_customer_id() (36b6bd79c0/includes/wc-update-functions.php (L1870)
) to monitor memory usage while the function is running. This change was intended to ship with PR #17895 (see commit c77b2f20f4
) but was accidentaly removed when merging commit 083c994732
from another PR.
Fixes #20718
2018-07-16 14:24:42 -03:00
Rodrigo Primo
bfebd30565
Merge pull request #20726 from itowhid06/master
...
Convert hardcoded db prefix to dynamic db prefix. Fixes #20718
2018-07-16 14:21:45 -03:00
Keith Light
4144211754
Add class names to `edit_category_fields()` to be inline with other fields
...
Class names are added in `add_category_fields()` but not `edit_category_fields()`
2018-07-16 15:24:57 +01:00
Gerhard Potgieter
c7884003dc
Do not build paypal pay link when no base country is set.
2018-07-16 11:44:58 +02:00
Brent Shepherd
67744b7768
Add 'woocommerce_shutdown_error' action
2018-07-13 17:08:34 +10:00
Brent Shepherd
febea645f9
Log error's file and line number
...
To help with debugging.
2018-07-13 14:23:17 +10:00
Brent Shepherd
0c17fd49e4
Expand error logging to E_ERROR like errors
...
Including those triggered by code via trigger_error() and compile-time
parse errors (including those generated by Zend Scripting Engine).
2018-07-13 14:21:03 +10:00
Claudio Sanches
99840c3914
Merge branch 'master' into feature/rest-api-v3
2018-07-12 16:07:57 -03:00
Claudio Sanches
463447e9d9
Fixed path for data endpoints
2018-07-12 15:48:11 -03:00
Joey
6820de4f2f
removed all low_stock additions to api files
2018-07-12 11:55:16 +01:00
Peter Fabian
3fa3830b6c
Merge pull request #20757 from woocommerce/update/wc_get_user_agent
...
Make wc_get_user_agent respect RFC2616
2018-07-12 11:46:51 +02:00
Claudiu Lodromanean
6dbd5d5323
Merge pull request #20731 from woocommerce/add/20724
...
Do not load all tables in multisite system status
2018-07-11 13:42:52 -07:00
Gerhard Potgieter
f0bd830502
Do not return or store user agent in lower case as HTTP header fields values are case sensitive as per rfc2616
2018-07-11 13:54:14 +02:00
Peter Fabian
47d0bb7b6a
Removed variables that are not needed.
2018-07-11 13:44:43 +02:00
Gerhard Potgieter
7fa802071e
Merge pull request #20490 from dezio1900/master
...
Allow items to be changed in wc_save_order_items function
2018-07-11 12:52:36 +02:00
ldybecklee
327fd26c70
Fix product csv exporter get stock value
...
seems the original get stock value is wrong, but I'm not sure if my change is correct...
what i'm considering is this line: if ( $product->is_type( 'variation' && 'parent' === $manage_stock ) ) {
2018-07-11 17:28:50 +08:00
Gerhard Potgieter
3cda8c439c
Better table matching on multisite, hat tip to @claudiulodro for pointing me in the right direction.
2018-07-11 11:19:10 +02:00
Claudiu Lodromanean
1ef4aa10a0
Merge pull request #20728 from woocommerce/fix/20708
...
Add edit_theme_options capability to shop manager role
2018-07-10 12:01:13 -07:00
Claudio Sanches
9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
...
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudio Sanches
4fd6dbd880
Merge pull request #20740 from woocommerce/fix/20224-b
...
Escape sku input properly for quick edit
2018-07-10 15:22:09 -03:00
Claudio Sanches
3ed4dea4bb
Merge pull request #20723 from woocommerce/fix/20707
...
Only wordwrap plain emails
2018-07-10 15:21:57 -03:00
Claudio Sanches
1c7b2f3100
Merge pull request #20670 from woocommerce/pr/20669
...
Deleting a product via API should handle children products regardless of type.
2018-07-10 15:16:13 -03:00
Gerhard Potgieter
ac09473853
Escape sku input properly for quickedit
2018-07-10 10:56:49 +02:00
Gerhard Potgieter
36b6bd79c0
Add update routines to recreate user roles
2018-07-10 10:30:11 +02:00
Claudiu Lodromanean
af98ef66e7
Merge pull request #20730 from woocommerce/fix/20716
...
Fix log file deletion
2018-07-09 11:35:45 -07:00
Claudiu Lodromanean
24a1ccf5fc
Merge pull request #20732 from woocommerce/update/20709
...
Outdated templates notice improvements
2018-07-09 11:27:46 -07:00
Claudiu Lodromanean
4d0890bf3b
Merge pull request #20714 from yratof/yratof-patch-item-name
...
Added filter on item name in quotes
2018-07-09 11:06:45 -07:00
Claudiu Lodromanean
e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
...
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Peter Fabian
3af9c1e95b
Merge branch 'master' into fix/20349
...
# Conflicts:
# tests/framework/helpers/class-wc-helper-product.php
# tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian
2839dba7d2
Switched implementation of variation query parameters in the API from SQL query adjustment to one extra parent query.
2018-07-09 17:14:12 +02:00
Gerhard Potgieter
56a9799e6d
Merge pull request #20654 from woocommerce/update/get-terms
...
Custom tables - remove get terms
2018-07-09 15:27:26 +02:00
Gerhard Potgieter
a4e3283b20
Update outdated templates notice
2018-07-09 15:10:49 +02:00
Gerhard Potgieter
beaa610cc0
Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment.
2018-07-09 13:48:05 +02:00
Gerhard Potgieter
1fdcf2a238
Fix log file deletion functionality.
2018-07-09 13:01:23 +02:00
Gerhard Potgieter
ef2f868b89
Add edit_theme_options capability to shop manager to allow access to customizer for changing WooCommerce settings.
2018-07-09 10:45:48 +02:00
Towhidul Islam
7a957cc130
Convert hardcoded db prefix to dynamic db prefix. Fixes #20718
2018-07-08 10:35:32 +06:00
claudiulodro
38324edc71
Only wordwrap plain emails
2018-07-06 13:29:01 -07:00
Andrew Lazarus
d49f02a4e6
Updated prefix in filter
2018-07-06 19:04:08 +02:00
Claudiu Lodromanean
404fbca655
Merge pull request #20722 from woocommerce/tweak/image-size-filters
...
Add image size filters to wc_get_product_attachment_props()
2018-07-06 09:38:39 -07:00
Claudiu Lodromanean
9792f3399e
Merge pull request #20706 from woocommerce/fix/20705
...
Fixed Webhooks and REST API Keys list table and settings
2018-07-06 09:26:44 -07:00
Tiago Noronha
fda124147b
phpcs
2018-07-06 16:36:19 +01:00
Tiago Noronha
9970f1799a
Add image size filters to wc_get_product_attachment_props()
2018-07-06 16:35:43 +01:00
Brent Shepherd
3993126f78
Set array keys on scheduled webhook action
...
To make it clearer in the database what the args refer to, e.g.
instead of storing the scheduled action's args as:
[1,123]
This patch changes it so that the args are stored as:
["webhook_id":1,"arg":123]
This has no impact on callbacks on the hooks, they are still passed
the args as normal.
2018-07-06 15:41:22 +10:00
Brent Shepherd
9aee2fa97b
Add webhook group for scheduled aysnc deliveries
...
This will make it possible in future to run queues specifically for
delivering webhooks, instead of deliering webhooks in the same queue
as other actions, like scheduled payments, emails or other actions
scheduled by other plugins. This can be used to provide better
control over webhook delivery, which allows for sending webhooks more
quickly than if they are only included in batches of other actions.
2018-07-06 15:41:22 +10:00
Brent Shepherd
f28f809edb
Use Action Scheduler for async webhook delivery
2018-07-06 15:41:22 +10:00
Brent Shepherd
b4c7e590b1
Load Action Scheduler lib
2018-07-06 15:41:22 +10:00
Brent Shepherd
cfb1239c3b
Merge commit '10c4a515e40b9d3f5903b15e97376bb153e38c61' as 'includes/libraries/action-scheduler'
2018-07-06 15:40:54 +10:00
Andrew Lazarus
97269fc5d9
Added filter on item name in quotes
...
Filter added to item in quotes.
Initially was thinking that is it needed to translate the quotes only? I can't find any languages that do this specifically, but if it's a RTL language, perhaps you'd swap around the quote direction.
The function `wc_add_to_cart_message` gives you the filter `wc_add_to_cart_message` to play with, but is already set in stone as HTML, and if you truly want to change the HTML of this message, you would need to rewrite the function.
Simply adding `<strong>` to the product title is not possible without preg_replacing or hooking into gettext
2018-07-05 16:10:32 +02:00
Claudio Sanches
b044e4c46d
Fixed missing bulk action notices for REST API keys
2018-07-04 16:24:27 -03:00
Claudio Sanches
8f3af95004
Fixed revoke key bulk action
2018-07-04 16:09:04 -03:00
Claudio Sanches
44f081ac7e
Prevents save notice in keys table list
2018-07-04 16:07:17 -03:00
Claudio Sanches
1cf0c78beb
Prevents "Your settings have been saved." notices on the table list
2018-07-04 16:04:47 -03:00
Claudio Sanches
7e94f45f12
Custom search box
2018-07-04 15:43:31 -03:00
Claudio Sanches
3774a05077
Only use "post" in list table
2018-07-04 15:43:13 -03:00
Claudio Sanches
2a0a826be1
Fixed form parameters for webhooks and keys admin forms
...
Fixes #20705
2018-07-04 15:30:08 -03:00
Claudio Sanches
47cb949ea4
Reviews
2018-07-04 15:15:33 -03:00
Paul Dechov
adceaffaa2
OBW: Change name of PayPal Express Checkout gateway to match rebranding
2018-07-04 10:46:19 -04:00
Claudiu Lodromanean
7b56840f36
Merge pull request #20695 from woocommerce/fix/20684
...
Check if $_POST['store_state'] is set before using it
2018-07-03 11:11:16 -07:00
Claudiu Lodromanean
78015f7265
Merge pull request #20690 from woocommerce/fix/20677
...
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-03 11:02:44 -07:00
Claudiu Lodromanean
8cf0d9c2e8
Merge pull request #20687 from LiamMcArthur/patch-1
...
Disable autocomplete from report date inputs #20683
2018-07-03 10:52:37 -07:00
Claudiu Lodromanean
06b749edeb
Merge pull request #20665 from woocommerce/fix/20656
...
Store name and other data to customer session during checkout
2018-07-03 10:30:31 -07:00
Claudiu Lodromanean
233b839908
Merge pull request #20678 from maciekpaprocki/patch-1
...
Wrong php doc for get_cart_contents()
2018-07-03 10:11:40 -07:00
Claudiu Lodromanean
98b3b6305d
Merge pull request #20661 from woocommerce/fix/16620
...
Use view context so true is not returned if parent is stock managed and not the variation
2018-07-03 10:08:47 -07:00
Joey Gilham
58cdd7dad2
Merge branch 'master' into master
2018-07-03 15:41:15 +01:00
Joey
4e0412e0d8
removed redundant trigger for low stock notifications
2018-07-03 14:48:53 +01:00
Joey
375ef48186
updated wc_get_low_stock_amount function
2018-07-03 14:42:58 +01:00
Rodrigo Primo
7cdcae5bff
Check if $_POST['store_state'] is set before using it
...
Fixes #20684
2018-07-03 09:48:35 -03:00
Rodrigo Primo
a106b324bf
Ignore specific PHPCS rules instead of all rules
2018-07-03 09:42:59 -03:00
Peter Fabian
5459d1149d
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-02 18:58:42 +02:00
Liam McArthur
0ddb61273c
Disable autocomplete from date inputs
...
Disabling autocomplete from these date inputs prevents browser autocomplete from overlaying datepicker.
2018-07-02 15:55:26 +01:00
Peter Fabian
70d876d122
Replaced query attribute placeholder with actual value for header link.
2018-07-02 16:02:54 +02:00
maciekpaprocki
db403b2805
Wrong php doc for get_cart_contents()
2018-07-01 18:12:04 +01:00
Claudiu Lodromanean
5e1e8a36a5
Merge pull request #20650 from woocommerce/fix/20641
...
Hide preview button
2018-06-29 13:34:55 -07:00
Mike Jolley
a480cff0d2
Logic is not grouped specific; only for product types with children
2018-06-29 15:24:17 +01:00
Eleanor Martin
c94a5df7a4
Allowing API deletion of grouped products. #20666
2018-06-29 15:01:10 +01:00
Mike Jolley
fe25006fa1
Store name and other data to customer session during checkout
2018-06-29 12:42:10 +01:00
Mike Jolley
ddb779e917
Check type correctly
2018-06-29 11:22:03 +01:00
Mike Jolley
b3b03755d7
update selector
2018-06-29 11:16:44 +01:00
Mike Jolley
4ac235a6e5
Use view context so true is not returned if parent is stock managed and not the variation.
2018-06-29 10:37:56 +01:00
Claudiu Lodromanean
920eb551a6
Merge pull request #20644 from woocommerce/update/dynamic-placeholders
...
Make placeholders resize based on aspect ratio settings
2018-06-28 12:01:28 -07:00
Mike Jolley
1852672761
Allow access to list table
2018-06-28 16:39:27 +01:00
Mike Jolley
46141595d4
Remove term usage
2018-06-28 16:39:07 +01:00
dezio1900
ac52ce4bad
Update wc-admin-functions.php
2018-06-28 16:31:03 +02:00
Mike Jolley
3174aff57f
Hide preview button
2018-06-28 14:59:04 +01:00
Mike Jolley
e5423bd9c5
Merge pull request #20630 from Chunkford/patch-1
...
Add filter to a coupon's user usage limit
2018-06-28 14:33:37 +01:00
Mike Jolley
a6c5065718
Merge pull request #20633 from aelia-co/tweak-shipping_method_add_rate_filter
...
Added new filters when adding shipping rates
2018-06-28 14:29:28 +01:00
Mike Jolley
64b589f032
Get image from ID, not post thumbnail
2018-06-28 13:10:25 +01:00
Diego Zanella
9c9bdb0b2e
Changed prefix for new filters to "woocommerce_shipping_method_"
2018-06-27 22:00:25 +01:00
Mike Jolley
9bead7a702
Merge pull request #20617 from woocommerce/add/20603
...
Convert product categories widget to use selectWoo.
2018-06-27 18:52:01 +01:00
Mike Jolley
ff0e492a41
Setting
2018-06-27 18:38:36 +01:00
Mike Jolley
6b68c15309
Placeholder image styling
2018-06-27 18:13:39 +01:00
Mike Jolley
4fc64e85a6
Create placeholder image on install
2018-06-27 17:47:30 +01:00
Claudiu Lodromanean
2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
...
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Diego Zanella
ab3b6b5433
Fixed call to filter woocommerce_shipping_add_rate_args
2018-06-27 16:09:22 +01:00
Mike Jolley
bf9d0ff053
Merge pull request #20634 from woocommerce/enhance/20626
...
Make it easier to customize products list table filters
2018-06-27 15:20:12 +01:00
Mike Jolley
b838f3be4a
Merge pull request #20637 from woocommerce/fix/20616
...
Better phone number cleaning for wc_format_phone_number
2018-06-27 15:04:05 +01:00
Mike Jolley
1186a62d04
Merge pull request #20639 from woocommerce/pr/20622
...
Update Pr/20622 - conditionally add optional text to address 2 field
2018-06-27 10:33:06 +01:00
Mike Jolley
0e589f641e
Allow string reuse by moving brackets outside of string.
2018-06-27 10:31:41 +01:00
Gerhard Potgieter
2df62edec1
Improve the replacement for wc_format_phone_number a bit more, seems like we allow spaces and plus signs, remove non visible unicode with seperate preg_replace
2018-06-27 09:37:44 +02:00
Gerhard Potgieter
7a3caa0608
This changes wc_format_phone_number to discard all characters except numbers and the + sign, not sure if + sign must be stripped but in the current version it was not stripping the + sign
2018-06-27 09:05:32 +02:00
claudiulodro
9fa038e1ab
phpcs
2018-06-26 13:36:13 -07:00
claudiulodro
59356aa644
Make it easier to customize product filters
2018-06-26 13:31:57 -07:00
Claudiu Lodromanean
3bff14974c
Merge pull request #20629 from vishalkakadiya/fix/remove-unwanted-condition
...
Remove unwanted(double) condition for address line 2
2018-06-26 12:20:18 -07:00
Diego Zanella
25817b9236
Added new filters when adding shipping rates
...
Ref. https://github.com/woocommerce/woocommerce/issues/20632
2018-06-26 20:15:54 +01:00
Claudiu Lodromanean
0cd54b67c7
Merge pull request #20606 from woocommerce/refactor/order-again
...
Refactor "order again"
2018-06-26 12:10:55 -07:00
Chunkford
0d9bf1e19c
Update class-wc-discounts.php
2018-06-26 17:22:09 +01:00
Chunkford
469c8f2d10
Add filter to a coupon's user usage limit
...
I need to be able to mark a coupon as unlimited use per user if a certain criteria is met
2018-06-26 16:32:08 +01:00
vishalkakadiya
d765ca9ec4
ISSUE-20621 Move space outside of the localised string
2018-06-26 20:30:29 +05:30
vishalkakadiya
95d7dc0933
ISSUE-20621 Address feedbacks
2018-06-26 19:18:29 +05:30
vishalkakadiya
9dea1e98db
Merge branch 'master' into fix/issue-20621
2018-06-26 18:44:09 +05:30
vishalkakadiya
dd14157682
ISSUE-20621 Add (optional) text on condition bases
2018-06-26 18:43:53 +05:30
vishalkakadiya
c6fa14fe53
Remove unwanted(double) condition for address line 2
2018-06-26 18:21:29 +05:30
Mike Jolley
a4e0ba2958
feedback
2018-06-26 13:49:57 +01:00
Mike Jolley
d394dec5f2
Merge pull request #20591 from yratof/tweak/issue-20590
...
Wrapped 'FREE' with a filter to allow different use cases
2018-06-26 13:43:44 +01:00
Mike Jolley
ed1cb59840
Merge pull request #20608 from woocommerce/fix/20594
...
Check if array index exists before using it
2018-06-26 13:39:46 +01:00
Mike Jolley
35a50e5617
Merge pull request #20586 from woocommerce/feature/add-tax-calc-filter
...
Add filter for tax calculation in cart totals
2018-06-26 13:39:21 +01:00
Mike Jolley
fb85c7d057
Merge pull request #20547 from woocommerce/update/emogrifier-2.0
...
Update Emogrifier to 2.0
2018-06-26 13:38:48 +01:00
Mike Jolley
91738bc5a8
Merge pull request #20011 from woocommerce/update/19961
...
On the fly image generation for frontend
2018-06-26 13:37:37 +01:00
Gerhard Potgieter
4c54dedd9d
Rredirect to shop page when product categories dropdown filter is cleared.
2018-06-26 11:54:04 +02:00
vishalkakadiya
f282b4f126
ISSUE-20621 Remove (optional) text from Address line 2 field's placeholder
2018-06-26 00:10:47 +05:30
Claudiu Lodromanean
d0491072e8
Merge pull request #17895 from woocommerce/update/use-post-author-for-customer-id
...
Use post_author instead of the post meta '_customer_user'
2018-06-25 11:23:59 -07:00
Gerhard Potgieter
345416312a
Move selectwoo support to widget class to avoid it running on admin pages.
2018-06-25 15:58:18 +02:00
Rodrigo Primo
f175e62286
Merge pull request #20549 from woocommerce/update/improve-layered-nav-performance
...
Improve WC_Query::get_layered_nav_chosen_attributes() performance
2018-06-25 09:35:21 -03:00
Andrew Lazarus
d9c031d8c6
Removed whitespace to pass travis check
2018-06-25 13:24:07 +02:00
Mike Jolley
ff8781a406
Merge pull request #20615 from rnaby/250618-121609
...
Log Abstract Class Methods Refactoring
2018-06-25 12:09:05 +01:00
Mike Jolley
525ea24160
Merge pull request #20614 from rnaby/250618-120045
...
@throws PHPDoc Fix
2018-06-25 12:07:44 +01:00
Gerhard Potgieter
664abe2015
Convert product categories widget to use selectWoo.
2018-06-25 12:25:16 +02:00
Andrew Lazarus
c9e0055bdd
Refactored get_cart_shipping_total()
...
Refactored to pass all routes through filter, renamed the filter to match the function.
2018-06-25 11:17:08 +02:00
Khan M Rashedun-Naby
cb945a8816
Specified where the Exception is coming from
2018-06-25 15:04:49 +06:00
Khan M Rashedun-Naby
71a0fc7f89
Log Abstract Class Methods Refactoring
2018-06-25 12:40:55 +06:00
Khan M Rashedun-Naby
21c5dacdb1
@throws PHPDoc Fix
2018-06-25 12:05:42 +06:00
Peter Fabian
ef3d32699c
Fixed missing key errors.
2018-06-23 13:55:42 +02:00
Peter Fabian
60cd5caac2
Fixed terms fetching bug introduced in #20079 .
2018-06-23 13:53:50 +02:00
GlennMartin1
fdbefd436a
fix typo
...
change: "Active" to "Activate"
2018-06-22 15:29:14 -04:00
Andrew Lazarus
7eac354d3b
Added $this to the FREE filter to allow interaction with cart object
2018-06-22 16:03:57 +02:00
Andrew Lazarus
b29036c08d
Updated filter naming convention for Free!
2018-06-22 16:00:28 +02:00
Rodrigo Primo
e6c1ab38a8
Fix PHPCS error
2018-06-22 10:31:42 -03:00
Rodrigo Primo
b917522160
typo
2018-06-22 10:13:12 -03:00
Rodrigo Primo
df3306084e
Check if array index exists before using it
...
WC_Geolite_Integration::get_country_iso() sometimes returns null instead of an array, so this commit adds a check to account for that possibility before using the returned value. Doing this to prevent the following undefined index notice:
PHP Notice: Undefined index: country in wp-content/plugins/woocommerce/includes/class-wc-geolite-integration.php on line 60
Fixes #20594
2018-06-22 10:13:12 -03:00
Mike Jolley
759b99ad14
Order again and merge cart handling
2018-06-22 13:32:45 +01:00
Mike Jolley
f9530c3ba2
Remove order again from URls
2018-06-22 13:32:21 +01:00
Mike Jolley
5ad0e12602
Store meta after login so we know when cart needs to merge
2018-06-22 12:39:21 +01:00
Mike Jolley
f89724b718
Remove order again from form handler
2018-06-22 12:39:06 +01:00
Mike Jolley
211ef53a53
Pass link to template file. Use cart URL to avoid redirects.
2018-06-22 10:40:56 +01:00
Bharat Kambariya
fdeadcdbea
fix param doc for update_meta and add_meta fn.
2018-06-21 11:47:18 +05:30
Mike Jolley
a17945d9a8
Merge pull request #20574 from woocommerce/fix/20551
...
Fix: set order status to refunded when a PayPal transaction is refunded
2018-06-20 14:56:25 +01:00
Andrew Lazarus
38b904a09a
Wrapped 'FREE' with a filter to allow different use cases for no shipping rate returning
2018-06-20 15:12:27 +02:00
Claudiu Lodromanean
3504732d6b
Merge pull request #20572 from woocommerce/fix/20565
...
API: Return error code if parent is invalid when updating attributes.
2018-06-20 06:01:05 -07:00
Claudiu Lodromanean
cff90bb3c0
Merge pull request #20579 from woocommerce/fix/20554
...
Fix: display products on sub-subcategories when sorting parent category by price
2018-06-20 06:00:03 -07:00
Boro Sitnikovski
15cbe7daee
Pass current object as context
2018-06-20 14:16:14 +02:00
Boro Sitnikovski
1b90d8114c
Add filter for tax calculation in cart totals
2018-06-20 10:51:05 +02:00
Rodrigo Primo
c1960167f4
Fix: display products on sub-subcategories when sorting parent category by price
...
The algorithm to add a list of product categories to the query that order products of a given category by price was including only first level sub-categories since PR #20391 . This was happening because `get_terms()` when called with the argument `parent` will only return direct children. To fix this and get all children for a given product category, it was necessary to replace `parent` with the argument `child_of`. See #20554 for a more detailed description of the issue that this commit fixes.
2018-06-19 15:47:43 -03:00
Rodrigo Primo
5f6b0df7b2
PHPCS fixes
2018-06-19 15:46:33 -03:00
Claudiu Lodromanean
4c998f06c4
Merge pull request #20550 from woocommerce/update/mailing-list-signup
...
Mailing list - update form action
2018-06-19 08:19:02 -07:00
Claudiu Lodromanean
ec5fcc333e
Merge pull request #20573 from woocommerce/fix/20521
...
Update status based on stock, always
2018-06-19 07:41:55 -07:00
Mike Jolley
245e1768f9
Bump version so update routine gets triggered in master
2018-06-19 15:34:45 +01:00
Mike Jolley
49d0a09242
Merge pull request #20569 from davefx/patch-8
...
Cast multiselect and select keys as strings
2018-06-19 15:22:22 +01:00
Mike Jolley
f6519e3361
Merge pull request #20524 from woocommerce/add/wootenbergjitm
...
Wootenberg JITM
2018-06-19 15:20:16 +01:00
Rodrigo Primo
5b5256370a
Ignore a single PHPCS rule instead of ignoring all rules
...
Replace the usage of `// @codingStandardsIgnoreStart` and `// @codingStandardsIgnoreEnd` with `// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores` on WC_Gateway_Paypal_IPN_Handler::check_response(). Ignoring a single PHPCS rule is better than ignoring everything to protect the line against potential violations of the other rules.
2018-06-19 10:44:45 -03:00
Rodrigo Primo
9263a0b169
Fix: set order status to refunded when a PayPal transaction is refunded
...
Commit c7a3fd2
changed the logic to check if the refund is a full refund to use the strict equal operator (`===`) in the following line:
25be9fc13c/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php (L295)
This change broke the comparison as `$order->get_total()` will return the value respecting the number of decimals after the decimal point set in the option `woocommerce_price_num_decimals` and `wc_format_decimal()`, when called without a second parameter, will not format the received value to use the same number of decimals set in `woocommerce_price_num_decimals`. To fix this issue, this commit passes `wc_get_price_decimals()` as the second parameter to `wc_format_decimal()`. This way both values will always have the same number of decimals and the comparison should work when handling a full refund.
Fixes #20551
2018-06-19 10:42:27 -03:00
Mike Jolley
0cee6a69b0
Update status based on stock, always
2018-06-19 13:35:17 +01:00
Mike Jolley
66ae57699a
Return error code if parent is invalid
2018-06-19 12:54:57 +01:00
Joey
cd8416122f
removed low stock options for variations, and addressed changes
2018-06-19 12:40:27 +01:00
David Marín
f28b00d5df
Fixing bug: I was casting the wrong value 😖
2018-06-19 13:31:48 +02:00
Mike Jolley
e0ccc64571
Merge pull request #20560 from shivapoudel/tweak/admin-bar-menu
...
Tweak - logged in user is also checked by is_admin_bar_showing
2018-06-19 10:58:42 +01:00
Gerhard Potgieter
90387e7d7e
Revert "Deprecate manage_stock methods in favor of stock_status methods."
...
This reverts commit 2d9c058876
.
2018-06-19 11:54:07 +02:00
Gerhard Potgieter
8602fd0276
Revert "Deprecate wc_get_product_variation_attributes in favour of WC_Product::get_attributes()"
...
This reverts commit fe7a6c25df
.
2018-06-19 11:53:50 +02:00
Gerhard Potgieter
2d9c058876
Deprecate manage_stock methods in favor of stock_status methods.
...
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/100
2018-06-19 11:35:57 +02:00
Gerhard Potgieter
fe7a6c25df
Deprecate wc_get_product_variation_attributes in favour of WC_Product::get_attributes()
...
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/102
2018-06-19 11:22:24 +02:00
David Marín
6649569aa2
Update abstract-wc-settings-api.php
2018-06-19 07:12:39 +02:00
David Marín
597ba7df98
Cast multiselect keys as strings
2018-06-19 06:41:44 +02:00
Rodrigo Primo
5c5cddf26a
Add @return for wc_update_350_order_customer_id() docblock
2018-06-18 15:17:39 -03:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
claudiulodro
1890ef788d
Persist wootenberg notice dismissal
2018-06-18 10:54:01 -07:00
claudiulodro
7148f8da2d
Install/activate the plugin from the notice
2018-06-18 10:42:52 -07:00
Gerhard Potgieter
36d1c318cb
Download Log FK Contraint check ( #20478 )
...
This PR introduces a check on the permission_id FK to ensure that it is not added multiple times on upgrades. It also names the key specifically to ensure future changes to the key can be targeted properly and removes old keys that were added since 3.4.0.
* Add FK check before adding the FK. Also give the FK a name to avoid auto generated names and duplicate keys.
* Remove additional OR
* Remove additional OR
* Final FK check query
* Add foreign key cleanup routine to 3.4.3 db version
* Only check on named foreign key now that we have a cleanup routine in place, use specific phpcignore
* Rework formatting of SQL query
* Change way to fetch and add FK, can't use procedural SQL, needs to be done via statements.
* Add table name to lookup
* Only clean up FK on the wc_download_log table
* Remove erenouse bracket
2018-06-18 11:47:47 -03:00
Shiva Poudel
dcc2e595f2
Tweak - logged in user is also checked by is_admin_bar_showing
2018-06-18 16:52:56 +05:45
Peter Fabian
1a3b5b165d
Factor out parent table name to variable, allow big SELECT.
2018-06-18 10:15:36 +02:00
Dan Wyman
f41b774dc2
Mailing list - update form action
...
Mailing list form now identifies itself to the mailing list server.
2018-06-15 14:27:43 -07:00
Rodrigo Primo
b6e73f528b
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-15 14:56:31 -03:00
Rodrigo Primo
7a7130c9d0
Improve WC_Query::get_layered_nav_chosen_attributes() performance
...
This commits improves the performance of the method WC_Query::get_layered_nav_chosen_attributes() when a site has a significant number of product attributes. Instead of looping over all existent product attributes to find which have been passed in the request, the new code loops over all the request parameters and checks which are valid product attributes.
On a test site with 2000 product attributes, the old version of WC_Query::get_layered_nav_chosen_attributes() was responsible for 25% of the shop page generation time. With the new version, the amount that this method contributes to the page generation time is negligible.
Related #20262
2018-06-15 14:39:56 -03:00
Rodrigo Primo
35d5bf31dd
phpcs fixes
2018-06-15 14:26:47 -03:00
Claudiu Lodromanean
25be9fc13c
Merge pull request #20546 from woocommerce/fix/20509
...
Normalize parent tax class
2018-06-15 09:23:27 -07:00
Claudiu Lodromanean
ee47ceb361
Merge pull request #20537 from woocommerce/update/transactions-revert
...
Transactions, caching, and version transient cleanup issues
2018-06-15 09:11:23 -07:00
Claudiu Lodromanean
c203ff16d9
Merge pull request #20482 from woocommerce/fix/20452
...
Avoid price setting when synced with children
2018-06-15 09:05:13 -07:00
Claudiu Lodromanean
fc02687545
Merge pull request #20470 from woocommerce/update/20454
...
Support limiting search results
2018-06-15 09:03:07 -07:00
Claudiu Lodromanean
843f19738a
Merge pull request #20458 from woocommerce/update/13359
...
Improved Stock Reduction Events
2018-06-15 09:00:32 -07:00
Mike Jolley
7800ca284a
Merge branch 'pr/20500'
...
Arguments passed to end function should be passed by reference.
2018-06-15 15:50:06 +01:00
Mike Jolley
880cebbe1b
align
2018-06-15 15:49:51 +01:00
Mike Jolley
a0eb6843c2
define limit query
2018-06-15 15:28:29 +01:00
Risto Niinemets
174fd95765
fix undefined index attribute in layered nav widget without attributes ( #20544 )
2018-06-15 15:20:21 +01:00
Mike Jolley
5e6405b650
Merge branch 'master' into update/13359
2018-06-15 15:12:12 +01:00
Mike Jolley
04e304921a
Show stock based on querystring var
2018-06-15 15:11:07 +01:00
Mike Jolley
f633d9a0eb
Update remove item notice based on order status
2018-06-15 14:38:35 +01:00
Mike Jolley
a1bd9ab2ae
Input type number with correct width
2018-06-15 14:32:30 +01:00
Mike Jolley
17e97c2580
Clear version cache if time is unchanged
2018-06-15 13:56:23 +01:00
Mike Jolley
217e825e22
supports_emogrifier
2018-06-15 12:43:27 +01:00
Mike Jolley
be9162e869
Remove namespace
2018-06-15 12:43:19 +01:00
Mike Jolley
c3144012a5
Include as needed
2018-06-15 12:43:10 +01:00
Mike Jolley
0d79ced8e4
Update emogrifier
2018-06-15 12:25:07 +01:00
Mike Jolley
a8e2eaee2a
Normalize parent tax class
2018-06-15 11:35:22 +01:00
Claudiu Lodromanean
4c47574d7c
Merge pull request #20533 from woocommerce/fix/20505
...
Round items for order total
2018-06-14 09:11:57 -07:00
Mike Jolley
4b1e08b9b9
Merge pull request #20445 from roshansameer/webhook-bulk-delete-bottom
...
Fix - on webhook bulk action footer delete selection
2018-06-14 17:00:57 +01:00
Mike Jolley
9b0de1a221
Missing static keyword
2018-06-14 16:35:34 +01:00
Claudiu Lodromanean
cdee048337
Merge pull request #20531 from woocommerce/fix/20519
...
Shipping tax may be a string, so cast it
2018-06-14 08:25:09 -07:00
Mike Jolley
c5429244b2
Merge pull request #20504 from cmarangon/master
...
Conform returned error messages
2018-06-14 16:23:51 +01:00
Mike Jolley
6152aea961
Merge pull request #20506 from woocommerce/refactor/20420
...
Tokenization form refactor
2018-06-14 16:22:45 +01:00
Mike Jolley
2c8106075a
Merge branch 'master' into fix/20218-clearer-friendly-names
2018-06-14 16:12:53 +01:00
Mike Jolley
eef1eb44d8
WooCommerce prefix only
2018-06-14 15:47:15 +01:00
Mike Jolley
ce1810cd1a
Merge pull request #20497 from woocommerce/fix/20485
...
API: Order images by position before saving
2018-06-14 15:24:49 +01:00
Mike Jolley
78636b1f12
Only cache if order ID is set.
2018-06-14 14:52:25 +01:00
Mike Jolley
2f8a3eae49
Defer all transient cleanup
2018-06-14 14:40:08 +01:00
Mike Jolley
9f86839cab
Remove wc_transaction_query in favour of logging
2018-06-14 14:39:18 +01:00
Mike Jolley
893e6affb1
Revert this change - no issue, just keeping diff small
2018-06-14 12:56:21 +01:00
Mike Jolley
90c90591f3
Round items for order total
2018-06-14 12:52:13 +01:00
Roshan Sameer
384f54f951
Static call
2018-06-14 16:40:48 +05:45
Mike Jolley
aa4a89f92d
Shipping tax may be a string, so cast it
...
Fixes #20519
2018-06-14 11:49:45 +01:00
claudiulodro
79551e9843
Wootenberg JITM
2018-06-13 11:36:36 -07:00
Claudiu Lodromanean
73dbec001a
Merge pull request #20456 from JPry/custom_coupon_item_limit
...
Custom coupon item limit
2018-06-13 09:57:47 -07:00
Mike Jolley
812586742b
Allow only valid default attributes
2018-06-13 14:33:13 +01:00
Mike Jolley
01a3e359c3
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-13 10:18:38 +01:00
Claudio Sanches
ed4c6898f7
Merge pull request #20472 from rnaby/090618-232243
...
Remove unused variable and unnecessary else if
2018-06-12 13:28:48 -03:00
Claudio Sanches
6b230706fb
Merge pull request #20502 from woocommerce/fix/20466
...
Initialize payment gateways before running bulk actions
2018-06-12 11:59:47 -03:00
Mike Jolley
cfe1cb5c16
Handle login and change events
2018-06-12 15:32:01 +01:00
Claudio Sanches
5f37fe110a
Merge pull request #20499 from woocommerce/fix/20496
...
Remove API enabled check from auth endpoint
2018-06-12 11:22:54 -03:00
Mike Jolley
10a5779fd1
wp_localize_script
2018-06-12 14:57:44 +01:00
Claudio Marangon
e3447635ae
Conform returned error messages
...
The <strong>Error:</strong> should be removed because:
- the other errors in this function don't provide it either
- the process_registration() function in class-wc-form-handler.php also adds this string so it's added twice
2018-06-12 15:48:59 +02:00
Mike Jolley
cca7972d8f
Initialize payment gateways before running bulk actions
2018-06-12 13:14:09 +01:00
Jon Besga
e75c3716d2
Update wc-rest-functions.php
...
Arguments passed to end function should be passed by reference.
2018-06-12 12:45:22 +01:00
Mike Jolley
ddf9ab0605
Remove API enabled check from auth endpoint
2018-06-12 12:37:36 +01:00
Mike Jolley
fcd23567f6
Clear transients tool; clear wc_layered_nav_counts
2018-06-12 12:31:15 +01:00
Mike Jolley
cfda380d2f
API: Order images by position before saving
2018-06-12 12:13:10 +01:00
therealgilles
3818598811
Rename woocommerce_checkout_skip_update_order_review_expired to woocommerce_checkout_update_order_review_expired and change filter polarity.
2018-06-11 20:29:16 +00:00
dezio1900
cb2980596c
Update wc-admin-functions.php
2018-06-11 20:56:40 +02:00
dezio1900
007fc6e0ca
Allow items to be changed in wc_save_order_items function
...
Allow other plugins to be able to change $item object, for example to adjust line subtotal/total before its saved.
My need for this change is because I have custom booking product item, and attached custom inputs for the item ( checkin / checkout dates etc ). So whenever those inputs are changed in order edit page and ajax save is triggered, I need to auto adjust booking item's line subtotal/total ( because of booking dates changed ) before item is saved.
2018-06-11 20:27:32 +02:00
therealgilles
43db16a708
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-11 18:14:30 +00:00
Claudiu Lodromanean
2c1c32bf91
Merge pull request #20487 from willgorham/remove-malta-checkout-state
...
Remove Malta checkout 'State' field
2018-06-11 10:34:52 -07:00
Claudiu Lodromanean
c93a922876
Merge pull request #20486 from woocommerce/fix/20430
...
sanitize_special_column_name_regex trim
2018-06-11 10:28:41 -07:00
Claudiu Lodromanean
b351bcac50
Merge pull request #20483 from woocommerce/fix/20431
...
Search for matching keys when updating meta data
2018-06-11 10:26:24 -07:00
Claudiu Lodromanean
4ba04cfc4e
Merge pull request #20481 from woocommerce/update/20444
...
Remove personal data confirmation notice
2018-06-11 09:56:26 -07:00
Will Gorham
1d4f76490e
Remove malta state field
2018-06-11 11:23:27 -04:00
Rodrigo Primo
397e40f165
Fix indentation
2018-06-11 11:14:04 -03:00
Rodrigo Primo
77add46705
Pass user_id via $wpdb->prepare()
2018-06-11 11:04:19 -03:00
Mike Jolley
38be26e7a5
sanitize_special_column_name_regex trim
2018-06-11 14:55:36 +01:00
Rodrigo Primo
f1f49bb27a
Add WC 3.5.0 DB version update callback
2018-06-11 10:54:02 -03:00
Rodrigo Primo
7f70c6372c
Fix some code untitentional code changes added during the last merge from master
2018-06-11 10:48:28 -03:00
Rodrigo Primo
dd8bf8b522
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-11 10:44:14 -03:00
Mike Jolley
588be3a780
merge master
2018-06-11 13:46:04 +01:00
Mike Jolley
52a7fafd74
Search for matching keys when updating meta data
2018-06-11 12:50:49 +01:00
Mike Jolley
5e14953796
Avoid price setting when synced with children
2018-06-11 11:44:58 +01:00
Mike Jolley
35db31db32
Add notice text, fix typos
2018-06-11 10:35:34 +01:00
Roshan Sameer
32b734a1c1
Implementation of current action check in list table
2018-06-11 15:05:13 +05:45
Gerhard Potgieter
90a9fd49e6
X_FORWARDED_FOR standard states either just an IP or a comma seperated list of IP, Proxy, Proxy, ...
2018-06-11 10:49:03 +02:00
therealgilles
9adff87a1c
Rename woocommerce_checkout_skip_cart_is_empty_check to woocommerce_checkout_redirect_empty_cart and invert filter polarity.
2018-06-10 18:58:47 +00:00
therealgilles
1d733236e0
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-10 18:53:13 +00:00
Khan M Rashedun-Naby
8d7ae8b413
Remove unused variable and unnecesary else if
2018-06-09 23:24:08 +06:00
Mike Jolley
4bc7841325
search_products limit support
2018-06-09 17:23:07 +01:00
Mike Jolley
81149157a3
woocommerce_json_search_limit filter
2018-06-09 17:22:26 +01:00
Claudiu Lodromanean
3d4dfda568
Merge pull request #20435 from rnaby/070618-212333-wc-privacy-exporters-customer_data_exporter
...
Removed unnecessary parameter. Also removed from tests.
2018-06-08 11:34:42 -07:00
Jeremy Pry
01e1ef73e7
Handle item limit for custom coupon types
...
Fixes #20455
2018-06-08 14:18:16 -04:00
Claudiu Lodromanean
0c8b8e9dd7
Merge pull request #20429 from woocommerce/fix/add-nonce-to-update-url
...
Add nonces to WC update database and force update database URLs
2018-06-08 10:52:17 -07:00
Claudiu Lodromanean
327401e4ea
Merge pull request #20406 from unfulvio/20404-custom-webhook-topic-dropdown-bug
...
[#20404 ] Fix custom webhook topic selection in dropdown
2018-06-08 09:43:50 -07:00
Mike Jolley
6a59a1b498
Merge pull request #20438 from rnaby/070618-215706-wc-privacy-exporters-get_customer_personal_data
...
PHPDoc @throws Tag Added
2018-06-08 17:27:18 +01:00
Mike Jolley
baa5abcffa
Merge pull request #20437 from rnaby/070618-214301-wc-privacy-exporters-download_data_exporter
...
PHPDoc Fixed | Used Unused Variable | Else Removed
2018-06-08 17:27:05 +01:00
Mike Jolley
f70e8b4bd2
Merge pull request #20436 from rnaby/070618-214347-wc-privacy-exporters-order_data_exporter
...
Made use unused variable and removed else
2018-06-08 17:26:47 +01:00
Beka Rice
818c68fc83
Fix multisite dashboard widget to use proper order number
2018-06-08 11:59:27 -04:00
Mike Jolley
e92463632b
Held stock qty check for pay page
2018-06-08 16:58:33 +01:00
Mike Jolley
d76474789d
variable name
2018-06-08 16:30:58 +01:00
Mike Jolley
52854b7690
Add qty to order via modal, include stock qty in formatted name display for reference
2018-06-08 16:18:32 +01:00
Fulvio Notarstefano
468fb14c3c
[ #20404 ] Further indentation
2018-06-09 00:08:20 +09:00
Fulvio Notarstefano
38b1381fff
[ #20404 ] Code style standards
2018-06-09 00:07:20 +09:00
Mike Jolley
ce8eabc4a5
Include qty and reduce stock field on add item modal
2018-06-08 12:19:14 +01:00
Mike Jolley
8084100cbb
Tweak meta naming and order notes
2018-06-08 12:18:33 +01:00
Mike Jolley
6b8cd9661f
exclude new meta data from admin screens
2018-06-08 12:18:15 +01:00
Roshan Sameer
72c8e3b9cc
Fix - on webhook bulk action footer delete selection
2018-06-08 11:54:47 +05:45
Claudiu Lodromanean
dc20237f40
Merge pull request #20426 from woocommerce/fix/20386
...
Made path /orders/refund_id return invalid order id msg instead of error.
2018-06-07 10:50:46 -07:00
Mike Jolley
2cad2414b3
Remove manual wc_reduce_stock_levels calls
2018-06-07 18:01:38 +01:00
Mike Jolley
8261cffaa7
Remove bulk actions
2018-06-07 18:01:21 +01:00
Mike Jolley
2657db4a97
Pending should restore stock too
2018-06-07 17:42:58 +01:00
Mike Jolley
e38eccf828
Check pending orders even when hold stock is disabled
2018-06-07 17:42:23 +01:00
Mike Jolley
70c9cff608
Increase/decrease stock handling
2018-06-07 17:41:36 +01:00
Claudiu Lodromanean
c8480b68f1
Merge pull request #20338 from Spreeuw/patch-5
...
apply bulk actions oldest to newest
2018-06-07 09:34:38 -07:00
Khan M Rashedun-Naby
f617a84b1f
PHPDoc @throws Tag Added
2018-06-07 22:02:11 +06:00
Khan M Rashedun-Naby
ec76e60e33
PHPDoc Fixed | Used Unused Variable | Else Removed
2018-06-07 21:52:28 +06:00
Khan M Rashedun-Naby
c773b9cb4c
Made use unused variable and removed else
2018-06-07 21:45:03 +06:00
Khan M Rashedun-Naby
4b14cbc727
Removed unnecessary parameter. Also removed from tests.
2018-06-07 21:25:13 +06:00
Fulvio Notarstefano
e68aa7c027
[ #20404 ] Address code review feedback
2018-06-07 23:33:13 +09:00
Joey
98e44092e7
updating suggested changes
2018-06-07 14:37:06 +01:00
Rodrigo Primo
fc5aef8478
Add nonce to force update WC database URL
...
Doing this to check if the user has intention to perform a WC database update before starting the process.
2018-06-07 09:55:47 -03:00
Rodrigo Primo
467bd73ea9
phpcs fixes
2018-06-07 09:45:23 -03:00
Rodrigo Primo
a200686005
Add nonce to update WC database URL
...
Doing this to check if the user has intention to perform a WC database update before starting the process.
2018-06-07 09:45:18 -03:00
Rodrigo Primo
860e3e6d93
phpcs fixes
2018-06-07 08:57:57 -03:00
Peter Fabian
db9d2f2c30
Made path /orders/refund_id return invalid order id msg.
2018-06-07 13:26:29 +02:00
Mike Jolley
de567c6a2e
merge mistake
2018-06-07 11:26:19 +01:00
Mike Jolley
4df54b4e53
Merge branch 'master'
2018-06-07 11:24:12 +01:00
Mike Jolley
db9ab9cb8f
Merge pull request #20330 from woocommerce/update/19745
...
Eircode validation and formatting tweaks
2018-06-07 10:41:35 +01:00
Mike Jolley
38e3e3f570
Merge pull request #20425 from rnaby/070618-130531-wc-core-functions-wc_get_logger
...
Simplified and Early Returned | wc_get_logger refactored
2018-06-07 10:34:51 +01:00
Mike Jolley
493060dcb6
Merge pull request #20424 from kravco/master
...
Fix: order billing fields do overwrite value, even if provided
2018-06-07 10:34:04 +01:00
Mike Jolley
86993a4f70
Merge branch 'master' into update/13624
2018-06-07 10:30:52 +01:00
Roshan Sameer
c31b9acc8c
If wp_doing_ajax is defined return it ( #20421 )
...
* If wp_doing_ajax is defined return it
* Simplify the function exits check
2018-06-07 10:21:22 +01:00
Mike Jolley
44404f2f7a
Merge pull request #20422 from rnaby/070618-115632-wc-core-functions
...
@access tag removed
2018-06-07 10:17:22 +01:00
Khan M Rashedun-Naby
76a9e19471
wc_get_logger refactored
2018-06-07 13:46:06 +06:00
Matej Kravjar
233ac4b313
order billing fields do not overwrite value, if provided
...
(overwriting introduced by 1fa36b5f15
)
2018-06-07 09:02:12 +02:00
Khan M Rashedun-Naby
5442d30b6d
Checking Improved
2018-06-07 12:35:58 +06:00
Khan M Rashedun-Naby
964435a34b
@access tag removed
2018-06-07 12:31:35 +06:00
Claudio Sanches
4729ef8e3c
Merge pull request #20309 from woocommerce/fix/wc-api-dev-53
...
Removed 'orders_count' and 'total_spent' fields from customer v3 API.
2018-06-06 17:25:42 -03:00
Khan M Rashedun-Naby
20c8468fe4
handle_auth_requests PHPDoc and WPCS Fix
2018-06-06 17:35:15 +06:00
TheDramatist
93e7419b17
Simplified wc_review_is_from_verified_owner ( #20393 )
...
* Simplified wc_review_is_from_verified_owner
* wc_review_is_from_verified_owner simplified
2018-06-06 12:16:43 +01:00
Mike Jolley
869415763c
Merge pull request #20396 from rnaby/060618-005642-wc-discounts-object-var-type
...
WC_Discounts | object Property Type PHPDoc Fix
2018-06-06 12:15:46 +01:00
Mike Jolley
f9d9c395c7
Merge pull request #20397 from rnaby/060618-010003-wc-discounts-set_items_from_order
...
WC_Discounts|set_items_from_order Param Type Fix
2018-06-06 12:15:33 +01:00
Mike Jolley
833df18dff
Merge pull request #20398 from rnaby/060618-010246-wc-discounts-constructor
...
WC_Discounts | __construct PHPDoc and Param Fix
2018-06-06 12:15:19 +01:00
Mike Jolley
113d7ad781
Merge pull request #20400 from rnaby/060618-014013-wc-discounts-apply_coupon
...
WC_Discounts | apply_coupon Removed Unused Variable
2018-06-06 12:14:32 +01:00
Fulvio Notarstefano
264c83a166
[ #20404 ] Fix custom webhook topic selection in dropdown
2018-06-06 11:26:33 +09:00
Khan M Rashedun-Naby
ad7bc84c2b
WC_Discounts | apply_coupon PHPDoc @throws Fix
2018-06-06 01:47:16 +06:00
Khan M Rashedun-Naby
ba5671c052
WC_Discounts | apply_coupon Removed Unused Variable
2018-06-06 01:41:54 +06:00
Khan M Rashedun-Naby
1ce8338572
WC_Discounts|__construct PHPDoc and Param Fix
2018-06-06 01:08:35 +06:00
Khan M Rashedun-Naby
9310970938
WC_Discounts|set_items_from_order Param Type Fix
2018-06-06 01:01:39 +06:00
Khan M Rashedun-Naby
a89161c8bf
WC_Discounts| Type PHPDoc Fix
2018-06-06 00:57:49 +06:00
Mike Jolley
36c6aaf7a7
Merge pull request #20321 from woocommerce/fix/20311
...
Flexslider gallery fixes in RTL mode
2018-06-05 15:34:27 +01:00
Claudiu Lodromanean
839d52d153
Merge pull request #20390 from woocommerce/fix/20369
...
Clear needs_processing transient when adding a product to an order
2018-06-05 06:56:14 -07:00
Claudiu Lodromanean
0407b290d3
Merge pull request #20389 from woocommerce/fix/20378
...
Remove luxemberg state field
2018-06-05 06:36:14 -07:00
Mike Jolley
f356269e6f
Merge pull request #20391 from smazur/master
...
fix order by price clauses when search within terms
2018-06-05 13:52:30 +01:00
Mike Jolley
f065580b24
align
2018-06-05 13:51:37 +01:00
TheDramatist
090b7c89f4
wc_meta_update_last_update_time cleanning ( #20382 )
2018-06-05 13:31:05 +01:00
TheDramatist
a42acd438d
PHPDoc @throws Added ( #20381 )
2018-06-05 13:30:16 +01:00
TheDramatist
7f6fb734dd
WC_Meta_Data | PHPDoc Fix ( #20371 )
2018-06-05 13:29:56 +01:00
TheDramatist
9aca31f6ce
PHPDoc @throw Added ( #20370 )
2018-06-05 13:29:35 +01:00
TheDramatist
1d923bd7a0
WC_Abstract_Privacy PHPDoc Fixed ( #20368 )
...
* WC_Abstract_Privacy PHPDoc Fixed
* Unnecessary spaces removed
2018-06-05 13:29:20 +01:00
Mike Jolley
fd5f11d42f
Merge pull request #20366 from woocommerce/add/constraint-checks
...
permission_id Constraint checks
2018-06-05 13:27:56 +01:00
Mike Jolley
001a2e3b98
Merge branch 'master' into fix/20311
2018-06-05 12:57:48 +01:00
Mike Jolley
da690c34d2
Version
2018-06-05 12:38:03 +01:00
Peter Fabian
9ce165d75e
Added extra join with parent product to filter variable products from REST API
2018-06-05 13:22:22 +02:00
Stanislav Mazur
6fdd71ce8f
fix order by price clauses when search within terms
2018-06-05 14:01:08 +03:00
Mike Jolley
813db4c7f1
Clear needs_processing transient when adding a product to an order
2018-06-05 11:28:45 +01:00
Mike Jolley
6d0c1b2bac
Remove luxemberg state field
...
Closes #20378
2018-06-05 11:09:08 +01:00
Ewout Fernhout
5f57e3b524
add filter for bulk action IDs
2018-06-05 12:07:35 +02:00
therealgilles
0a6e5f7d16
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2018-06-04 20:13:45 +00:00
Mike Jolley
ce323ec32b
Merge pull request #20364 from woocommerce/fix/20360
...
Use correct escaping on placeholder
2018-06-04 12:40:17 +01:00
Gerhard Potgieter
cc563c2883
Use single quotes, not a field name but a value
2018-06-04 13:31:03 +02:00
Gerhard Potgieter
193ae78037
Revert "Only run constraint if it does not already exist"
...
This reverts commit dcddf1b273
.
2018-06-04 13:21:01 +02:00
Gerhard Potgieter
dcddf1b273
Only run constraint if it does not already exist
2018-06-04 13:18:57 +02:00
Gerhard Potgieter
55d5e6c6f0
Avoid looping
2018-06-04 13:15:36 +02:00
Gerhard Potgieter
4fde0e9129
Add column data type checks to ensure they match before running the download logs constraint.
2018-06-04 13:10:05 +02:00
Mike Jolley
98c92f3246
Merge pull request #20334 from crstauf/pr/filter-free-shipping-coupon-html
...
More informative coupon label for coupons with discount and free shipping
2018-06-04 11:54:21 +01:00
Diego Zanella
18731221fa
Added order to "woocommerce_order_is_vat_exempt" filter arguments
2018-06-04 11:01:15 +01:00
Mike Jolley
679d719368
Use correct escaping on placeholder
...
Use correct escaping on placeholder - this is not HTML, this is an attribute output within javascript code.
Closes #20360
2018-06-04 10:53:10 +01:00
Gerhard Potgieter
f324113b6d
Make Bahrain state not required ( #20363 )
...
* If coupon contains discount as well as free shipping add free shipping in brackets behind value
* Revert "If coupon contains discount as well as free shipping add free shipping in brackets behind value"
This reverts commit dce5bc2f0b
.
* Make Buhrein state not required, it has not states
2018-06-04 10:47:41 +01:00
Mike Jolley
574fac457f
Merge pull request #20353 from rnaby/020618-223742-wc-datetime
...
getOffset Refactor
2018-06-04 10:46:16 +01:00
TheDramatist
d8aa0aba90
WC_Data_Store | Exception throwing @throws PHPDoc comment added ( #20352 )
...
* Exception throwing @throws PHPDoc comment added
* Exception throwing @throws PHPDoc comment added
2018-06-04 10:45:53 +01:00
Khan M Rashedun-Naby
058b99fdf4
getOffset Refactor
2018-06-02 23:47:05 +06:00
Caleb Stauffer
d4d771437c
fix bug with cart coupon text (without introducing new filter)
2018-06-01 22:44:03 -04:00
Allen Snook
bfb6bff87c
Do not export a customer data group containing no data
2018-06-01 14:58:09 -07:00
Claudiu Lodromanean
c68b8faa99
Merge pull request #20203 from woocommerce/update/20118
...
Log errors from transaction emails with logger
2018-06-01 13:43:33 -07:00
Mike Jolley
4daa28daee
woocommerce_shipping_calculator to support custom button text
2018-06-01 21:29:33 +01:00
Mike Jolley
f9c178b0dd
Pass formatted destination to template file
2018-06-01 21:29:23 +01:00
Mike Jolley
243c33d9ca
Show country by default and improve separator
2018-06-01 21:29:07 +01:00
Mike Jolley
67dc3ea80a
Hide rates when there are no rates and calculator is off
2018-06-01 21:28:21 +01:00
claudiulodro
5fbb997949
Format shipping info when copied from billing
2018-06-01 08:28:18 -07:00
Ewout Fernhout
2ab47706a7
apply bulk actions oldest to newest
2018-06-01 12:40:22 +02:00
Mike Jolley
3f0544450e
Merge pull request #20308 from woocommerce/fix/cache-flush-0
...
Clear category 0 when deleting caches
2018-06-01 10:32:44 +01:00
Caleb Stauffer
6fc7a2d7cc
add filter to toggle between coupon's discount amount and free shipping text
2018-05-31 20:44:49 -04:00
claudiulodro
cd303d3540
Fix typo in error message
2018-05-31 12:40:58 -07:00
Claudiu Lodromanean
07bad6975f
Merge pull request #19951 from woocommerce/update/19745
...
Eircode validation and formatting
2018-05-31 20:31:46 +01:00
Claudiu Lodromanean
a4b9346f66
Merge pull request #19969 from robertdevore/master
...
Add three new action hooks for admin shipping zone methods
2018-05-31 20:25:34 +01:00
Claudiu Lodromanean
d1a90f14da
Merge pull request #20180 from woocommerce/fix/20178
...
Check billing email is posted before using
2018-05-31 19:57:18 +01:00
Claudiu Lodromanean
205a8fa513
Merge pull request #20125 from woocommerce/fix/20054
...
Don't force default token gateway active by default
2018-05-31 19:54:42 +01:00
Mike Jolley
25d025c01e
Show empty terms in admin dropdown
2018-05-31 11:24:23 +01:00
Mike Jolley
1d43233306
Adds missing 2017 RTL styles
2018-05-31 10:34:08 +01:00
Robert DeVore
ecdf6c3be0
Removed two action hooks
2018-05-30 15:53:04 -04:00
Peter Fabian
3b91c765e5
Removed functions unchanged vs v2.
2018-05-30 18:05:35 +02:00
Mike Jolley
c74540fb1e
Merge pull request #20046 from woocommerce/feature/custom-shipping-calc-data
...
Allows manipulate cart shipping calculator data
2018-05-30 16:00:21 +01:00
Mike Jolley
79c34ba843
Merge pull request #20089 from woocommerce/fix/20042
...
Allow oAuth1.0a under SSL
2018-05-30 15:37:45 +01:00
urosmil
19efe63fe8
Improved wc_add_to_cart_message filter ( #19817 )
...
* Improved wc_add_to_cart_message filter
Added product quantity parameter to filter, as it is relevant for construction of message and passed through function call.
* Removed param from deprecated function
Param has been removed from deprecated function as suggested
2018-05-30 14:53:15 +01:00
Mike Jolley
814c62aaf2
merge master
2018-05-30 14:35:32 +01:00
Mike Jolley
e68e8e8273
Merge pull request #20244 from woocommerce/update/20025
...
Introduce is_paypal_supported_currency check in setup wizard
2018-05-30 14:07:34 +01:00
Mike Jolley
34e27fa930
Missed a json encode
2018-05-30 14:05:06 +01:00
Mike Jolley
2e56d79628
Merge pull request #20246 from boodaah/master
...
Add anchor tag example to email template preview
2018-05-30 14:03:30 +01:00
Mike Jolley
f866349a03
Merge pull request #20251 from Ismail-elkorchi/fix/wc_maybe_define_constant_doc
...
Update wc_maybe_define_constant Docblock
2018-05-30 14:03:06 +01:00
Mike Jolley
5ef22da844
Merge pull request #20116 from woocommerce/update/rest-api-v3-feature-plugin-changes
...
Included REST API feature plugin endpoints and changes
2018-05-30 14:01:21 +01:00
Mike Jolley
c326115db2
Clear category 0 when deleting caches
2018-05-30 13:29:44 +01:00
Mike Jolley
34d4c9cca2
Merge pull request #20298 from woocommerce/fix/array-combine-tests
...
Prevent array_combine errors in old versions of PHP
2018-05-29 18:54:12 +01:00
Mike Jolley
b102e7c89b
Merge pull request #20294 from woocommerce/update/php-notice
...
Remove red styling for PHP notice if using > 5.6
2018-05-29 18:25:33 +01:00
Mike Jolley
75e357c1a9
Prevent array_combine errors in old versions of PHP
2018-05-29 18:13:26 +01:00
Mike Jolley
5504f966a4
Merge pull request #20293 from woocommerce/fix/20276
...
Fix variable attribute selection based on query string and form posts
2018-05-29 15:54:57 +01:00
Mike Jolley
bcc1a350ce
Remove red styling for PHP notice if using > 5.6
2018-05-29 15:52:01 +01:00
Mike Jolley
5cfd2f0f7a
Merge pull request #20273 from woocommerce/fix/20268
...
Fix broken product import file uploads on windows
2018-05-29 15:27:40 +01:00
Mike Jolley
800701adb0
Pass varaible
2018-05-29 15:25:11 +01:00
Claudio Sanches
c427b92c8e
Schema and endpoints for new reviews endpoint
2018-05-29 11:22:32 -03:00
Claudio Sanches
a8351df826
Introduced new helper to check reviews permissions
2018-05-29 11:22:18 -03:00
Mike Jolley
89daaebbca
Merge pull request #20241 from woocommerce/update/update-routine
...
Break up update routine and allow it run to multuple times
2018-05-29 15:19:25 +01:00
Mike Jolley
511243a54a
Encode array keys
2018-05-29 15:04:22 +01:00
Mike Jolley
45d6c55f2a
selected logic, with added sanitize_title
2018-05-29 14:32:20 +01:00
Peter Fabian
2ae09ce1ce
Removed 'orders_count' and 'total_spent' fields from v3 API.
2018-05-29 14:55:22 +02:00
Mike Jolley
b3023bec7d
Merge pull request #20289 from woocommerce/pr/20272
...
Pr/20272
2018-05-29 11:20:45 +01:00
Mike Jolley
9637ada4ee
Keep escape, pass link
2018-05-29 11:16:30 +01:00
Mike Jolley
c9aadf19bd
Merge pull request #20282 from woocommerce/fix/20278
...
Product properties should not be accessed directly
2018-05-29 10:55:48 +01:00
Mike Jolley
daad19fc6c
Merge pull request #20256 from jamesckemp/patch-11
...
Echo attribute label for "empty" default option
2018-05-29 10:42:26 +01:00
Mike Jolley
37762024e0
Merge pull request #20237 from woocommerce/fix/defend-cod-notices
...
get_canonical_package_rate_ids should check it has an array
2018-05-29 10:39:16 +01:00
Gerhard Potgieter
e3a37f81ee
Changes based on feedback, no need for sanitasion since wp_handle_upload alread checks
2018-05-29 07:37:25 +02:00
Rodrigo Primo
6a4eaa4de5
Check object before calling one of its methods
...
Check to see if `$product` is an instance of WC_Product before calling WC_Product::get_id() to protect against a fatal error.
2018-05-28 16:36:36 -03:00
Rodrigo Primo
5ed26df842
Product properties should not be accessed directly
...
Use WC_Product::get_id() instead of WC_Product::ID as product properties should not be accessed directly.
Fixes #20278
2018-05-28 16:32:36 -03:00
Remi Corson
b64182162e
remove wp_kses() and esc_html()
2018-05-28 12:29:26 +02:00
Gerhard Potgieter
4e40d79f84
Use wc_clean and not wp_unslash when cleaning the file path, strips out slashed on windows machines
2018-05-28 11:50:04 +02:00
Remi Corson
61b9461375
Add wp_kses() authorized tag
2018-05-28 11:44:05 +02:00
Remi Corson
4743dba7d0
Make sample tax rate URL clickable
2018-05-28 11:23:32 +02:00
Joey
e5800b66b0
updated low_stock_amount fields to use global value if no value is entered
2018-05-27 06:43:23 +01:00
Joey
d815f7bad5
updated import/export functions for low_stock_amount
2018-05-27 06:00:20 +01:00
Joey
5f36ba44cd
variable product confirmed before processing low stock notifications in function 'wc_update_product_stock'
2018-05-27 05:49:01 +01:00
Joey
b08b55a651
added changes for low stock notifications per product
2018-05-27 05:40:58 +01:00
Chris Montgomery
5c37551128
Fix infinite loop with importing tax rates ( #20253 ).
2018-05-26 22:42:37 +00:00
James Kemp
0eeb7834cd
Echo attribute label
2018-05-26 13:10:09 +01:00
James Kemp
1c99022600
Echo attribute label for "empty" default option
...
The empty option for the default attribute value selectors was not echoed.
2018-05-26 12:59:40 +01:00
Ismail El Korchi
4b2b654749
Update wc_maybe_define_constant doc
2018-05-26 03:16:44 +00:00
boodaah
14f090f82e
Add anchor tag example to email template preview
2018-05-25 14:41:20 -04:00
Mike Jolley
e1ba7f4b93
Introduce is_paypal_supported_currency check in setup wizard
2018-05-25 17:28:56 +01:00
Mike Jolley
048b95e135
Correct code to run again
2018-05-25 16:36:07 +01:00
Mike Jolley
083c994732
Break up update routine and allow it run to multuple times
2018-05-25 14:18:19 +01:00
Mike Jolley
6690e54921
Merge pull request #20217 from woocommerce/fix/20182
...
Prevent shipping method instance save action running on non-instance screens
2018-05-25 13:06:04 +01:00
Mike Jolley
296de85c17
Merge pull request #20235 from woocommerce/fix/20224
...
add missing wp_unslash calls to product data meta box
2018-05-25 13:05:32 +01:00
Mike Jolley
40ac62eea9
Merge pull request #20236 from woocommerce/fix/20220
...
Fix webhook filtering URLs
2018-05-25 13:04:38 +01:00
Mike Jolley
ad10e846ea
get_canonical_package_rate_ids should check it has an array
2018-05-25 12:54:58 +01:00
Mike Jolley
58b9be29b9
Merge pull request #20191 from woocommerce/fix/20186
...
Product import from file on server
2018-05-25 12:29:27 +01:00
Mike Jolley
c31cd4d962
Merge pull request #20234 from woocommerce/fix/20228
...
Check plugin properties exist when listening to auto_update_plugin hook
2018-05-25 12:29:17 +01:00
Mike Jolley
f1bed0d97b
Merge pull request #20231 from woocommerce/fix/20227
...
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 12:29:05 +01:00
Mike Jolley
34949d3971
Fix webhook filtering URLs
2018-05-25 12:21:31 +01:00
Mike Jolley
81b65f1783
add missing wp_unslash calls to product data meta box
2018-05-25 12:15:59 +01:00
Mike Jolley
d0d87b5e39
Check plugin properties exist
2018-05-25 12:07:12 +01:00
Gerhard Potgieter
5b1180d81a
Server files always need to be relative to ABSPATH, and use wc_clean as esc_url_raw will mess up file paths.
2018-05-25 12:57:01 +02:00
Khan M Rashedun-Naby
34360dff0a
wc_create_new_customer logic simplified
2018-05-25 16:53:27 +06:00
Mike Jolley
786641e976
Merge pull request #20232 from rnaby/250518-161500-wc-template-functions-wc_logout_url
...
wc_logout_url refactored
2018-05-25 11:40:00 +01:00
Khan M Rashedun-Naby
49f76ebb5b
wc_logout_url refactored
2018-05-25 16:34:06 +06:00
Mike Jolley
75f88041d7
Merge pull request #20197 from woocommerce/update/20183
...
"payment tokens" terminology
2018-05-25 11:33:40 +01:00
Mike Jolley
b96c7f6192
Merge pull request #20200 from woocommerce/update/20184
...
Export legacy paypal meta data in exporter
2018-05-25 11:33:26 +01:00
Mike Jolley
717fd61a16
Merge pull request #20226 from rnaby/250518-104427-wc-template-functions-get_product_search_form
...
Removed get_product_search_form else
2018-05-25 11:29:07 +01:00
Mike Jolley
416a4785b2
Merge pull request #20230 from rnaby/250518-154433-wc-template-functions-wc_get_rating_html
...
wc_get_rating_html refactored
2018-05-25 11:28:27 +01:00
Mike Jolley
fc24e2f440
Merge pull request #20214 from rnaby/240518-232027-wc-template-functions-woocommerce_pagination
...
woocommerce_pagination refactored
2018-05-25 11:23:36 +01:00
Mike Jolley
3cf7bfc328
Merge pull request #20213 from rnaby/240518-230624-wc-template-functions-wc_setup_product_data
...
wc_setup_product_data refactored
2018-05-25 11:22:23 +01:00
TheDramatist
29a6a7a494
wc_add_number_precision_deep logic simplified ( #20211 )
...
* wc_add_number_precision_deep logic simplified
* Early return
2018-05-25 11:18:49 +01:00
Mike Jolley
0bfd675238
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 11:15:30 +01:00
Khan M Rashedun-Naby
c3f4826caf
wc_get_rating_html refactored
2018-05-25 16:10:26 +06:00
Mike Jolley
2a10ef31fa
Merge pull request #20212 from rnaby/240518-225308-wc-core-functions-wc_remove_number_precision_deep
...
wc_remove_number_precision_deep logic simplified
2018-05-25 10:39:48 +01:00
Mike Jolley
571919936c
Merge pull request #20210 from rnaby/240518-223657-wc-core-functions-wc_rand_hash
...
wc_rand_hash logic simplified
2018-05-25 10:33:41 +01:00
Mike Jolley
171139295c
Merge pull request #20193 from woocommerce/fix/20192
...
Fix WC_Coupon constructor with Coupon object
2018-05-25 10:29:38 +01:00
Khan M Rashedun-Naby
52d28b69c2
Removed Else
2018-05-25 10:45:38 +06:00
Allen Snook
745b6bff29
Expand eraser and exporter friendly names for scope clarity
2018-05-24 12:56:32 -07:00
Mike Jolley
54357733bd
Merge pull request #20202 from jamesckemp/patch-10
...
Allow HTML when using `wc_attribute_label()`
2018-05-24 20:45:45 +01:00
Mike Jolley
a05059f3eb
redundent check
2018-05-24 20:44:02 +01:00
Mike Jolley
4cdae90aa4
Avoid new method
...
Co-Authored-By: grola <grola@users.noreply.github.com>
2018-05-24 20:41:20 +01:00
Mike Jolley
974d33eb85
Prevent action running for non-instance screens
...
Co-Authored-By: grola <grola@users.noreply.github.com>
2018-05-24 20:35:48 +01:00
James Kemp
596e6e2271
Add filter to sanitize woocommerce_attribute_label
2018-05-24 19:32:32 +01:00
James Kemp
71a4f1079f
Revert "Escape attributes labels but allow HTML"
...
This reverts commit f7fa7b6a41
.
2018-05-24 19:30:48 +01:00
Khan M Rashedun-Naby
4a8b7b876e
woocommerce_pagination refactored
2018-05-24 23:23:10 +06:00
Mike Jolley
9237353a83
Made constructor more readable with protected method
2018-05-24 18:19:42 +01:00
Khan M Rashedun-Naby
18ae4c8d5c
wc_setup_product_data refactored
2018-05-24 23:11:13 +06:00
Khan M Rashedun-Naby
5b079343e8
Early return
2018-05-24 23:02:07 +06:00
Khan M Rashedun-Naby
2725cd56d4
wc_remove_number_precision_deep logic simplified
2018-05-24 22:55:00 +06:00
Khan M Rashedun-Naby
cb7b853199
wc_rand_hash logic simplified
2018-05-24 22:42:56 +06:00
Peter Fabian
187eff6e95
Merge pull request #20205 from woocommerce/fix/20204
...
If the file size cannot be read, ignore range headers.
2018-05-24 17:26:09 +01:00
Mike Jolley
8e5efd9122
Merge pull request #19980 from urosmil/patch-2
...
Add endpoints to account menu items filter
2018-05-24 17:17:00 +01:00
Mike Jolley
8bcf32c68d
Merge pull request #19981 from timothyjensen/coupon-usage-count-hooks
...
Add coupon usage count hooks
2018-05-24 17:16:17 +01:00
Mike Jolley
3a673aa4e9
Merge pull request #20000 from woocommerce/update/19983
...
Exclude frontend include from REST API calls
2018-05-24 17:11:27 +01:00
Mike Jolley
d5e6b21b38
Merge pull request #20206 from CHEWX/bug-menu-endpoint-title
...
[menu] - change title to capitalized to match wp core
2018-05-24 17:06:07 +01:00
Mike Jolley
7df57c2cd1
Merge pull request #20207 from woocommerce/fix/20185
...
Excluded children categories from WP_Query in product shortcode if cat_operator=AND
2018-05-24 17:01:43 +01:00
Mike Jolley
dac3da8b26
Merge pull request #20079 from rnaby/150518-154336
...
wc_get_object_terms refactored
2018-05-24 16:35:35 +01:00
Mike Jolley
f5343cf4c7
Merge pull request #20067 from rnaby/150518-000347
...
ElseIf and Else Statement Removed
2018-05-24 16:33:56 +01:00
Mike Jolley
4666359840
Merge pull request #20074 from rnaby/150518-080603
...
wc_list_pages function refactored
2018-05-24 16:33:32 +01:00
Mike Jolley
18ea88d05d
Merge pull request #20077 from rnaby/150518-150047
...
Unnecessary Else Removed
2018-05-24 16:32:21 +01:00
Mike Jolley
2f87873ca5
Merge pull request #20093 from rnaby/160518-090545
...
Little clean up and fix
2018-05-24 16:26:15 +01:00
Mike Jolley
83a9831dc0
Merge pull request #20092 from rnaby/160518-084433
...
wc_get_loop_class logic simplified
2018-05-24 16:25:26 +01:00
Peter Fabian
082c1dfaf3
Excluded children categories from WP_Query in product shortcode if cat_operator=AND.
2018-05-24 16:12:48 +01:00
Mike Jolley
b7099509ee
If the file size cannot be read, ignore range headers.
...
Fixes #20204
2018-05-24 16:10:45 +01:00
Tom Hopcraft
daf301e83c
[menu] - change title to capitalized to match wp core
2018-05-24 15:56:13 +01:00
Mike Jolley
d9d2093d50
Log errors from transaction emails with logger
...
Closes #20118
2018-05-24 15:37:00 +01:00
James Kemp
16785b33ab
Do not escape HTML for attribute label
2018-05-24 15:29:53 +01:00
James Kemp
f7fa7b6a41
Escape attributes labels but allow HTML
...
Escape attribute labels with wp_kses_post so HTML is allowed if required.
2018-05-24 15:15:35 +01:00
Mike Jolley
a2a099f23d
Export legacy paypal meta data in exporter
2018-05-24 15:06:53 +01:00
Mike Jolley
725639bb96
"payment tokens" terminology
2018-05-24 13:42:20 +01:00
Gerhard Potgieter
288b5d9117
Refactor WC_Coupon constructor to allow for passing in coupon objects
2018-05-24 11:21:41 +02:00
Gerhard Potgieter
b1739dd21d
Add functionality to handle import files hosted on server
2018-05-24 07:34:40 +02:00
therealgilles
830e42794e
Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.
2018-05-23 20:40:23 +00:00
therealgilles
f7ec8c22de
Add woocommerce_checkout_skip_update_order_review_expired and woocommerce_checkout_skip_cart_is_empty_check filter calls.
2018-05-23 20:08:14 +00:00
Mike Jolley
87b077e57a
Check billing email is posted before using
...
Closes #20178
2018-05-23 15:04:03 +01:00
Claudio Sanches
09f7425fea
Just use exit() in AJAX endpoints used to redirect users
2018-05-23 10:50:49 -03:00
Claudio Sanches
fc6da6d4ee
Introducing inline documention to WC_REST_Controller
2018-05-22 13:44:00 -03:00
Mike Jolley
c05c5d75cb
No need to check if terms page is set if the field was posted.
2018-05-22 15:14:12 +01:00
Mike Jolley
5afb40fcbb
Merge pull request #20162 from woocommerce/fix/20133-string-parsing
...
Improve external product string parsing
2018-05-22 13:54:03 +01:00
Mike Jolley
bcd2aa05d3
Merge pull request #20163 from woocommerce/fix/20157
...
Checkout preview in customizer
2018-05-22 13:48:53 +01:00
Mike Jolley
4f208f3e7e
Merge pull request #20156 from woocommerce/update/strings-full-stops
...
Remove . from settings strings
2018-05-22 12:58:11 +01:00
Mike Jolley
9c2edf4983
Moves around some includes so they are included before the autoloader needs to find them
2018-05-22 12:57:48 +01:00
Mike Jolley
52d5700681
Merge pull request #20126 from woocommerce/fix/20119
...
Remove legacy meta data from orders
2018-05-22 11:47:15 +01:00
Mike Jolley
a3c18696e8
Fix terms display in preview
2018-05-22 11:19:39 +01:00
Mike Jolley
be63fb152a
Preview checkout without dummy product
2018-05-22 11:19:09 +01:00
Mike Jolley
7609ed82da
Make wc_query_string_form_fields handle strings
2018-05-22 10:53:08 +01:00
Mike Jolley
bd625a0537
Escape and decode amsersands correcrtly
2018-05-22 10:52:51 +01:00
Mike Jolley
0d799b2d06
Merge pull request #20130 from woocommerce/update/20105
...
Data erasers; target shop_order only and allow filtering
2018-05-21 17:37:32 +01:00
Mike Jolley
6bbd598713
Merge pull request #20137 from woocommerce/fix/20135
...
Recalc taxes if address changes in API
2018-05-21 17:37:15 +01:00
Mike Jolley
03dfd9b262
Remove . from strings
2018-05-21 17:02:33 +01:00
Mike Jolley
faa09deff1
Recalc taxes if address changes in API
2018-05-18 21:47:04 +01:00
Mike Jolley
4fc19b6766
feedback
2018-05-18 21:28:51 +01:00
Marcin Bot
5130edf566
WC_Abstract_Privacy allow to specify filters' priority
2018-05-18 16:07:36 +01:00
Mike Jolley
bf50e871f4
Update/add filter
2018-05-18 15:28:48 +01:00
Mike Jolley
bbfd419c8b
Array of arrays
2018-05-18 15:13:54 +01:00
Mike Jolley
00288c3b7f
Change token export format
2018-05-18 15:10:43 +01:00
Gerhard Potgieter
c61e0688c6
Merge pull request #20123 from woocommerce/fix/20110
...
Prevent autofocus on checkout
2018-05-18 14:32:30 +01:00
Gerhard Potgieter
7302d21a55
Merge pull request #20094 from woocommerce/fix/20051
...
When cleaning up CSV import, only remove product taxonomies
2018-05-18 14:30:45 +01:00
Gerhard Potgieter
d3d36de567
Merge pull request #20091 from jconroy/status_table_row_fix
...
Fix incorrectly closed system status table row
2018-05-18 14:29:42 +01:00
Gerhard Potgieter
6000580ec9
Merge pull request #20086 from woocommerce/fix/20081
...
Fix rounding of line items for orders
2018-05-18 12:31:09 +01:00
Gerhard Potgieter
7c120bb62f
Merge pull request #20085 from woocommerce/fix/20057
...
Set date created if null during update
2018-05-18 12:30:26 +01:00
Mike Jolley
c409a30765
erasers; target shoP_order only and allow filters
2018-05-18 12:29:56 +01:00
Gerhard Potgieter
5141e69339
Merge pull request #20084 from woocommerce/fix/20044
...
Fix tooltip styling when outside label
2018-05-18 12:29:40 +01:00
Gerhard Potgieter
ff05df5dac
Merge pull request #20083 from woocommerce/fix/20058
...
When duplicating variation, set the date to null
2018-05-18 12:28:55 +01:00
Gerhard Potgieter
ad24b9c9d9
Merge pull request #20041 from woocommerce/fix/20039
...
Wrap cell in ' rather than prepend
2018-05-18 12:27:26 +01:00
Gerhard Potgieter
7a501337b9
Merge pull request #20061 from saimonh3/fix/20060
...
fix(missing-country-code): add bahrain country code in the load_country_states method
2018-05-18 12:26:39 +01:00
Mike Jolley
7481c2c205
Remove legacy meta data from orders
2018-05-18 11:58:21 +01:00
Mike Jolley
ddece6a53b
Revert "Don't force default token gateway active by default"
...
This reverts commit 2ef13c3e72
.
2018-05-18 11:32:49 +01:00
Mike Jolley
660649e767
Don't force default token gateway active by default
2018-05-18 11:32:39 +01:00
Mike Jolley
2ef13c3e72
Don't force default token gateway active by default
2018-05-18 11:30:56 +01:00
Mike Jolley
20c184274b
Prevent autofocus on checkout
2018-05-18 10:39:51 +01:00
Peter Fabian
dd9fe541f7
Updated schema for v3 API.
2018-05-17 16:38:47 +01:00
Claudio Sanches
2c476f60ce
Included REST API feature plugin endpoints and changes
2018-05-17 16:14:38 +01:00
Peter Fabian
e02989361c
Change image title to name in v3.
2018-05-17 15:50:27 +01:00
Claudio Sanches
b458b4339d
Don't include reports endpoint while is empty
2018-05-17 12:16:03 +01:00
Claudio Sanches
1c31021eb4
Fixed typo
2018-05-17 12:15:38 +01:00
Claudio Sanches
aa2b424c21
Fixed class hierarchy in REST API v2
2018-05-17 12:11:56 +01:00
Claudio Sanches
2c2861bdd0
Fixed REST API v2 file paths
2018-05-17 12:08:43 +01:00
Claudio Sanches
04c19bb035
Include new REST API files and classes
2018-05-17 11:48:48 +01:00
Claudio Sanches
f02e4e3088
Initial REST API v3 files
2018-05-17 11:44:46 +01:00
Claudio Sanches
de38097b16
Fixed docblock
2018-05-17 11:44:36 +01:00
Claudio Sanches
7f1679d994
Move REST API v2 to a new directory
2018-05-17 11:27:53 +01:00
Mike Jolley
c4e1f8cd76
When cleaning up CSV import, only remove product taxonomies
2018-05-16 08:57:37 +01:00
Khan M Rashedun-Naby
0c70ed69f3
Little clean up and fix
2018-05-16 09:08:49 +06:00
Khan M Rashedun-Naby
3f824ae000
wc_get_loop_class logic simplified
2018-05-16 08:47:35 +06:00
Jason Conroy
e8e438704b
Fix incorrectly closed table row
...
Introduced with 23b69eba53 (diff-1b33d607bfa554752b46fad3269637deR806)
2018-05-16 11:36:02 +10:00
Claudio Sanches
dbec84e0a9
Allow oAuth1.0a under SSL
...
Closes #20042
2018-05-15 23:51:59 +01:00
Mike Jolley
faa00b7488
Remove full stop after action name
2018-05-15 23:26:18 +01:00
Mike Jolley
d25bd2dd33
Fix rounding of line items for orders
2018-05-15 23:18:39 +01:00
Mike Jolley
58e4802f47
Set date created if null during update
2018-05-15 19:15:42 +01:00
Mike Jolley
d136926d0c
Fix tooltip styling when outside label
2018-05-15 15:59:49 +01:00
Mike Jolley
7ee933dd18
When duplicating variation, set the date to null
2018-05-15 15:37:17 +01:00
Khan M Rashedun-Naby
5c0d7292f3
wc_get_object_terms refactored
2018-05-15 15:44:32 +06:00
Khan M Rashedun-Naby
1ed6d7ce65
Unnecessary Else Removed
2018-05-15 15:01:41 +06:00
Khan M Rashedun-Naby
f7baef9938
wc_list_pages function refactored
2018-05-15 08:08:18 +06:00
Claudio Sanches
6c1234668a
Merge pull request #20066 from rnaby/140518-235030
...
Removed Else Condition Check
2018-05-15 01:20:30 +01:00
Khan M Rashedun-Naby
80a1a64285
Else Removed
2018-05-15 00:33:22 +06:00
Khan M Rashedun-Naby
651de82769
ElseIf and Else Statement Removed
2018-05-15 00:07:29 +06:00
Khan M Rashedun-Naby
f09fd925e7
Removed Else Condition Check
2018-05-15 00:01:15 +06:00
Mohammed Saimon
0b4847d75d
fix(missing-country-code): add bahrain country code in the load_country_states method
2018-05-14 13:26:25 +06:00
Khan M Rashedun-Naby
7d889b472a
Approach Cleaned
2018-05-13 23:40:07 +06:00
Claudio Sanches
aa814c294b
Allows manipulate cart shipping calculator data
...
Introduces woocommerce_cart_calculate_shipping_address and
woocommerce_shipping_calculator_enable_country to allow full control in
the cart shipping calculator fields
2018-05-11 13:26:34 -03:00
Mike Jolley
e6ddc65c2a
Wrap cell in ' rather than prepend
2018-05-11 12:16:02 +01:00
claudiulodro
2ee7c62499
Add default empty step class to html-csv-import-steps.php
2018-05-10 11:59:17 -07:00
Claudiu Lodromanean
2dc1e042c9
Merge pull request #20024 from woocommerce/update/20022
...
Context for getting shipping methods for shipping zone.
2018-05-09 10:10:27 -07:00
Claudiu Lodromanean
7a6b0d8cf5
Merge pull request #19934 from woocommerce/fix/19819
...
Add protocol to URLs for thumbnails in cart.
2018-05-09 10:09:17 -07:00
Mike Jolley
1ff5520512
Pass through JSON context when getting zones for JSON responses and scripts
2018-05-09 17:41:33 +01:00
Claudiu Lodromanean
6f2c807f1c
Merge pull request #19984 from woocommerce/fix/19640
...
Basic range download handling for Force download.
2018-05-09 09:08:15 -07:00
Mike Jolley
14cbf7b0f0
Pass scheme without hyphen
2018-05-09 17:06:34 +01:00
Grzegorz Rola
5c9085de03
Context for getting shipping methods for shipping zone.
2018-05-09 16:35:49 +02:00
Peter Fabian
e31420234a
Skip download remainig check if doing ranged request.
...
This allows to finish listening/waching the file on iOS device if the remaining download count goes from 1 to 0.
2018-05-09 16:34:58 +02:00
Claudiu Lodromanean
ec02a133a3
Merge pull request #20021 from woocommerce/fix/19967
...
Switch stock status when manage stock gets changed and qty is sufficient.
2018-05-09 07:21:59 -07:00
Peter Fabian
e5dfa71e23
Moved check for download log to WC_Download_Handler.
2018-05-09 15:52:02 +02:00
Mike Jolley
2a90dcbc36
Prevent infinite loops when grouped products group each other
2018-05-09 14:05:05 +01:00
Peter Fabian
b920fb5786
Fixed bugs introduced by refactoring.
2018-05-09 14:29:52 +02:00
Peter Fabian
10fdae02bb
Updated documentation according to WP CS.
2018-05-09 11:40:02 +02:00
Peter Fabian
3faf49b4aa
Sanitize HTTP_RANGE input.
2018-05-09 11:13:36 +02:00
Peter Fabian
424213bc17
Applied the filter inside the function.
...
Added optional scheme parameter and @since docstring according to the code review.
2018-05-09 09:42:28 +02:00
Mike Jolley
a743757d0d
On the fly image generation for frontend
2018-05-08 22:23:45 +01:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
Rodrigo Primo
8db3236889
Update WC_Order_Data_Store_CPT::get_wp_query_args() to use post_author instead of _customer_user
2018-05-08 17:21:57 -03:00
Claudiu Lodromanean
abfba228b5
Merge pull request #20005 from woocommerce/fix/19997
...
Update quick edit logic to handle external products
2018-05-08 11:24:18 -07:00
Claudiu Lodromanean
7528762ee2
Merge pull request #20002 from woocommerce/fix/19959
...
Zoom improvements for mobile/touch
2018-05-08 11:16:44 -07:00
Mike Jolley
8531b2677e
Update quick edit logic to handle external products
2018-05-08 16:58:51 +01:00
Claudiu Lodromanean
8a60d0aee9
Merge pull request #19998 from woocommerce/fix/19979
...
Settings API should force autoload on by default.
2018-05-08 08:57:02 -07:00
Mike Jolley
ffbbf08b61
Zoom improvements for mobile
2018-05-08 14:48:25 +01:00
Mike Jolley
5de4f281fe
Exclude frontend include from REST API calls
2018-05-08 12:09:04 +01:00
Mike Jolley
3b5dfcb80b
Settings API should force autoload on by default.
2018-05-08 11:12:40 +01:00
Peter Fabian
ba79747975
Backwards compat fixes for range download.
2018-05-08 11:47:05 +02:00
Ralf Wiechers
47fbf7eef9
Allow related products limit to be like other post_per_page values
...
Fix #19994
2018-05-08 11:39:54 +02:00
Peter Fabian
8a8f085dcf
Added back extra parameter for backwards compatibility.
2018-05-08 10:16:53 +02:00
Peter Fabian
cb7ebe9aae
Split handle_range_request function, code cleanup.
2018-05-07 23:56:12 +02:00
Claudiu Lodromanean
9e1b8245be
Merge pull request #19987 from woocommerce/fix/plugin-install-get-proper-plugin-filename
...
Plugin installer: fix extracting filename from path
2018-05-07 14:37:40 -07:00
Rodrigo Primo
3644f8c220
Merge pull request #19992 from woocommerce/fix/phpcs-class-wc-report-customers
...
Fix PHPCS violations in includes/admin/reports/class-wc-report-customers.php
2018-05-07 17:57:57 -03:00
Rodrigo Primo
482e844f16
Update WC_Customer_Data_Store to use post_author instead of _customer_user
2018-05-07 17:54:42 -03:00
Rodrigo Primo
fdfe95b07e
Update WC API v1 and v2 to use post_author instead of _customer_user
2018-05-07 17:37:31 -03:00
Rodrigo Primo
b97f2749d6
Update wc_customer_bought_product() and customers report to use post_author instead of _customer_user
2018-05-07 17:25:58 -03:00
Rodrigo Primo
14287bdcf3
Fix PHPCS violations in includes/admin/reports/class-wc-report-customers.php
2018-05-07 17:12:26 -03:00
Rodrigo Primo
c1dabf0196
Fix PHPCS violations in includes/admin/reports/class-wc-report-customers.php
2018-05-07 17:08:56 -03:00
Paul Dechov
d7dc2d45a4
Use simpler function for retrieving last array item
...
Also avoids array dereferencing syntax incompatible with PHP <5.4.
2018-05-07 14:50:26 -04:00
Claudiu Lodromanean
9c8dbbedc2
Merge pull request #19988 from woocommerce/update/obw-recommended-stylized-checkboxes
...
OBW: stylized checkboxes in "Recommended" step
2018-05-07 11:45:08 -07:00
Robert DeVore
a3c4f42729
Updated tab spacing for action hook
2018-05-07 14:42:05 -04:00
Rodrigo Primo
f725dc17af
Set post_author to 0 on all orders that belong to a deleted customer
2018-05-07 15:37:25 -03:00
Claudiu Lodromanean
ba81e9e6f2
Merge pull request #19986 from woocommerce/fix/19975-check-tandc-exist
...
Check Terms Conditions page exits
2018-05-07 11:29:59 -07:00
Claudiu Lodromanean
bda8732c6f
Merge pull request #19974 from woocommerce/update/payment-method-columns
...
Updates table styling and columns
2018-05-07 11:23:49 -07:00
Claudiu Lodromanean
ccededa35c
Merge pull request #19971 from woocommerce/fix/19964
...
Fix: WC API should not try to create a product image if an empty image is passed
2018-05-07 10:48:10 -07:00
Claudiu Lodromanean
2bc90d7315
Merge pull request #19966 from woocommerce/add/tracker-opt-out
...
Tracker opt-out api call to erase personal data
2018-05-07 10:37:31 -07:00
Peter Fabian
c2493310d9
Switch stock status when manage stock gets changed.
...
As the stock quantity might be saved in the database from previous settings, stock_status needs to be in sync if qty is > 0.
2018-05-07 16:01:59 +02:00
Paul Dechov
a611c1e329
Adjust recommended item to used stylized checkbox
2018-05-07 09:39:44 -04:00
Paul Dechov
660a7eea0e
Fix plugin installer extracting filename from path
2018-05-07 08:27:22 -04:00
Gerhard Potgieter
6ab75247f7
Check that the terms condtions page actually exists and not just for an saved ID.
2018-05-07 11:05:38 +02:00
Peter Fabian
ceb713adbc
Basic range download handling for Force download.
2018-05-07 10:05:02 +02:00
Tim Jensen
e2cc3673b2
Add coupon usage count hooks
...
These action hooks allow developers to extend functionality related to updating coupon usage counts.
2018-05-06 07:09:59 -04:00
urosmil
5ec04d9398
Add endpoints to account menu items filter
...
This change will add possibility for adding new custom links to woo account, not only changing labels of existing ones.
2018-05-06 09:56:28 +02:00
Mike Jolley
8d6bbabc58
Merge pull request #19929 from woocommerce/fix/19924-parent-id-0-categories
...
Parent:0 terms via API PUT/POST
2018-05-04 18:56:15 +01:00
Mike Jolley
cf9fa5b3ff
Updates table styling and columns
2018-05-04 18:48:41 +01:00
pierrebuet
3850f4f13a
Diverse typos
2018-05-04 16:57:01 +02:00
Rodrigo Primo
c7a9550691
Fix: WC API should not try to create a product image if empty image is passed
...
Currently if you try to create a product variation passing an empty array as the value of the image key using WC API:
Endpoint: `wp-json/wc/v2/products/PRODUCT_ID/variations`
Payload: `{ "attributes" : [ { "id" : 1, "name" : "color", "option" : "Green" } ], "dscription" : "Green Tea Variety", "image" : {} }`
WC will return the following error:
```
{ "code": "woocommerce_product_invalid_image_id", "data": { "status": 400 }, "message": "#0 is an invalid image ID." }
```
This is happening because the code that handles image creation
(4e42b2cd30/includes/api/class-wc-rest-product-variations-controller.php (L292)
) is not checking if `$request['image']` is empty before adding a new `position` key to it. To fix this problem, this commit simply adds a check to see if `$request['image']` is empty before proceeding.
Fixes #19964
2018-05-04 10:47:39 -03:00
Robert DeVore
79b710cca1
📦 NEW: Three action hooks for admin shipping zone methods
2018-05-04 09:16:36 -04:00
Gerhard Potgieter
96d84b2813
Revert "Update the actual message and not just the test :)"
...
This reverts commit 9607fbcdd8
.
2018-05-04 11:57:26 +02:00
Gerhard Potgieter
9607fbcdd8
Update the actual message and not just the test :)
2018-05-04 09:24:05 +02:00
Gerhard Potgieter
e6e03858a0
Add call to tracking API when opting out to comply with GDPR erasure.
2018-05-04 09:10:18 +02:00
Gerhard Potgieter
c2dbc0c887
Keep taxonomy_hierarchical test in place
2018-05-04 08:50:14 +02:00
Claudiu Lodromanean
eaa6915c6b
Merge pull request #19958 from woocommerce/fix/default-asterisk
...
Required fields should be marked with *
2018-05-03 09:28:26 -07:00
Claudiu Lodromanean
594641c32f
Merge pull request #19952 from woocommerce/add/obw-plugin-install-info-message
...
OBW: List all plugins to be installed upon continuing to next step
2018-05-03 09:23:45 -07:00
Mike Jolley
9e9949a742
This should be on by default
2018-05-03 16:50:26 +01:00
Claudiu Lodromanean
4357feef98
Merge pull request #19957 from woocommerce/fix/blank-state-cta
...
Fixes blank state call to action styling
2018-05-03 08:26:59 -07:00
Mike Jolley
a3a2d234bb
Merge pull request #19946 from woocommerce/fix/19940
...
Actions should be filters
2018-05-03 16:11:47 +01:00
Mike Jolley
228b888ab6
Merge pull request #19947 from woocommerce/fix/19944
...
Page conditionals need to ensure the page exists/is set first
2018-05-03 16:11:23 +01:00
Mike Jolley
9069357a84
Fixes blank state call to action styling
2018-05-03 16:09:35 +01:00
Claudiu Lodromanean
305167efba
Merge pull request #19933 from franticpsyx/deprecate-woocommerce_ajax_added_order_items
...
[3.4] Deprecate woocommerce_ajax_added_order_items action
2018-05-03 08:03:55 -07:00
Claudiu Lodromanean
9dfd62dd67
Merge pull request #19938 from woocommerce/fix/update-obw-payfast-repo-slug
...
Updating repo slug for PayFast in the onboarding wizard
2018-05-03 08:01:17 -07:00
Claudiu Lodromanean
fdb8cdb482
Merge pull request #19945 from woocommerce/update/gdpr-messages
...
Updates to GDPR wording
2018-05-03 08:00:05 -07:00
Mike Jolley
d4e8ae093d
Merge pull request #19942 from woocommerce/tweak/gdpr-customer-tokens
...
Introduce GDPR export/erase for customer tokens
2018-05-03 15:36:56 +01:00
Mike Jolley
2f8f30cd29
Make some strings easier to translate for translators
2018-05-03 14:50:39 +01:00
Paul Dechov
44cf10e8cc
Fix phpcs issues
2018-05-03 09:35:09 -04:00
Mike Jolley
3a67c497d0
Update policy text
2018-05-03 13:19:50 +01:00
Peter Fabian
92180d2b42
Add scheme to widget id when caching objects.
...
This should prevent cache from serving mixed content when widget cache is preloaded with http version, then accessed via https.
2018-05-03 14:10:04 +02:00
Mike Jolley
cc3fb9751c
eircode formatting
2018-05-03 11:26:22 +01:00
Mike Jolley
78f34aed99
Eircode regex
2018-05-03 11:26:13 +01:00
Mike Jolley
1e227dcc2e
Allow custom validation methods for postcodes and include IE
2018-05-03 11:26:01 +01:00
Boro Sitnikovski
d3f3073f13
Merge branch 'master' into tweak/gdpr-customer-tokens
2018-05-03 12:02:12 +02:00
Boro Sitnikovski
868034886a
Use display name for tokens
2018-05-03 12:00:07 +02:00
Mike Jolley
f05f439c58
Page conditionals need to ensure the page exists/is set first
2018-05-03 10:23:36 +01:00
Mike Jolley
3c905387dc
Actions should be filters
2018-05-03 10:06:47 +01:00
Boro Sitnikovski
8782be0b02
Use payment tokens instead of tokens
2018-05-03 11:06:11 +02:00
Mike Jolley
fde3eddccd
Just updates wording
2018-05-03 10:05:13 +01:00
Boro Sitnikovski
194dba40e2
Make sure devs pass their own unique ID and use localisation for constructor
2018-05-03 10:47:30 +02:00
Paul Dechov
099e4b9703
Refactor: move code around for more logical grouping
2018-05-03 04:45:01 -04:00
Boro Sitnikovski
1cfa6c6e4e
Per discussion with Mike, use id when adding exporters/erasers
2018-05-03 10:36:11 +02:00
Boro Sitnikovski
0d981a000a
Update abstract class to use associative arrays
2018-05-03 10:08:29 +02:00
Boro Sitnikovski
d8d2f03a50
Introduce GDPR export/erase for customer tokens
2018-05-03 09:46:07 +02:00
Gerhard Potgieter
a43ac9acae
No need to do checks of parent, WordPress does all the checks when running wp_insert_term and wp_update_term
2018-05-03 08:19:16 +02:00
Paul Dechov
64a47cd7cd
Show WCS and Jetpack only if they are not aleady active
2018-05-02 23:49:58 -04:00
Paul Dechov
9cd72562a8
Update plugin list on shipping zone toggle
2018-05-02 23:35:42 -04:00
Paul Dechov
2cfbe0a1f0
Remove 'will be installed and activated' messaging in other places
2018-05-02 22:36:47 -04:00
Paul Dechov
bdf6188ed6
Change payment gateway names to plugin name
2018-05-02 17:28:09 -04:00
Paul Dechov
fb0943bb89
Show plugins to install in 'Recommended' step
2018-05-02 17:24:11 -04:00
Paul Dechov
801667324a
Show plugins to install in shipping step
2018-05-02 17:23:36 -04:00
Paul Dechov
57ad34451b
Add payment step service settings plugins to list
2018-05-02 17:00:29 -04:00
Paul Dechov
9b524d7d77
List payment step service plugins to install
2018-05-02 16:58:56 -04:00
Lauren Smith
80835e3aca
Updating repo slug for PayFast in the onboarding wizard
2018-05-02 15:38:16 -05:00
Peter Fabian
45cd62e3b9
Removed superfluous newline.
2018-05-02 22:15:25 +02:00
Peter Fabian
04dd99613e
Putting public functions back.
...
In case some plugins are using them.
2018-05-02 22:07:49 +02:00
Mike Jolley
d584ed72b9
Merge pull request #19930 from woocommerce/update/19925-api-order-refund-schema
...
Update refunds items schema to match actual response keys.
2018-05-02 18:06:30 +01:00
Claudio Sanches
a55ae32530
Merge pull request #19935 from woocommerce/update/19815
...
Hook doc update
2018-05-02 13:29:23 -03:00
Peter Fabian
084e4885da
Removed unused function wc_is_external_resource.
2018-05-02 17:07:19 +02:00
Eitan Shaked
032ed8a3d4
Add new class to order note
2018-05-02 17:14:24 +03:00
Mike Jolley
06ef8c8589
Hook doc update
2018-05-02 14:28:53 +01:00
Mike Jolley
e807c6151f
Merge branch 'master' into update/erasure-requests
2018-05-02 14:06:47 +01:00
Peter Fabian
8789642fb9
Add protocol to URLs for thumbnails in cart.
...
Removed wc_get_relative_url(), as it's not used anymore.
2018-05-02 14:34:50 +02:00
Manos Psychogyiopoulos
1895bbe3f3
Deprecate woocommerce_ajax_added_order_items action
2018-05-02 14:49:24 +03:00
Mike Jolley
2e78259452
Compatibility with 4.9 branch
2018-05-02 11:45:02 +01:00
Gerhard Potgieter
992a46c513
Do not unset parent_id when 0 but actuall handle 0 as it can be passed to wp_insert_term.
2018-05-02 12:19:56 +02:00
Gerhard Potgieter
5a2da43733
After talking with @mikejolley we decided it would be better to stick to the original schema, reason makes more sense.
2018-05-02 12:12:06 +02:00
Mike Jolley
6ccf5b14fa
Merge pull request #19922 from woocommerce/fix/downloadcleanup
...
Tool for cleaning up permissions table
2018-05-02 10:41:39 +01:00
Gerhard Potgieter
4a39d8b8cc
Update refunds items schema to match actual response keys.
2018-05-02 10:13:51 +02:00
Gerhard Potgieter
61e624b937
Allow parent:0 param passing when updating a term via the API
2018-05-02 08:44:06 +02:00
Gerhard Potgieter
2124972232
If 0 is supplied as parent ID simply remove it before creating the term. 0 means no parent.
2018-05-02 08:31:28 +02:00
Gerhard Potgieter
bfa2b017d1
Include pending products in the export
2018-05-02 07:47:55 +02:00
claudiulodro
4da458a9df
Tool for cleaning up permissions table
2018-05-01 12:35:37 -07:00
Claudiu Lodromanean
390288e283
Merge pull request #19914 from woocommerce/update/gdpr-log-audit
...
GDPR - log audit
2018-05-01 09:57:36 -07:00
Mike Jolley
d85dd36195
Use new methods and fix phpcs
2018-05-01 16:37:44 +01:00
Mike Jolley
e9b0c6deec
clear_expired_logs and date based clearing functions
2018-05-01 16:37:30 +01:00
Claudiu Lodromanean
78f454fea3
Merge pull request #19918 from woocommerce/update/query-reduction-tweaks
...
Query reduction tweaks
2018-05-01 08:37:25 -07:00
Mike Jolley
e8f3bac6c8
Implement log cleanup cron job (woocommerce_cleanup_logs)
2018-05-01 16:37:14 +01:00
Mike Jolley
113a27fba9
Privacy page content
2018-05-01 14:36:47 +01:00
Mike Jolley
250b7aecd5
Update function to set last active
2018-05-01 14:13:38 +01:00
Mike Jolley
43f6a5114c
Typos and unused variables
2018-05-01 13:54:18 +01:00
Mike Jolley
f59acf1350
Merge branch 'master' into update/erasure-requests
2018-05-01 13:46:53 +01:00
Mike Jolley
1d61f6fb01
Merge pull request #19894 from woocommerce/fix/woocommerce-delete-version-transients-limit
...
Don't schedule event to delete transients if limit set to 0
2018-05-01 13:36:34 +01:00
Mike Jolley
461dfd6489
Avoid query if no limit is set.
2018-05-01 13:26:57 +01:00
Mike Jolley
e77677def2
Merge pull request #19913 from Chouby/woocommerce_cart_item_data_to_validate
...
Improve filter 'woocommerce_cart_item_data_to_validate'
2018-05-01 13:04:13 +01:00
Mike Jolley
828c1e3a7c
Merge branch 'pr/19912'
2018-05-01 13:00:57 +01:00
Mike Jolley
4487463bb4
PHPCS
2018-05-01 13:00:49 +01:00
Mike Jolley
0e4d958571
Prime caches
2018-05-01 12:39:18 +01:00
Mike Jolley
b357aa3e0f
Prime post caches in shortcodes to reduce queries.
2018-05-01 12:31:17 +01:00
Mike Jolley
3c34394296
Set more defaults to reduce query count
2018-05-01 12:15:57 +01:00
Mike Jolley
8e0f0cbc29
Lazy load children and attributes for variable products
2018-05-01 11:57:00 +01:00
Mike Jolley
e677340fcc
No need to load tax rates when taxes are disabled
2018-05-01 11:56:39 +01:00
Mike Jolley
9d23ebf4e3
This setting should be autoloaded as it's used in the catalog.
2018-05-01 11:56:22 +01:00
Mike Jolley
dbd7f2d2e4
Pass autoload when saving options
2018-05-01 11:54:20 +01:00
Mike Jolley
17ad9dac06
Update docs
2018-05-01 10:15:51 +01:00
Mike Jolley
2672c0bb16
Clear order notes during anonymization
2018-04-30 18:34:46 +01:00
Mike Jolley
57ae8285b6
Mask logged PayPal data.
2018-04-30 18:17:12 +01:00
Mike Jolley
aef46ce8d3
Clear paypal logs when debug mode is turned off.
2018-04-30 18:04:52 +01:00
Mike Jolley
610e9b0989
Add disclaimer to debug logging setting
2018-04-30 17:30:55 +01:00
Mike Jolley
d14e59cdb0
Remove some PII from paypal logs and avoid storing custom meta from responses
2018-04-30 17:30:39 +01:00
Norcross
a9cd0d9bd8
including `isset` check for nonce variable.
2018-04-30 11:55:03 -04:00
Frédéric Demarle
fa4b1a741e
Add $product as 2nd param in filter woocommerce_cart_item_data_to_validate
2018-04-30 17:48:22 +02:00
Mike Jolley
59866b679c
Do not log body for webhooks unless debug mode is turned on.
2018-04-30 16:24:23 +01:00
Mike Jolley
cdec3321ac
Broken log due to variable
2018-04-30 16:23:49 +01:00
Claudiu Lodromanean
3943a3b9dc
Merge pull request #19907 from woocommerce/update/include-future-products-export
...
Include scheduled products in the export.
2018-04-30 08:04:41 -07:00
Mike Jolley
6f6f15d22a
Link to erasure page
2018-04-30 15:41:38 +01:00
Mike Jolley
c765ce644d
Inactive account handling
2018-04-30 15:38:45 +01:00
Gerhard Potgieter
a48fababe2
Merge pull request #19842 from woocommerce/fix/19831
...
Extensions helper caching fixes
2018-04-30 14:18:40 +02:00
Mike Jolley
bda186338c
Adds the template to the fragment name so that switching themes invalidates any fragments created under the previous theme
2018-04-30 11:28:51 +01:00
Gerhard Potgieter
3f87b3e009
Include scheduled products in the export.
2018-04-30 07:36:00 +02:00
Claudio Sanches
877cc29604
Ensure coupon amount is always a float value
...
Closes #19889
2018-04-27 18:03:04 -03:00
Claudio Sanches
96c538bf4a
Fixed coding standards for #19866
2018-04-27 16:00:53 -03:00
Claudio Sanches
b7f1d20148
Fixed coding standards
2018-04-27 15:43:27 -03:00
Rodrigo Primo
18a8a6b752
Don't schedule event to delete transients if limit set to 0
...
Third-party code can set the limit of transients to be deleted to 0 using the filter `woocommerce_delete_version_transients_limit`. If this happens, the code shouldn't schedule a cron event to delete more transients to avoid flooding the list of cron jobs.
Fixes #19890
2018-04-27 10:31:45 -03:00
Mike Jolley
495cfb44ce
Merge pull request #19880 from woocommerce/add/adjust-priority-privacy-exporters
...
Reduce priority value for WooCommerce personal data exports
2018-04-27 10:38:00 +01:00
Claudiu Lodromanean
3b24aa9791
Merge pull request #19877 from woocommerce/fix/19863
...
Fix CSV import cleanup methods
2018-04-26 13:05:27 -07:00
claudiulodro
0b51ad006e
Spelling fix
2018-04-26 13:04:09 -07:00
Rodrigo Primo
49804b3172
Merge branch 'feature/product-custom-tables-supporting-changes' of github.com:woocommerce/woocommerce into feature/product-custom-tables-supporting-changes
2018-04-26 16:46:10 -03:00
Claudiu Lodromanean
88a13b02db
Merge pull request #19876 from woocommerce/fix/product-type-filter
...
Fix: product type filter should show selected product type
2018-04-26 11:56:04 -07:00
Claudiu Lodromanean
0bf2dfbca8
Merge pull request #19872 from woocommerce/update/email-restrictions-text
...
Updates email restrictions label so it's clear this is a whitelist
2018-04-26 11:49:54 -07:00
Claudiu Lodromanean
0e20fb0768
Merge pull request #19861 from rnaby/250418-222543-wc-product-variation
...
Rewritten the logic and cleaned the code.
2018-04-26 11:46:21 -07:00
Claudiu Lodromanean
08088f15a9
Merge pull request #19858 from rnaby/250418-221130-wc-customer-data-store
...
Removed redundant else statement and inverted the early return
2018-04-26 11:21:41 -07:00
Allen Snook
65311c41c7
Reduce priority value for WooCommerce personal data exports
2018-04-26 10:50:37 -07:00
Mike Jolley
0d4401d9a8
Merge pull request #19871 from woocommerce/update/gdpr-defaults
...
Fix GDPR defaults
2018-04-26 17:22:03 +01:00
Mike Jolley
970a77b43b
This was not needed after all.
2018-04-26 17:18:39 +01:00
Claudiu Lodromanean
9b37eb980f
Merge pull request #19848 from woocommerce/tweak/support-payment_method_in
...
Support payment_method_in when selecting orders
2018-04-26 08:26:33 -07:00
Mike Jolley
b4657d5a42
Status must be set after import
2018-04-26 16:06:04 +01:00
Mike Jolley
90c5cf67fa
Fixed data cleanup after failed import
2018-04-26 16:05:12 +01:00
Boro Sitnikovski
d6b4ca980c
Add support for arrays when building meta query args
2018-04-26 16:49:49 +02:00
Rodrigo Primo
49855b4676
Fix: product type filter should show selected product type
...
Since admin lists were refactored in 8f37ea33ed
, a bug was introduced that prevented the "Filter by product type" select box in the products list page in the admin from showing the selected product type when filtering by "Downloadable" products. Before marking this option as selected, the code was checking if `$wp_query->query['product_type']` is set. This check made sense before the refactor (see 8f37ea33ed (diff-a116210e8adc50b0853846ba935daaadL1544)
) but it doesn't make sense anymore. In the new method, `$wp_query` is not even used.
2018-04-26 10:02:44 -03:00
Mike Jolley
b1dfc31d4e
Remove tx id
2018-04-26 13:15:14 +01:00
Mike Jolley
ef69c27f25
Updates email restrictions label so it's clear this is a whitelist
2018-04-26 12:58:08 +01:00
Mike Jolley
ffc5fc6b74
Merge pull request #19865 from rnaby/260418-090005-wc-checkout
...
Method refactored
2018-04-26 12:37:08 +01:00
Mike Jolley
79c6c6c61b
Merge pull request #19866 from rnaby/260418-091223-wc-checkout
...
get_value method refactored
2018-04-26 12:34:46 +01:00
Mike Jolley
6a1cd802bc
Merge pull request #19868 from rnaby/260418-101617-wc-checkout
...
process_order_without_payment method redundant else removed
2018-04-26 12:29:14 +01:00
Mike Jolley
e6eaa4f83c
Fix colorpicker styling
2018-04-26 12:21:17 +01:00
Mike Jolley
ccff8ecd17
Fix policy text preview in customizer.
2018-04-26 12:11:11 +01:00
Mike Jolley
d73d15a73d
Phone was required in 3.3 - set default
2018-04-26 11:52:36 +01:00
Mike Jolley
e15a4f63a0
Update defaults so account creation is disabled until setup by admin
2018-04-26 11:50:15 +01:00
Mike Jolley
091d5326f2
Update abstract class and privacy code
2018-04-26 11:29:51 +01:00
Khan M Rashedun-Naby
c235d05446
process_order_payment method redundant else removed.
2018-04-26 10:24:31 +06:00
Khan M Rashedun-Naby
dfcec0ce39
process_order_without_payment method redundant else removed
2018-04-26 10:18:47 +06:00
Khan M Rashedun-Naby
e1fea55cb6
get_value method refactored
2018-04-26 09:40:58 +06:00
Khan M Rashedun-Naby
6714d47e8d
Some more clean up
2018-04-26 09:11:36 +06:00
Khan M Rashedun-Naby
d7458493c6
get_checkout_fields method refactored
2018-04-26 09:03:51 +06:00
Rodrigo Primo
bf634b0885
Revert "expiry and limit getters and setters for WC_Product_Download"
...
This reverts commit bdda142d24
.
2018-04-25 17:29:41 -03:00
Rodrigo Primo
e2471d215f
Revert "Add limit and expiry to data array."
...
This reverts commit 5ef6766654
.
2018-04-25 17:29:36 -03:00
Rodrigo Primo
ad40751ae7
Revert "Add limit and expiry to get_downloads, cater for empty strings expiry and limit setters"
...
This reverts commit 18600e1d2f
.
2018-04-25 17:25:39 -03:00
Khan M Rashedun-Naby
98a13a0fc2
Rewritten the logic and cleaned the code.
2018-04-25 22:54:17 +06:00
Khan M Rashedun-Naby
c174316bf8
Removed redundant else statement and inverted the early return
2018-04-25 22:21:21 +06:00
Mike Jolley
2f6d2b857b
Merge pull request #19833 from rnaby/240418-091920-wc-admin-log-table-list
...
Inverted the condition based returns.
2018-04-25 12:00:34 +01:00
Mike Jolley
6694d64ef6
Merge pull request #19845 from woocommerce/feature/19840
...
Trigger GeoLite2 database download after update
2018-04-25 11:59:46 +01:00
Khan M Rashedun-Naby
f1c359859b
Removed redundant else
2018-04-25 14:35:30 +06:00
Boro Sitnikovski
92cd1ec0d8
Abstract out privacy class so that extensions can easily re-use it
2018-04-25 02:13:59 +01:00
Boro Sitnikovski
e891e3ed7d
Support payment_method_in when selecting orders
2018-04-25 01:40:29 +01:00
Claudio Sanches
d496e28d08
Trigger GeoLite2 database download after update
...
Closes #19840
2018-04-24 15:32:27 -03:00
Mike Jolley
30a8785ff4
Add up/down buttons
2018-04-24 19:26:17 +01:00
Mike Jolley
7be62795db
Add wp-util script and strings for localisation
2018-04-24 19:26:00 +01:00
Claudio Sanches
574c829096
Introduced function to check if geolocation is enabled
2018-04-24 15:22:12 -03:00
Rodrigo Primo
597033ca6f
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-04-24 13:47:22 -03:00
Mike Jolley
c8005a8c00
Wording updates
2018-04-24 16:47:55 +01:00
Mike Jolley
f9c3ed14e4
Fix transient clearing
2018-04-24 15:44:30 +01:00
Mike Jolley
d6a6356d53
After activating a subscription, caches for updates must be purged
2018-04-24 15:43:52 +01:00
Mike Jolley
6d9bacb982
Removes freegeoip service
2018-04-24 14:32:21 +01:00
Mike Jolley
da9c99a12f
Merge pull request #19837 from woocommerce/update/obw-tracker-request
...
Delay tracking request
2018-04-24 13:23:31 +01:00
Gerhard Potgieter
07dcf77f6f
Deffer first tracker send to a cron instead of direct calling it.
2018-04-24 14:16:41 +02:00
Mike Jolley
cb9dab21d6
Merge pull request #19822 from woocommerce/fix/19790-positive-page-id
...
Do not load unsupported theme functionality when shop page -1
2018-04-24 12:29:22 +01:00
Gerhard Potgieter
fc43bd2410
Delay tracking request by 10 seconds to allow for page load to complete first.
2018-04-24 12:42:06 +02:00
Gerhard Potgieter
56c539681b
Yoda, you must!
2018-04-24 07:18:09 +02:00
Khan M Rashedun-Naby
845097f42a
Inverted the condition based returns.
2018-04-24 09:21:33 +06:00
Mike Jolley
0f71eb15bf
Merge pull request #19712 from woocommerce/update/wc-tracker
...
Tracker Changes
2018-04-23 19:28:14 +01:00
Claudio Sanches
9ac00e1986
Use trailingslashit() instead of DIRECTORY_SEPARATOR
...
This will avoid any double `/` and should work on Windows too.
2018-04-23 14:19:42 -03:00
Claudio Sanches
9d99ca4c47
Merge pull request #19812 from shivapoudel/fix/19742
...
Fix - Notice while downloding GeoIP DB on Windows
2018-04-23 14:17:37 -03:00
Shiva Poudel
0c5d6dd285
Tweak - Use of trailingslashit instead
2018-04-23 22:07:14 +05:45
Gerhard Potgieter
8c677d9214
Merge pull request #19821 from haydenw/haydenw-patch-1
...
Pass `$flat` variable to `woocommerce_order_items_meta_display` filter
2018-04-23 14:02:21 +02:00
Gerhard Potgieter
ca9865beeb
Ensure shop_page_id is > 0 before loading the unsupported theme functionality. In some cases shop_page_id can be -1 which will result in a true as only 0 is seen as false.
2018-04-23 09:47:21 +02:00
Hayden Whiteman
1c8d5d42d1
Pass `$flat` variable to `woocommerce_order_items_meta_display` filter
...
Allow 3rd parties to determine if output should be flat.
2018-04-23 13:45:07 +12:00
Eric Daams
956dc6b9b9
Fixes spelling mistake in privacy policy content snippet.
2018-04-23 09:50:08 +09:30
Shiva Poudel
a4b5f0bef4
Fix - Notice while downloding GeoIP database on Windows
...
DIRECTORY_SEPARATOR was the culprit :)
CC @claudiosanches
Closes #19742
2018-04-21 02:43:37 +05:45
GlennMartin1
da6000a633
Update class-wc-admin-help.php
2018-04-20 14:25:11 -04:00
GlennMartin1
ab929c5ae3
correct two links in Help tab
2018-04-20 14:20:39 -04:00
Claudio Sanches
781d38dc51
Removed undefined wp_json_decode() function from PayPal response
...
Closes #19807
2018-04-20 13:26:05 -03:00
Mike Jolley
2cc1504f7e
Merge branch 'master' into update/erasure-requests
...
# Conflicts:
# includes/class-wc-privacy.php
2018-04-20 16:49:17 +01:00
Mike Jolley
f71ffb5f5e
Added erasure code and moved into separate classes.
2018-04-20 16:47:58 +01:00
Claudio Sanches
c115832c4a
Merge pull request #19802 from woocommerce/update/19786
...
Throw an error when the order is not loaded on checkout
2018-04-20 11:55:45 -03:00
Claudio Sanches
3ca48187a1
Merge pull request #19803 from tivnet/patch-6
...
Update class-wc-privacy.php
2018-04-20 11:54:39 -03:00
Gerhard Potgieter
0d84bcc3eb
Tweaks as per review
2018-04-20 15:20:43 +02:00
Gregory Karpinsky
3fe4de8a95
Docblock: wc_get_orders returns WC_Order[]
2018-04-20 08:01:53 -04:00
Gregory Karpinsky
8d2b32b622
Update class-wc-privacy.php
...
Spelling
2018-04-20 07:57:53 -04:00
Mike Jolley
342ce28c61
Throw an error when the order is not loaded on checkout
2018-04-20 11:54:36 +01:00
Mike Jolley
eeaebc92a0
Merge pull request #19788 from rnaby/class-wc-rest-customers-controller-update_customer_meta_fields-doc-spelling-fix
...
Spelling fix
2018-04-20 11:40:22 +01:00
Mike Jolley
7f4f70fbea
Merge pull request #19795 from rnaby/class-wc-api-reports-validate_request-removed-unnecessary-else
...
Removed unnecessary else condition.
2018-04-20 11:40:02 +01:00
Gerhard Potgieter
03e60f105e
Remove unused method
2018-04-20 12:38:25 +02:00
Mike Jolley
fe30b4900e
Merge pull request #19798 from tivnet/patch-6
...
Update wc-template-functions.php
2018-04-20 11:37:39 +01:00
Gregory Karpinsky
88b9f3763e
Update wc-template-functions.php
...
`wc_privacy_policy_page_id()` has no parameters.
2018-04-19 21:35:02 -04:00
Gregory Karpinsky
02a4538c82
Update wc-template-functions.php
...
Spelling
2018-04-19 21:19:36 -04:00
Khan M Rashedun-Naby
b6cfc6f291
Removed unnecessary else condition.
2018-04-20 01:06:25 +06:00
Mike Jolley
8aa214bab5
Better callback
2018-04-19 18:37:07 +01:00
Mike Jolley
bd539e38f0
Remove output buffering
2018-04-19 18:27:29 +01:00
Mike Jolley
b28b611bb6
Hook notices into WC areas and support returning notices
2018-04-19 18:26:52 +01:00
Mike Jolley
efe06cb147
Remove direct calls to wc_print_notices
2018-04-19 18:26:21 +01:00
Khan M Rashedun-Naby
1b7e14a4b6
Spelling fix
2018-04-19 21:10:36 +06:00
Rodrigo Primo
697421a9fa
Cache query to get the list of orders placed by the user ID 1
2018-04-19 10:14:02 -03:00
Mike Jolley
1d0528b73f
Merge pull request #19778 from woocommerce/fix/inline-docs-admin-attributes
...
Fixed admin attributes page inline docs
2018-04-19 10:48:36 +01:00
Khan M Rashedun-Naby
9aed8394cb
Removed unnecessary else condition check. I think in this situation after early returning the else is redundant.
2018-04-19 11:04:44 +06:00
Claudio Sanches
00bc21135c
Fixed admin attributes page inline docs
2018-04-18 15:32:46 -03:00
claudiulodro
3547df00d9
Use min of 1 for number
2018-04-18 09:48:42 -07:00
claudiulodro
c15cb09700
Resolve merge conflicts
2018-04-18 09:46:15 -07:00
claudiulodro
754031ce6d
Add min to date number
2018-04-18 09:42:32 -07:00
claudiulodro
63972447cb
Fix nonexistent function calls
2018-04-18 09:40:23 -07:00
Mike Jolley
33f4fd7b93
Moved to privacy class and updated dummy content.
2018-04-18 17:10:41 +01:00
Mike Jolley
128c9cb0da
Merge branch 'master' into update/19739
2018-04-18 17:02:46 +01:00
Beka Rice
7bd9cdacaa
Filter the used coupon URL in 'edit order' screen
2018-04-18 11:49:35 -04:00
Claudio Sanches
9679e7be1f
Merge pull request #19772 from woocommerce/update/notice-display
...
Only show notices on specific screens
2018-04-18 12:23:11 -03:00
Mike Jolley
d381330a91
Merge pull request #19705 from woocommerce/fix/19619
...
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Claudiu Lodromanean
48eb13d602
Merge pull request #19747 from woocommerce/update/19734
...
Add privacy policy to account pages
2018-04-18 07:26:06 -07:00
Gerhard Potgieter
3f785d8964
Remove unused variables and merge correct ones.
2018-04-18 16:10:37 +02:00
Gerhard Potgieter
a15687470d
Move fist and last date into one query
2018-04-18 16:07:54 +02:00
Peter Fabian
4538f3fa8f
Moved wc_selected to core functions.
2018-04-18 15:54:57 +02:00
GlennMartin1
256a4d96e2
grammar fix...
2018-04-18 09:11:32 -04:00
Mike Jolley
fc8e7be3ab
Only show notices on specific screens
2018-04-18 14:08:31 +01:00
Mike Jolley
e201b74832
Merge pull request #19756 from woocommerce/feature/19735
...
Notice about HTTPS as a requirement
2018-04-18 13:53:54 +01:00
Mike Jolley
5455e7049b
Update notice text
2018-04-18 13:52:59 +01:00
Mike Jolley
29961b540a
Fix up query
2018-04-18 12:04:53 +01:00
Mike Jolley
248ad8f860
Add anonymized meta to order
2018-04-18 11:35:42 +01:00
Mike Jolley
30ba25d535
Remove defaults
2018-04-18 11:24:07 +01:00
Mike Jolley
9dfb91835e
Merge branch 'master' into update/gdpr-order-cleanup
2018-04-18 11:21:43 +01:00
Mike Jolley
8a05930cba
Merge pull request #19761 from woocommerce/update/obw-save-locales-measurement-units-when-saving-address
...
OBW: Save locale-specific measurement units upon saving address
2018-04-18 11:09:48 +01:00
Mike Jolley
97e747e745
Add default text prop
2018-04-18 11:05:36 +01:00
Mike Jolley
b05ac76303
Merge pull request #19762 from woocommerce/update/obw-store-state-control-in-store-setup-form-layout
...
OBW: Position State select between City and Zip inputs
2018-04-18 11:04:41 +01:00
Peter Fabian
b770e0baed
Used the selected function to take care of markup and simple case.
2018-04-18 09:57:19 +02:00
Gerhard Potgieter
a7b4bcb31a
Restore order counts
2018-04-18 09:04:34 +02:00
Gerhard Potgieter
db57a67fde
Use sql query to improve speed and only do gross
2018-04-18 08:59:34 +02:00
Paul Dechov
c1211e5f03
OBW: Move store State dropdown between City and Zip
2018-04-17 23:16:59 -04:00
Paul Dechov
8c8e18d25b
OBW: Save locale-specific measurement units upon saving address
2018-04-17 22:52:42 -04:00
Jeff Stieler
e2d6656124
OBW: show PayFast payment gateway to merchants in South Africa.
2018-04-17 17:45:43 -06:00
Claudiu Lodromanean
59d967c859
Merge pull request #19754 from woocommerce/add/obw-eway-payment-gateway
...
OBW: Show eWAY payment gateway to merchants in AUS/NZ.
2018-04-17 16:33:41 -07:00
Jeff Stieler
098115006e
OBW: prevent MailChimp from redirecting after activation.
2018-04-17 17:15:14 -06:00
Claudio Sanches
5dda3496fc
Display message once per user
2018-04-17 18:26:08 -03:00
Claudio Sanches
c4d099fe87
Included missing doc link
2018-04-17 18:10:36 -03:00
Jeff Stieler
baa2180221
OBW: Show eWAY payment gateway to merchants in AUS/NZ.
2018-04-17 15:05:34 -06:00
claudiulodro
6d8946048f
Add skip link to recommended step and make skip links darker
2018-04-17 13:55:23 -07:00
Claudio Sanches
b270bd2c5b
Fixed PHPCS violations
2018-04-17 17:44:11 -03:00
Claudio Sanches
8350f88f57
Introduced message about secure connection
2018-04-17 17:39:18 -03:00
Claudiu Lodromanean
624e8d5cb0
Merge pull request #19723 from woocommerce/update/extras-obw-tab
...
OBW: Replace Extras step with Recommended
2018-04-17 13:32:14 -07:00
claudiulodro
f9e45bea91
Bring up-to-date with master and resolve merge conflicts
2018-04-17 13:27:39 -07:00
Rodrigo Primo
923eeb2e43
Monitor only memory limit while running the data migration
...
Turns out WP_Background_Process uses an arbitrary value of 20 seconds of wall clock time to measure PHP "time limit" (b0617a13c4/includes/libraries/wp-background-process.php (L385)
) instead of cpu time which apparently it is not easy to measure in PHP. Since system calls (like database calls) are not included in the PHP maximum execution time, 20 seconds of wall clock is often way less than PHP time limit.
Thus, this commit removes the call to WP_Background_Process::time_exceeded() while running the function to migrate the post meta _customer_user to the field post_author. If the script times out, WP_Background_Process will restart it.
2018-04-17 16:07:18 -03:00
Rodrigo Primo
e02f3fbec4
Migrate data to post_author in a single go when using WP-CLI
2018-04-17 16:07:11 -03:00
claudiulodro
700f0bfca1
Implement privacy policy content
2018-04-17 11:03:39 -07:00
Valerie
43ab4b25ae
OBW: Update Recommended step description
2018-04-17 13:51:49 -04:00
Valerie
551db8246e
OBW: Add MailChimp to recommended step
2018-04-17 13:51:49 -04:00
Valerie
c1e55cd6a5
OBW: Update automated taxes option
2018-04-17 13:51:48 -04:00
Valerie
452491d12d
OBW: Update Storefront description and style
2018-04-17 13:51:46 -04:00
Mike Jolley
6c5d4c7cda
Add privacy settings
2018-04-17 18:32:31 +01:00
Valerie
cadcd562d8
OBW: Rename Extras Step as Recommended
2018-04-17 13:14:27 -04:00
Mike Jolley
718c91f920
Merge pull request #19639 from woocommerce/fix/19620
...
Introduced new wc_get_product_class() and wc_product_class()
2018-04-17 17:00:43 +01:00
Claudio Sanches
c185d6b6d3
Merge branch 'fix/19620' of github.com:woocommerce/woocommerce into fix/19620
2018-04-17 12:54:35 -03:00
Claudio Sanches
a7ce4ff6d3
Escape all at the same time
2018-04-17 12:54:01 -03:00
Mike Jolley
da17e4a174
Merge pull request #19711 from wayheming/master
...
Recent Product Reviews template
2018-04-17 16:53:55 +01:00
Claudiu Lodromanean
006bd017cd
Merge pull request #19675 from woocommerce/fix/19605
...
Slash meta values before updating the DB in the data store
2018-04-17 08:50:50 -07:00
Claudio Sanches
933bcc32c3
Merge branch 'master' into fix/19620
2018-04-17 12:45:20 -03:00
Claudiu Lodromanean
9821f6d23f
Merge pull request #19744 from woocommerce/update/19592
...
BD states and iso codes
2018-04-17 08:44:34 -07:00
Claudiu Lodromanean
90dfbf0ccd
Merge pull request #19728 from woocommerce/fix/plugin-installer-non-slug-filenames
...
Setup wizard: Bug fix and support for non-slug filenames in plugin installer
2018-04-17 08:39:16 -07:00
Claudio Sanches
f18220a009
Updated unit tests
2018-04-17 12:31:14 -03:00
Mike Jolley
fc05f8adb2
Merge pull request #19625 from danielbitzer/master
...
Set the order created_via property for orders created via admin area
2018-04-17 16:26:20 +01:00
Claudio Sanches
54b6174b34
Fixed $post when using product instance
2018-04-17 12:21:56 -03:00
Claudio Sanches
c19836b0e4
Moved espace to wc_product_class
2018-04-17 12:18:21 -03:00
Mike Jolley
ba3da2fc1f
Use original code
2018-04-17 16:18:14 +01:00
Mike Jolley
77b73e05c8
Trigger updater
2018-04-17 16:16:11 +01:00
Claudio Sanches
627292d627
Include categories and tags by default
2018-04-17 12:14:18 -03:00
Mike Jolley
9b043868e9
Update routine
2018-04-17 16:13:44 +01:00
Mohammed Saimon
7869d5bc83
fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720 ( #19732 )
...
* fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720
* added -- which was removed unwillingly
* changed method name to parse_int_field and removed unnecessary checking
2018-04-17 15:37:33 +01:00
Mike Jolley
bce3c7e94c
Disable anon for now
2018-04-17 15:33:40 +01:00
Mike Jolley
314d949d2c
Background process to cleanup
2018-04-17 15:21:03 +01:00
Rodrigo Primo
ccf10f6ab2
Punt to WC version 3.5.0
2018-04-17 11:12:46 -03:00
Mike Jolley
6e9e1aaa62
Daily order cleanup cron schedule
2018-04-17 12:33:22 +01:00
Mike Jolley
6598f6dc61
Basic privacy class from #19330
2018-04-17 12:25:03 +01:00
Peter Fabian
7861d7b95f
Changed usage of selected with in_array to wc_selected.
2018-04-17 13:24:39 +02:00
Mike Jolley
d8814f9381
tip alignment
2018-04-17 12:19:01 +01:00
Mike Jolley
27cf41bbf0
Added personal data cleanup settings
2018-04-17 11:45:24 +01:00
Peter Fabian
49529e0912
Added wc_selected function.
...
- Added unit test for the wc_selected function.
2018-04-17 12:13:46 +02:00
Mike Jolley
e8cc1076ad
Merge pull request #19637 from woocommerce/update/gdpr-checkout-customizer
...
GDPR checkout improvements
2018-04-16 20:00:33 +01:00
Khan M Rashedun-Naby
74c2ceb3d1
Removed unnecessary variable.
2018-04-17 00:09:30 +06:00
Mike Jolley
860e7a5d23
Merge branch 'master' into update/gdpr-checkout-customizer
2018-04-16 18:02:28 +01:00
Mike Jolley
8a19c5962b
Further simplified customiser options
2018-04-16 17:56:44 +01:00
Mike Jolley
094fc1bf3a
Merge pull request #19703 from woocommerce/update/settings-tabs-for-privacy
...
Moved around settings tabs to allow for a privacy page
2018-04-16 16:45:19 +01:00
Rodrigo Primo
4123cc6f7d
Migrate _customer_user to post_author in batches
...
This will make the update slower but safer when running in cheap servers.
2018-04-16 11:15:42 -03:00
Mike Jolley
7f013a0616
Fix storefront * hiding
2018-04-16 15:12:15 +01:00
Rodrigo Primo
c77b2f20f4
Change WC_Background_Updater to allow in-task resource monitoring
...
This change makes it possible to monitor resource usage inside each of the database update functions. Useful when doing resource intensive updates to stop the execution and requeue before the execution is aborted.
2018-04-16 10:40:00 -03:00
Mike Jolley
78f96fcd40
Hook mapping/bw compat
2018-04-16 14:27:03 +01:00
Paul Dechov
a4f76e3529
Fix broken activation when done immediately after installation
2018-04-16 07:22:15 -04:00
Paul Dechov
73884400f1
Remove unnecessary 'file' value for existing plugins
2018-04-16 07:21:04 -04:00
Paul Dechov
2b118c8ba8
Always check for active plugin in wizard before scheduling install
...
Check for active plugin independent of whether 'file' is present. Also omits directory from 'file' string and prepends [slug]/ to it.
2018-04-16 07:20:42 -04:00
Paul Dechov
3814796a24
Enhance plugin installer to accept plugin 'file'
...
'file' string as part of plugin information is used for activating plugin in combination with slug, or instead of slug in the case of plugins already installed. Defaults to [slug].php.
2018-04-16 07:16:59 -04:00
Claudiu Lodromanean
1d6ee4736b
Merge pull request #19678 from woocommerce/fix/19514
...
Handle escape characters for fputcsv
2018-04-13 12:01:32 -07:00
Mike Jolley
93d20d9c93
Data removal handling
2018-04-13 18:03:02 +01:00
Mike Jolley
eb6d230d38
Export downloads and logs
2018-04-13 17:00:26 +01:00
Peter Fabian
93a0808887
Specified input parameters more precisely.
2018-04-13 16:35:14 +02:00
Mike Jolley
965712a1d7
Data removal for accounts/guests
2018-04-13 15:35:03 +01:00
Peter Fabian
8cb1490d55
Added wc prefix to function name.
2018-04-13 16:29:16 +02:00
Mike Jolley
3f2d8e8eef
delete_by_user_id method for customer downloads
2018-04-13 15:07:58 +01:00
Mike Jolley
53a93fd3b1
Clean up user data on delete.
2018-04-13 15:07:38 +01:00
Peter Fabian
62f9b129dc
Converted all input values to selected to strings
...
Extracted conversions and compare logic to a separate function to improve readability.
2018-04-13 14:23:32 +02:00
Gerhard Potgieter
df5bfc5b6a
Private not public
2018-04-13 14:18:39 +02:00
Ernest
0d70b3b34e
Recent Product Reviews template
2018-04-13 14:20:46 +03:00
Mike Jolley
6cb72c2e03
Add extra data to export
2018-04-13 11:49:03 +01:00
Gabor Javorszky
ff3fcf0d2b
Make Product Factory use global $post instead of $GLOBALS['post']
2018-04-13 11:29:33 +01:00
Gabor Javorszky
73e0e3a60e
Make Product Factory return an int from $post->ID
2018-04-13 11:28:42 +01:00
Gabor Javorszky
615815353f
Make Order Factory return an int as well from $post->ID
2018-04-13 11:27:30 +01:00
Gabor Javorszky
d569920825
Cast coupon's $post->ID to int
2018-04-13 11:25:58 +01:00
Peter Fabian
0fc6d4e20c
Fix strict comparison for normal select, too.
2018-04-13 10:26:37 +02:00
Peter Fabian
e17e6d0b0f
Improved the comment
2018-04-12 19:34:49 +02:00
Mike Jolley
704ee893cf
Update for new patch in core
2018-04-12 17:32:02 +01:00
Mike Jolley
1b34cd4745
Moved settings tabs around to allow for privacy page.
2018-04-12 16:59:42 +01:00
Claudiu Lodromanean
736e713b0b
Merge pull request #19699 from woocommerce/fix/19685
...
Added scroll to notices to cart page
2018-04-12 08:51:51 -07:00
Peter Fabian
b88a21dae9
Add dependency on the common js code.
2018-04-12 16:15:00 +02:00
Mike Jolley
7080989081
Move coupon settings to general settings
2018-04-12 11:13:15 +01:00
Mike Jolley
eb886c924e
Rename option tabs
2018-04-12 11:13:01 +01:00
JeroenSormani
4e6b0dc500
Doc improvements (return types mostly)
2018-04-12 09:10:14 +02:00
Rodrigo Primo
35998e56cb
Reposition wc_update_340_order_customer_id() function
...
So that it is listed together with WC 3.3 update functions
2018-04-11 15:23:12 -03:00
Rodrigo Primo
36ca6ef901
Merge branch 'master' into update/use-post-author-for-customer-id
2018-04-11 15:19:58 -03:00
Claudiu Lodromanean
5bc7e91b67
Merge pull request #19670 from woocommerce/update/19641
...
Load meta box input values using CRUD and edit context
2018-04-11 10:14:06 -07:00
Mike Jolley
6c14ad9a88
More wording tweaks
2018-04-11 17:12:48 +01:00
Mike Jolley
592605f071
Wording
2018-04-11 16:45:41 +01:00
Mike Jolley
cdd5b25bd8
Privacy page and default text handling
2018-04-11 16:41:39 +01:00
Mike Jolley
25f0bd46fc
Remove terms from settings so it's with new checkbox options
2018-04-11 15:03:47 +01:00
Mike Jolley
e190d354b4
Page selection for privacy/terms
2018-04-11 15:01:21 +01:00
Mike Jolley
0f8e1cd705
Use placeholders
2018-04-11 14:07:50 +01:00
Mike Jolley
4e58d756f0
Tweak checkbox placement
2018-04-11 13:50:28 +01:00
Mike Jolley
4e9984718d
Simplify required field option
2018-04-11 13:40:42 +01:00
Mike Jolley
eb3b1dbee6
Add dummy product to cart when viewing preview
2018-04-11 13:19:39 +01:00
Gerhard Potgieter
8125797aad
Remove counts variable from merge as it is now part of main method.
2018-04-11 10:35:43 +02:00
Gerhard Potgieter
fa2f0add45
Make order status counts part of the main order method
2018-04-11 10:32:24 +02:00
Gerhard Potgieter
38a87b0ad2
Gross per gateway
2018-04-11 09:56:39 +02:00
Gerhard Potgieter
3e2f20adf6
Fix net and gross calculations
2018-04-11 08:48:32 +02:00
Gerhard Potgieter
25971b88b9
Format datetime
2018-04-11 08:41:57 +02:00
Gerhard Potgieter
19b7052a12
PHPCS fixes
2018-04-11 08:26:22 +02:00
Gerhard Potgieter
af1de29536
Fix up main orders method
2018-04-11 08:14:20 +02:00
Gerhard Potgieter
eb1dcff545
Convert to one order order loop
2018-04-11 08:12:55 +02:00
Claudio Sanches
be1b200ce8
Merge pull request #19669 from woocommerce/fix/19450
...
Avoid storing coupon `used_by` data
2018-04-10 14:30:33 -03:00
Claudio Sanches
f3f05fd59a
Merge pull request #19668 from woocommerce/fix/19657
...
Clear shipping transient when saving shipping method on zones screen
2018-04-10 14:28:53 -03:00
Claudio Sanches
81a699114c
Merge pull request #19667 from woocommerce/fix/19655
...
Load gateways before order is saved/email is triggered
2018-04-10 14:27:47 -03:00
Mike Jolley
5d4561240a
Handle escape characters for fputcsv
2018-04-10 18:08:56 +01:00
Claudio Sanches
2a4b364069
Merge pull request #19671 from woocommerce/fix/19661
...
sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
2018-04-10 11:49:51 -03:00
Mike Jolley
903e3e8acd
Fix featured filter
2018-04-10 14:58:06 +01:00
Mike Jolley
73709ee7cd
Slash meta values before updating the DB in the data store
2018-04-10 14:43:38 +01:00
Gerhard Potgieter
59984654ec
Add discount totals
2018-04-10 14:27:42 +02:00
Gerhard Potgieter
9e6fe4cad1
Add net total
2018-04-10 14:22:21 +02:00
Gerhard Potgieter
601c9910a9
Add first order date
2018-04-10 14:17:17 +02:00
Gerhard Potgieter
d63b0018d8
Add tax total
2018-04-10 14:10:21 +02:00
Mike Jolley
50e2832d2d
sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
...
Fixes #19661
2018-04-10 13:09:20 +01:00
Mike Jolley
efe0d36eea
Load meta box input values using CRUD and edit context
2018-04-10 13:01:52 +01:00
Gerhard Potgieter
4a7ee19d18
Add shipping
2018-04-10 14:01:22 +02:00
Mike Jolley
55aced044f
Avoid storing coupon `_used_by` data
2018-04-10 12:36:24 +01:00
Mike Jolley
47fbd79d8f
Clear shipping transient when saving shipping method on zones screen
2018-04-10 12:25:09 +01:00
Mike Jolley
f9cc65b586
Load gateways before order is saved/email is triggered
...
Fixes #19655
2018-04-10 12:15:14 +01:00
Mike Jolley
cc14ddf1ae
Merge pull request #19658 from woocommerce/fix/19588
...
Changed county codes for Ireland according to ISO
2018-04-10 12:01:01 +01:00
Peter Fabian
8e8a1ca054
Clear comment count transient when cleaning product transients
2018-04-10 12:12:51 +02:00
Peter Fabian
ac1883ee00
Included db update scripts in WC install
2018-04-09 23:24:26 +02:00
Peter Fabian
a3d6dc1775
Changed county codes for Ireland according to ISO
2018-04-09 23:15:09 +02:00
Peter Fabian
d2efef5a1c
Handling of PHP's automatic array key conversion to int
2018-04-09 16:39:14 +02:00
Gerhard Potgieter
72d078452c
Add last order and gross functions
2018-04-09 14:54:50 +02:00
Mohammed Saimon
eccd74b71d
added checking for invalid ratings while saving
2018-04-09 18:13:13 +06:00
Mohammed Saimon
6d973b98b6
returned data early if nonce checking is failed
2018-04-07 15:13:35 +06:00
Mohammed Saimon
6f36133ed5
Product rating count doesn't update when ratings are edited by admin is fixed #19581
2018-04-07 12:50:14 +06:00
Claudio Sanches
900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
...
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Claudio Sanches
60ad91266d
Fixed wrong variable
2018-04-06 15:08:11 -03:00
Claudio Sanches
b3bf245929
Introduced new wc_get_product_class() and wc_product_class functions
2018-04-06 13:58:59 -03:00
Mike Jolley
212a8a180f
Back compat
2018-04-06 11:51:03 +01:00
Mike Jolley
3140a0fb62
More customistion options for terms and conditions.
2018-04-06 11:43:30 +01:00
Brian Henry
b6f1f68a00
Documentation punctuation fixes: its = posessive
2018-04-05 19:45:14 -07:00
Mike Jolley
46815d1d01
Add controls to control if address 2, company, and phone fields are optional, required, or hidden.
2018-04-05 17:51:43 +01:00
Mike Jolley
e30b8e8a5f
Rename script so required label logic works
2018-04-05 17:02:06 +01:00
Mike Jolley
3bf567279b
Improve default appearance of descriptions so they toggle on focus and support HTML.
2018-04-05 16:56:00 +01:00
Mike Jolley
3a6c3e002b
Add option to choose if the checkout marks either required or optional fields, and style these options.
2018-04-05 14:12:59 +01:00
Mike Jolley
0091d7a18c
Adds checkout section to the customizer under `woocommerce`
2018-04-05 13:55:15 +01:00
Daniel Bitzer
1f5d4050b3
Set created_via propery for orders created in admin area
2018-04-05 13:58:51 +02:00
Mike Jolley
3c35320f76
Merge pull request #19610 from woocommerce/fix/19569
...
Use nbsp to separate * denoting required fields.
2018-04-05 11:02:39 +01:00
Mike Jolley
68c6c16a3b
Merge pull request #19611 from woocommerce/fix/wc_get_page_id-bug
...
Fixed bug when using asbint() with wc_get_page_id()
2018-04-05 10:55:43 +01:00
Mike Jolley
b0d3f732d6
Merge pull request #19615 from woocommerce/fix/variable-passed-by-reference
...
Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
2018-04-05 10:53:52 +01:00
Mike Jolley
5172694a3a
Merge pull request #19477 from woocommerce/fix/infinite-scroll
...
Infinite scroll compatibility
2018-04-05 10:46:44 +01:00
Mike Jolley
086f07c47d
Merge pull request #19602 from woocommerce/fix/19431
...
Link product import/export to import/export capabilities
2018-04-05 10:45:29 +01:00
Claudio Sanches
0ac857f049
Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
...
Fixed notice:
```
PHP Notice: Only variables should be passed by reference in includes/admin/importers/class-wc-product-csv-importer-controller.php on line 298
```
2018-04-04 15:50:08 -03:00
Claudio Sanches
95edc882ea
Fixed bug when using asbint() with wc_get_page_id()
...
When a page does not exists `wc_get_page_id()` returns `-1`, so applying
`absint()` should cause bugs when comparing with "Hello world!" page.
2018-04-04 12:12:05 -03:00
Claudio Sanches
ac2e71f22f
Merge pull request #19607 from kouratoras/patch-1
...
Switch to intval when checking for the shop page
2018-04-04 12:02:56 -03:00
Peter Fabian
80dc183880
Use nbsp to separate * denoting required fields.
2018-04-04 16:45:40 +02:00
Claudiu Lodromanean
4d04038372
Merge pull request #19599 from RamseyInHouse/suppressHelperConnectNotice
...
Add filter to suppress admin WordPress.com connection message.
2018-04-04 07:44:42 -07:00
Claudiu Lodromanean
b97d578628
Merge pull request #19603 from woocommerce/fix/19589
...
Switched Georgian Lari to correct UTF symbol
2018-04-04 07:35:39 -07:00
Peter Fabian
ada11aa4e2
Hid import/export from menu when having insufficient capabilities
...
- Made AJAX reply more verbose in case of insufficient capabilities.
2018-04-04 15:06:13 +02:00
Konstantinos Kouratoras
7a9569a185
Switch to intval when checking for the shop page
...
When shop page is not set, shop page id is set to -1. Using absint when checking if the current page is the shop page, this was applied to post with ID 1. Using intval, this is prevented.
Fixes #19606
2018-04-04 15:15:36 +03:00
Peter Fabian
0e25f5840a
Comment PHPCS fix.
2018-04-04 12:18:53 +02:00
Peter Fabian
d920f3dcba
PHPCS fixes.
2018-04-04 12:06:01 +02:00
Peter Fabian
55632d0703
Switched Georgian Lari to correct UTF symbol
2018-04-04 11:11:05 +02:00
Peter Fabian
1ef47120a8
Link product import/export to import/export capabilities
...
- show Import/Export Products buttons only if the user has import/export capability
- show Woo importer/exporter under Tools only if user has import/export capability
- require both edit_products and import/export to run those actions
-
2018-04-04 10:30:49 +02:00
Philip Downer
73ff850b82
Add filter to suppress WordPress.com connection message.
...
Allows developers to supress only the WordPress.com connection message, while still leaving other admin notices (eg., upgrade notice) in place.
2018-04-03 13:42:01 -05:00
Rodrigo Primo
a7d2c5dd6e
Merge branch 'master' into update/use-post-author-for-customer-id
2018-04-03 15:13:07 -03:00
Mike Jolley
4e42b2cd30
Handle manage_stock mixed content for variations
2018-04-03 17:46:43 +01:00
Mike Jolley
5ac7aac369
Improve can_refund_order and add unit tests
2018-04-03 17:09:09 +01:00
Mike Jolley
46516422dd
Merge pull request #19221 from woocommerce/pr/18596
...
Use shipping method instances to conditionally enable COD
2018-04-03 16:26:39 +01:00
Mike Jolley
d02106f697
Merge branch 'master' into pr/18596
2018-04-03 16:24:19 +01:00
Claudio Sanches
d043e4727b
Merge pull request #19595 from woocommerce/fix/19562
...
Trigger post modified update when saving products and variations, but no other product data
2018-04-03 12:23:10 -03:00
Mike Jolley
7b45e90357
Merge branch 'master' into update/19302
2018-04-03 14:57:24 +01:00
Mike Jolley
5bc26ebd79
Merge branch 'master' into update/17427
2018-04-03 14:38:49 +01:00
Mike Jolley
2ed018d542
Trigger post modified update when saving products and variations, but no other product data
...
Closes #19562
2018-04-03 12:51:58 +01:00
Claudiu Lodromanean
fe140110a6
Merge pull request #19502 from rynaldos/duplicate-queries
...
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-04-02 08:49:25 -07:00
Will Gorham
55707ecc7e
Display order item refund as negative value
2018-03-30 17:09:44 -04:00
Claudiu Lodromanean
5ff236fd54
Merge pull request #19567 from woocommerce/fix/19524
...
Ensure background process class returns `data` as an array
2018-03-30 08:13:52 -07:00
Claudiu Lodromanean
b92ea90761
Merge pull request #19571 from Chouby/before_delete_product
...
Add action woocommerce_before_delete_{$post_type}
2018-03-30 08:00:17 -07:00
Claudio Sanches
38a4af3b0e
Included @since tags in new methods of WC_Product_Download
2018-03-29 15:28:10 -03:00
Claudiu Lodromanean
8870f76afe
Merge pull request #19575 from woocommerce/add/downlodable-file-permission-hook
...
Adds new hook to allow customize downlodable file permissions
2018-03-29 10:05:35 -07:00
Claudio Sanches
4c6641ab6a
Adds new hook to allow customize downlodable file permissions
...
This is needed on Product Custom Tables in order to allow control expire
and remaining downloads per file.
2018-03-29 13:58:40 -03:00
Mike Jolley
01be034279
Disable geolocation if using legacy php #19548
2018-03-29 17:04:31 +01:00
Mike Jolley
69a3a78a4c
Typo
2018-03-29 16:46:11 +01:00
Mike Jolley
b88289e5c1
GeoIP version check in status report
2018-03-29 16:44:45 +01:00
Mike Jolley
7ec6917475
PHP version checks to recommend 7.2
2018-03-29 16:38:44 +01:00
Mike Jolley
36aee04abb
Include WordPress version check and resolve phpcs issues
2018-03-29 16:08:36 +01:00
Rodrigo Primo
bb553c88ae
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-29 12:05:55 -03:00
Rodrigo Primo
edfadcf7ae
Product price filter widget: add a new filter to change the query to get max and min prices
2018-03-29 11:52:49 -03:00
Frédéric Demarle
ee2140944c
add action woocommerce_before_delete_{$post_type}
2018-03-29 14:52:19 +02:00
Mike Jolley
51d634e29a
Ensure background process class returns `data` as an array
...
Fixes #19524
2018-03-29 11:09:41 +01:00
Mike Jolley
4a6c526229
Merge pull request #19557 from bernattorras/before_variations_hook
...
Add 'woocommerce_variable_product_before_variations' hook to variations tab
2018-03-29 11:00:34 +01:00
bernat torras
307605a739
Added 'Removed extra tabs
2018-03-28 21:27:46 +02:00
Claudio Sanches
e718bdd11c
Merge pull request #19192 from nishitlangaliya/Issue-18990
...
Fixes- Admin - removed product type column
2018-03-28 15:37:57 -03:00
Claudio Sanches
5bec3b229f
Merge pull request #19527 from woocommerce/fix/19519
...
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
2018-03-28 15:23:14 -03:00
Claudio Sanches
35b75b5beb
Merge pull request #19555 from woocommerce/update/19547-wp-cli-pagination
...
WP-CLI integration per_page default
2018-03-28 14:01:38 -03:00
bernat torras
47d85844d8
Added 'woocommerce_variable_product_before_variations' hook to variation tab
2018-03-28 16:02:06 +02:00
Mike Jolley
51252915e1
Merge pull request #19493 from woocommerce/fix/19404
...
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian
3809ab3f4c
Fixed shipping tax logic to behave the same as originally
2018-03-28 13:08:05 +02:00
Gerhard Potgieter
2c24872989
Merge pull request #19541 from woocommerce/update/tracking-wording
...
Tweak wording for opt-out
2018-03-28 12:12:18 +02:00
Mike Jolley
5547c57c03
Merge pull request #19504 from woocommerce/fix/19485-backorder-import
...
Product import backorders default to no
2018-03-28 11:00:09 +01:00
Mike Jolley
7966fcfbe7
Merge pull request #19522 from woocommerce/fix/19491
...
Apply strip_tags to attributes in loop template
2018-03-28 10:57:58 +01:00
Peter Fabian
c2e27919ce
Replaced array_key_exists with isset test
2018-03-28 11:19:03 +02:00
Peter Fabian
59c47c4407
Refactored line item logic
...
- prepare_line_items is not used as a test anymore, it only updates line items
- add_line_item is not used as a test anymore, only adds line items
- added method line_items_valid to test for valid line items
- shipping tax inclusion test moved to get_shipping_cost_line_item to encapsulate shipping tax-related logic
2018-03-28 11:04:34 +02:00
Gerhard Potgieter
9c67760bc0
per_page must be between 1 and 100, default to 100.
2018-03-28 10:18:10 +02:00
Gerhard Potgieter
1f2468ca3e
When no per_page is defined for list wp-cli command default to displaying all items as per the wp-cli standard.
2018-03-28 09:47:15 +02:00
Mike Jolley
57378785bf
Split up state and country fields
2018-03-27 19:32:04 +01:00
Mike Jolley
38c29204d4
Include US in US dollar dropdown so it's searchable
2018-03-27 18:35:15 +01:00
Claudiu Lodromanean
d802d2ca6a
Merge pull request #19526 from woocommerce/fix/19511
...
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-27 08:36:31 -07:00
Peter Fabian
86f1b3701f
Tag stripped outside template
...
Stripping only affects aria-label attribute now.
2018-03-27 17:19:49 +02:00
Claudiu Lodromanean
ccdf0923fa
Merge pull request #19509 from woocommerce/update/19506
...
Call empty cart when completing payment in PayPal
2018-03-27 07:58:59 -07:00
Peter Fabian
f39e8e3900
Removed incorrect comment
2018-03-27 16:28:25 +02:00
Peter Fabian
5eda49f98a
Line item logic refactored
...
Renamed function get_non_line_item_args
Documentation updates
...all part of code review fixes
2018-03-27 15:55:03 +02:00
Mike Jolley
0c3ab5d485
Update currency text to make it clear it's to accept payments
2018-03-27 13:35:13 +01:00
Mike Jolley
0599c06b20
Disable Gutenberg for products.
2018-03-27 13:28:03 +01:00
Mike Jolley
dd3b998851
Tweak wording for opt-out
2018-03-27 13:00:19 +01:00
Mike Jolley
ffb6bc844c
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
...
Closes #19519
2018-03-26 12:54:17 +01:00
Peter Fabian
88588eccbc
Code duplication removed
...
Added test for non line item agrument presence
Fixed incorrect comment
2018-03-26 13:05:55 +02:00
Mike Jolley
ced5980e79
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-26 12:03:00 +01:00
Mike Jolley
b25ff31d5c
Merge pull request #19419 from woocommerce/feature/18477
...
MaxMind GeoLite2 integration
2018-03-26 11:31:21 +01:00
Mike Jolley
c8f6330158
Merge pull request #19515 from woocommerce/fix/order-products-by-price
...
Use minimum price to order variable products on term archives
2018-03-26 11:17:23 +01:00
Peter Fabian
e19d64e51e
Fixed PHPCS violations
2018-03-26 11:00:28 +02:00
ahmedofali
d06854a0b4
Defining array before attempting to append to it
2018-03-25 18:28:14 +00:00
Rodrigo Primo
a02b77bedc
Use minimum price to order variable products on term archives
...
Commit 12d7bf7
added a specific query to order products by price from low to high on term archives (see #17690 and #16694 for more details), but, probably due to a copy and paste error, it changed the behavior when dealing with variable products. Instead of using the smallest variation price of each variable product, it was using the highest variation price. This commit changes this new query to use the smallest variation price of each variable product. This way ordering by price from low to high on term archives will again behave in the same way that on the shop page when dealing with variable products.
2018-03-23 16:15:37 -03:00
Mike Jolley
fb290ebbaa
Merge pull request #19510 from woocommerce/fix/19472
...
Check query var for orderby if not found in $_GET
2018-03-23 18:00:42 +00:00
Peter Fabian
26144afbc6
Test request length after applying filter
...
- added default value to get_line_item_args to not break interface
- smaller code review updates
2018-03-23 17:22:09 +01:00
claudiulodro
62d88892bf
Check query var for orderby
2018-03-23 08:30:02 -07:00
Mike Jolley
0573232c62
Call empty cart when completing payment in PayPal
2018-03-23 12:54:03 +00:00
Mike Jolley
f98eb66f8c
Webhooks do not need permission checks
2018-03-23 12:45:10 +00:00
Mike Jolley
0f040f08c4
Merge pull request #19494 from woocommerce/fix/download-handler-class-phpcs
...
Fixed includes/class-wc-download-handler.php PHPCS violations
2018-03-23 11:51:01 +00:00
Gerhard Potgieter
e876f0dfb2
empty check on 0 will be true, return no when empty.
2018-03-23 11:21:59 +02:00
Gerhard Potgieter
04cce41b6b
Default to no when importing backorders.
2018-03-23 11:19:02 +02:00
rspublishing
2eca0d73bd
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-03-23 11:15:21 +02:00
Peter Fabian
59af63e642
Merge branch 'master' into fix/19404
2018-03-23 09:36:15 +01:00
Claudiu Lodromanean
d4ef90bf91
Merge pull request #19495 from woocommerce/fix/emails-class-phpcs
...
Fixed includes/class-wc-emails.php PHPCS violations
2018-03-22 13:27:21 -07:00
Claudiu Lodromanean
8048afe4ce
Merge pull request #19498 from woocommerce/fix/frontend-scripts-class-phpcs
...
Fixed includes/class-wc-frontend-scripts.php PHPCS violations
2018-03-22 13:25:12 -07:00
Claudio Sanches
027789271d
Fixed includes/class-wc-frontend-scripts.php PHPCS violations
2018-03-22 16:01:03 -03:00
Claudio Sanches
930591808b
Fixed includes/class-wc-product-variation.php PHPCS violations
2018-03-22 15:49:01 -03:00
Claudio Sanches
b2e33b3fb9
Fixed includes/class-wc-product-variable.php PHPCS violations
2018-03-22 15:47:50 -03:00
Claudio Sanches
8470a691a7
Fixed includes/class-wc-product-simple.php PHPCS violations
2018-03-22 15:43:51 -03:00
Claudio Sanches
50c0a34dec
Fixed includes/class-wc-product-query.php PHPCS violations
2018-03-22 15:41:53 -03:00
Claudio Sanches
dfeb867a04
Fixed includes/class-wc-product-grouped.php PHPCS violations
2018-03-22 15:37:29 -03:00
Claudio Sanches
73a56469ef
Fixed includes/class-wc-product-factory.php PHPCS violations
2018-03-22 15:36:07 -03:00
Claudio Sanches
6eada732b8
Fixed includes/class-wc-product-external.php PHPCS violations
2018-03-22 15:26:09 -03:00
Claudio Sanches
475e0c734f
Fixed includes/class-wc-product-download.php PHPCS violations
2018-03-22 15:10:22 -03:00
Claudio Sanches
809ca5e0fc
Fixed includes/class-wc-product-attribute.php PHPCS violations
2018-03-22 15:07:06 -03:00
Claudio Sanches
a529e1fdf3
Fixed includes/class-wc-emails.php PHPCS violations
2018-03-22 14:54:16 -03:00
Claudio Sanches
88d0b502d9
Fixed includes/class-wc-download-handler.php PHPCS violations
2018-03-22 14:12:36 -03:00
Mike Jolley
db9e66e743
Merge pull request #19481 from woocommerce/fix/payment-classes-phpcs
...
Fixed payment main classes PHPCS violations
2018-03-22 15:11:13 +00:00
Mike Jolley
d40e09b3c9
Merge pull request #19484 from woocommerce/fix/shipping-classes-phpcs
...
Fixed shipping classes PHPCS violations
2018-03-22 15:08:11 +00:00
Mike Jolley
66a5895645
Merge pull request #19483 from woocommerce/fix/posts-classes-phpcs
...
Fixed post classes PHPCS violations
2018-03-22 15:07:45 +00:00
Claudio Sanches
e79012e7e3
Fixed a typo
2018-03-22 12:06:36 -03:00
Peter Fabian
27a309d2df
Removed line item limit and make sure the URL is shorter than 2083 characters
...
- removed limit to 9 line items per Paypal order
- if the request URL with all line items will be longer than 2083 characters, send it as one line item
- fix the character limit function to account for URL encoding happening in http_build_query
2018-03-22 15:39:30 +01:00
Claudio Sanches
fd57c1c596
Fixed includes/class-wc-shipping-rate.php PHPCS violations
2018-03-21 20:58:20 -03:00
Claudio Sanches
996d3decfe
Fixed file and class dockblock
2018-03-21 20:54:10 -03:00
Claudio Sanches
39f1c3e8fc
Fixed coding standards
2018-03-21 20:53:59 -03:00
Claudio Sanches
7b1fc4c8e8
Fixed includes/class-wc-post-types.php PHPCS violations
2018-03-21 20:50:40 -03:00
Claudio Sanches
ce8033ddf6
Fixed includes/class-wc-post-data.php PHPCS violations
2018-03-21 20:44:35 -03:00
Claudio Sanches
b0617a13c4
Removed unnecessary ternary operators
2018-03-21 20:05:19 -03:00
Claudio Sanches
0660a50e07
Removed obvious boolean results
2018-03-21 19:57:10 -03:00
Claudio Sanches
72d0b448f6
Fixed includes/class-wc-payment-tokens.php PHPCS violations
2018-03-21 19:45:27 -03:00
Claudio Sanches
d14615a6f7
Fixed includes/class-wc-payment-gateways.php PHPCS violations
2018-03-21 19:40:47 -03:00
Mike Jolley
a826d4d91f
Better method of removing product query after it runs.
2018-03-21 17:41:14 +00:00
Claudio Sanches
21dc6d28cf
Merge branch 'master' into feature/18477
2018-03-21 14:31:58 -03:00
Mike Jolley
b037c965cb
Set default order if empty
2018-03-21 17:24:00 +00:00
Mike Jolley
9c42735386
temp fix; comment out lines
2018-03-21 16:41:22 +00:00
Mike Jolley
dc7aa30694
Merge pull request #19467 from woocommerce/fix/some-includes-classes-phpcs
...
Fixed PHPCS violations in some classes on includes directory
2018-03-21 10:39:18 +00:00
Claudio Sanches
a7692478b0
Fixed includes/class-wc-order-item.php PHPCS violations
2018-03-21 00:56:59 -03:00
Claudio Sanches
583378cf7b
Fixed includes/class-wc-order-item-tax.php PHPCS violations
2018-03-21 00:52:55 -03:00
Claudio Sanches
eedc8c57e5
Improved class description
2018-03-21 00:50:30 -03:00
Claudio Sanches
949514fe75
Fixed includes/class-wc-order-item-product.php PHPCS violations
2018-03-21 00:49:45 -03:00
Claudio Sanches
d03e5a5f6c
Fixed includes/class-wc-order-item-shipping.php coding standards
2018-03-21 00:46:32 -03:00
Claudio Sanches
51a06da91d
Fixed includes/class-wc-order-item.php PHPCS violations
2018-03-21 00:45:44 -03:00
Claudio Sanches
9a55d16f44
Fixed includes/class-wc-order.php PHPCS violations
2018-03-21 00:44:44 -03:00
Claudio Sanches
ddac79152a
Fixed includes/class-wc-order-item-meta.php PHPCS violations
2018-03-21 00:43:54 -03:00
Claudio Sanches
e70f278123
Fixed includes/class-wc-order-item-fee.php PHPCS violations
2018-03-21 00:39:37 -03:00
Claudio Sanches
806c0d7a6d
Fixed includes/class-wc-order-item-coupon.php PHPCS violations
2018-03-21 00:33:44 -03:00
Claudio Sanches
f2cce37d6f
Fixed includes/class-wc-order-factory.php PHPCS violations
2018-03-21 00:31:15 -03:00
Claudio Sanches
7978671dd0
Fixed includes/class-woocommerce.php coding standards
2018-03-21 00:22:29 -03:00
Claudio Sanches
7f5e5a3ca4
Short ABSPATH check in includes/class-wc-webhook.php
2018-03-21 00:22:04 -03:00
Claudio Sanches
cc7d7eec42
Fixed includes/class-wc-validation.php coding standards
2018-03-21 00:21:41 -03:00
Claudio Sanches
e2a079f42f
Fixed includes/class-wc-template-loader.php coding standards
2018-03-21 00:20:19 -03:00
Claudio Sanches
539282be16
Fixed includes/class-wc-structured-data.php PHPCS violations
2018-03-21 00:19:41 -03:00
Claudio Sanches
698be52bf8
Fixed includes/class-wc-shortcodes.php PHPCS violations
2018-03-21 00:18:50 -03:00
Claudio Sanches
8a31755b8c
Fixed includes/class-wc-session-handler.php PHPCS violations
2018-03-21 00:18:01 -03:00
Claudio Sanches
24cc589fd5
Fixed includes/class-wc-register-wp-admin-settings.php PHPCS violations
2018-03-21 00:16:26 -03:00
Claudio Sanches
b44aece433
Fixed includes/class-wc-regenerate-images.php PHPCS violations
2018-03-21 00:14:07 -03:00
Claudio Sanches
cf06e58906
Fixed includes/class-wc-query.php PHPCS violations
2018-03-21 00:13:22 -03:00
Claudio Sanches
e825f33414
Fixed includes/class-wc-meta-data.php PHPCS violations
2018-03-21 00:11:16 -03:00
Claudio Sanches
7173396912
Fixed includes/class-wc-log-levels.php PHPCS violations
2018-03-21 00:08:59 -03:00
Claudio Sanches
56d9a88926
Fixed includes/class-wc-integrations.php PHPCS violations
2018-03-21 00:07:37 -03:00
Claudio Sanches
b8534eee28
Fixed includes/class-wc-install.php PHPCS violations
2018-03-21 00:06:47 -03:00
Claudio Sanches
d59a7463eb
Fixed includes/class-wc-geolocation.php PHPCS violations
2018-03-21 00:03:50 -03:00
Claudio Sanches
d989627125
Fixed includes/class-wc-embed.php PHPCS violations
2018-03-21 00:02:57 -03:00
Claudio Sanches
a1a82b09bb
Fixed includes/class-wc-discounts.php PHPCS violations
2018-03-21 00:00:54 -03:00
Claudio Sanches
db713cce76
Short ASBPATH check in deprecated action and filter classes
2018-03-21 00:00:21 -03:00
Claudio Sanches
9a9906ec46
Fixed includes/class-wc-datetime.php PHPCS violations
2018-03-20 23:59:56 -03:00
Mike Jolley
016b3c76fb
Merge pull request #18196 from woocommerce/update/17795
...
Add refunded payment prop after an API refund succeeds.
2018-03-20 17:10:40 +00:00
Mike Jolley
e413cdd75e
Merge pull request #19458 from woocommerce/fix/customer-classes-phpcs
...
Fixed Customer classes PHPCS violations
2018-03-20 16:47:59 +00:00
Mike Jolley
701f17840a
Merge pull request #19457 from woocommerce/fix/countries-class-phpcs
...
Fixed includes/class-wc-countries.php PHPCS violations
2018-03-20 16:47:03 +00:00
Mike Jolley
b51626f183
Merge pull request #19456 from woocommerce/fix/coupon-class-phpcs
...
Fixed includes/class-wc-coupon.php PHPCS violations
2018-03-20 16:46:25 +00:00
Mike Jolley
6e02397935
Merge pull request #19459 from woocommerce/fix/data-classes-phpcs
...
Fixed Data store classes PHPCS violations
2018-03-20 16:44:57 +00:00
Mike Jolley
99ec658684
Merge pull request #19455 from woocommerce/fix/comments-class-phpcs
...
Fixed includes/class-wc-comments.php PHPCS violations
2018-03-20 16:44:27 +00:00
Claudio Sanches
16f3858472
Fixed "end if" comment
2018-03-19 20:22:39 -03:00
Claudio Sanches
62f2a603d5
Fixed includes/class-wc-data-store.php PHPCS violations
2018-03-19 20:21:10 -03:00
Claudio Sanches
3e7b6a9f7b
Fixed includes/class-wc-data-exception.php PHPCS violations
2018-03-19 20:17:56 -03:00
Claudio Sanches
d528e65849
Fixed includes/class-wc-customer.php PHPCS violations
2018-03-19 20:15:16 -03:00
Claudio Sanches
37a9af55c0
Fixed includes/class-wc-customer-download.php PHPCS violations
2018-03-19 20:07:49 -03:00
Claudio Sanches
4a384da01a
Fixed includes/class-wc-customer-download-log.php PHPCS violations
2018-03-19 20:01:52 -03:00
Claudio Sanches
96ec4d6215
Fixed includes/class-wc-coupon.php PHPCS violations
2018-03-19 19:59:20 -03:00
Claudio Sanches
0b5aef0fd3
Fixed includes/class-wc-countries.php PHPCS violations
2018-03-19 19:42:55 -03:00
Claudio Sanches
f81b90efe6
Fixed includes/class-wc-comments.php PHPCS violations
2018-03-19 19:39:31 -03:00
Claudio Sanches
73b1c9c603
Short ASBPATH check
2018-03-19 19:28:37 -03:00
Claudiu Lodromanean
b8700c51e2
Merge pull request #19449 from woocommerce/fix/19439
...
Set is_shortcode loop prop when outputting subcategories
2018-03-19 11:35:58 -07:00
Claudiu Lodromanean
0454f1539b
Merge pull request #19387 from woocommerce/update/19345
...
Add names to nonces
2018-03-19 11:14:23 -07:00
Mike Jolley
f6dc960e46
phpcs
2018-03-19 18:09:13 +00:00
Mike Jolley
6539b7913e
Merge branch 'master'
2018-03-19 18:05:36 +00:00
Mike Jolley
fb8b670cda
Merge branch 'master' into update/19345
2018-03-19 18:00:28 +00:00
Mike Jolley
e509e92f7b
BW compat for nonce check
2018-03-19 17:59:30 +00:00
Mike Jolley
40b831f4df
Missing $like was breaking unit tests.
...
@rodrigoprimo
2018-03-19 17:36:36 +00:00
Claudiu Lodromanean
e6a266e30f
Merge pull request #19412 from woocommerce/update/19408
...
Use wc_get_default_products_per_row as the default for product shortcodes
2018-03-19 09:23:44 -07:00
Mike Jolley
d099aae4ec
Fix test and default
2018-03-19 13:05:43 +00:00
Mike Jolley
ce7caa8029
Merge branch 'master' into fix/19284
2018-03-19 13:01:31 +00:00
Mike Jolley
f7056a4284
missing echo
2018-03-19 12:59:50 +00:00
Mike Jolley
6e2b65aca9
Merge pull request #19434 from woocommerce/fix/php-warning-catalog-ordering
...
Fixed PHP warning on woocommerce_catalog_ordering()
2018-03-19 12:54:27 +00:00
Mike Jolley
c26e766b06
Merge pull request #19428 from woocommerce/fix/phpcs-includes-product-grouped
...
Fix PHPCS violations in includes/class-wc-product-grouped.php
2018-03-19 12:52:21 +00:00
Mike Jolley
5a8c1ee81c
Merge pull request #19433 from woocommerce/fix/cart--classes-phpcs
...
Fixed cart classes PHPCS violations
2018-03-19 12:51:50 +00:00
Mike Jolley
127b9a89d0
Merge pull request #19436 from liquidweb/feature/register-additional-woocommerce-tables
...
Add the "woocommerce_install_get_tables" filter to WC_Install::get_tables()
2018-03-19 12:50:40 +00:00
Mike Jolley
808dbec82a
Set is_shortcode loop prop when outputting subcategories
...
Fixes #19439
2018-03-19 11:12:18 +00:00
Claudio Sanches
47894cc64d
Fixed includes/class-wc-checkout.php PHPCS violations
2018-03-16 16:15:08 -03:00
Steve Grunwell
049876ac8f
Add the "woocommerce_install_get_tables" filter to WC_Install::get_tables()
...
This commit adds a new filter, "woocommerce_install_get_tables", to the WC_Install::get_tables() method, enabling WooCommerce extensions to register new, WooCommerce-specific tables, ensuring these tables can be cleaned up automatically should WooCommerce be uninstalled (useful for things like custom table data stores). Nothing gets added by default, but this provides an integration point for plugins like WooCommerce Custom Orders Table.
2018-03-16 18:54:17 +00:00
Claudio Sanches
15989622df
Fixed PHP warning on woocommerce_catalog_ordering()
...
This fixes the follow warning:
> PHP Warning: array_key_exists(): The first argument should be either a string or an integer in includes/wc-template-functions.php on line 1012
When an option doesn't exists is returned `false`, just setting a default value to fix the issue.
This issue should happen in new installations of WooCommerce 3.3 when no
order is defined on the customizer.
2018-03-16 15:13:21 -03:00
Claudio Sanches
84c047dad1
Fixed includes/class-wc-cart.php PHPCS violations
2018-03-16 15:08:52 -03:00
Claudio Sanches
67cd6b8fbf
Fixed includes/class-wc-cart-totals.php PHPCS violations
2018-03-16 14:47:18 -03:00
Claudio Sanches
8effbb11bd
Fixed includes/class-wc-cart-session.php PHPCS violations
2018-03-16 14:45:28 -03:00
Claudio Sanches
c904894035
Fixed includes/class-wc-cart-fees.php PHPCS violations
2018-03-16 14:43:53 -03:00
Claudio Sanches
db3924f2c7
Merge pull request #19421 from woocommerce/fix/auth-class-phpcs
...
Fixed includes/class-wc-auth.php PHPCS violations
2018-03-16 11:57:05 -03:00
Mike Jolley
09b089fff4
Merge pull request #19424 from woocommerce/fix/breadcrumb-class-phpcs
...
Fixed includes/class-wc-breadcrumb.php PHPCS violations
2018-03-16 14:14:26 +00:00
Mike Jolley
6cc5f2e171
Merge pull request #19140 from woocommerce/fix/subcategory-cache
...
Clear subcategory cache
2018-03-16 14:08:58 +00:00
Mike Jolley
eb26221b1a
Merge branch 'master' into update/19061
2018-03-16 13:59:05 +00:00
Mike Jolley
7a568e2f68
Personal data removal experiment
2018-03-16 13:53:18 +00:00
Rodrigo Primo
6fcc468aba
PHPCS fixes in includes/class-wc-product-grouped.php
2018-03-16 10:00:42 -03:00
Rodrigo Primo
8e87ce7e57
Remove unused variable
2018-03-16 09:57:18 -03:00
Gerhard Potgieter
b0902e56d8
Merge pull request #19423 from woocommerce/fix/background-emailer-class-phpcs
...
Fixed includes/class-wc-background-emailer.php PHPCS violations
2018-03-16 13:40:41 +02:00
Gerhard Potgieter
5fcef12667
Merge pull request #19422 from woocommerce/fix/autoload-class-phpcs
...
Fixed includes/class-wc-autoloader.php PHPCS violations
2018-03-16 13:26:45 +02:00
Gerhard Potgieter
c0d3050a99
Merge pull request #19420 from woocommerce/fix/api-class-phpcs
...
Fixed includes/class-wc-api.php PHPCS violations
2018-03-16 13:11:22 +02:00
Mike Jolley
5740dc15e7
Merge pull request #19416 from woocommerce/fix/17876
...
Enable selecting with tab key on selectWoo
2018-03-16 11:08:30 +00:00
Claudio Sanches
8d860d7fb3
Fixed includes/class-wc-breadcrumb.php PHPCS violations
2018-03-15 18:30:08 -03:00
Claudio Sanches
3d4217143e
Fixed includes/class-wc-background-emailer.php PHPCS violations
2018-03-15 18:22:12 -03:00
Claudio Sanches
820426a4d0
Short ASBPATH check in includes/class-wc-background-updater.php
2018-03-15 18:14:36 -03:00
Claudio Sanches
0ce0edac73
Fixed includes/class-wc-autoloader.php PHPCS violations
2018-03-15 18:13:26 -03:00
Claudio Sanches
8ab919ee94
Fixed includes/class-wc-auth.php PHPCS violations
2018-03-15 17:58:12 -03:00
Claudio Sanches
b6bcb44f3f
Fixed includes/class-wc-api.php PHPCS violations
2018-03-15 17:35:40 -03:00
Claudio Sanches
827d957d66
Load GeoLite2 Reader when creating a new instance of WC_Geolite_Integration
2018-03-15 17:30:17 -03:00
Claudio Sanches
774a54b8ee
Deprecated old WC_Geo_IP class
2018-03-15 17:23:40 -03:00
claudiulodro
b0fa583f6e
Enable selecting with tab key on selectWoo
2018-03-15 11:52:07 -07:00
Claudio Sanches
6405e8645a
Removed legacy private methods from WC_Geolocation
2018-03-15 14:01:36 -03:00
Claudio Sanches
a731135cae
Removed outdated IP lookup service and improved check for valid IPs
2018-03-15 13:45:49 -03:00
Claudiu Lodromanean
fbccc4ed5c
Merge pull request #19415 from woocommerce/fix/19401
...
Reload gateways after updating the order.
2018-03-15 09:21:15 -07:00
Claudiu Lodromanean
88531fdfc6
Merge pull request #19414 from woocommerce/fix/19398
...
Inherit 'is variation' from existing attribute during csv import
2018-03-15 09:06:57 -07:00
Claudiu Lodromanean
b00e05bb64
Merge pull request #19413 from woocommerce/update/19402
...
Add post_excerpt to product search
2018-03-15 08:00:52 -07:00
Mike Jolley
2abd510b36
Merge pull request #19391 from woocommerce/fix/rounding
...
100% coupon with inclusive taxes and out-of-base rounding issue fix
2018-03-15 12:43:58 +00:00
Mike Jolley
4bbdf30794
Reload gateways after updating the order. Fixes #19401
2018-03-15 12:39:30 +00:00
Mike Jolley
e86ae89123
phpcs
2018-03-15 12:36:10 +00:00
Mike Jolley
565f1c6e66
Inherit 'is variation' from existing attribute during csv import
2018-03-15 12:18:31 +00:00
Mike Jolley
3df5a479f9
Add post_excerpt to product search
2018-03-15 11:21:27 +00:00
Mike Jolley
1c9143546f
Use wc_get_default_products_per_row as the default for product shortcodes
...
Closes #19408
Will apply if no fixed columns are provided via the shortcode args.
2018-03-15 11:16:34 +00:00
Mike Jolley
94bfd3b336
Update formatting and tests
2018-03-15 10:54:32 +00:00
Mike Jolley
c4b3bd0114
Merge pull request #19405 from woocommerce/phpcs-fixes
...
Fix PHPCS violations in a few files
2018-03-15 10:02:23 +00:00
Rodrigo Primo
a767eb1a87
PHPCS fixes in includes/class-wc-shipping-zone.php
2018-03-14 17:54:42 -03:00
Rodrigo Primo
af75da87fd
PHPCS fixes in includes/class-wc-shipping-zones.php
2018-03-14 17:53:41 -03:00
Rodrigo Primo
45c1adec23
Remove unused private method WC_Shipping::get_default_method()
...
This method was create in commit 9f65d2a1fc
and it was used only once inside WC_Shipping::calculate_shipping(). But commit 4c4f26ff41
removed this call to WC_Shipping::get_default_method() and left the method unused.
2018-03-14 17:50:38 -03:00
Rodrigo Primo
e90ce56a50
PHPCS fixes in includes/class-wc-shipping.php
2018-03-14 17:50:19 -03:00
Rodrigo Primo
202e527a83
PHPCS fixes in includes/class-wc-shortcodes.php
2018-03-14 17:41:24 -03:00
Claudio Sanches
4a638c60bb
Reschedule download of GeoLite2 database when something goes wrong
2018-03-14 16:07:00 -03:00
Claudio Sanches
4e9c8f2590
Updated GeoLite2 Reader errors to warning level
2018-03-14 16:03:31 -03:00
Claudio Sanches
51cfb9b03e
Updated how GeoLite2 database is downloaded
2018-03-14 16:01:33 -03:00
Claudio Sanches
1791a192d8
Check for PHP version before try use GeoLite2
2018-03-14 14:07:20 -03:00
Claudio Sanches
7f6f4b848d
Created WC_Geolite_Integration class to handle with GeoLite2 integration
2018-03-14 13:57:07 -03:00
Claudio Sanches
29b9e9c085
GeoLite2 Reader integration
2018-03-14 12:42:53 -03:00
claudiulodro
f39a9ee61a
Round fractional cents when oob
2018-03-14 08:35:41 -07:00
Claudiu Lodromanean
feba3bd3ed
Merge pull request #19378 from woocommerce/fix/19217
...
Deletes orphan variations after successful import.
2018-03-14 08:27:30 -07:00
Mike Jolley
27f07807a5
Clean up
2018-03-14 15:23:39 +00:00
Mike Jolley
e0ab13bd3c
Tests and test pass
2018-03-14 15:14:45 +00:00
Mike Jolley
fec36ff4b2
Test runner
2018-03-14 14:29:03 +00:00
Mike Jolley
f166e25b19
basic integration with https://core.trac.wordpress.org/ticket/43438
2018-03-14 14:11:42 +00:00
Mike Jolley
06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
...
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Mike Jolley
a60e51afe1
Merge branch 'master' into update/setup-wizard-activate-step-when-jetpack-connected
2018-03-14 12:49:44 +00:00
Mike Jolley
f771e323d9
Set opt-in/out based on geolocation data and DNT headers
2018-03-14 12:32:40 +00:00
Roy Lindauer
33cfed8e47
ensure that cache is deleted
2018-03-13 15:37:09 -07:00
Roy Lindauer
b151480e6b
fix indentation issues
2018-03-13 15:34:47 -07:00
Mike Jolley
e03bc3d447
Merge pull request #19381 from woocommerce/fix/phpcs-violations-includes
...
Fix PHPCS violations in a few includes/ files
2018-03-13 19:36:53 +00:00
Mike Jolley
d052b2ee46
cache per parent to avoid large caches
2018-03-13 19:00:08 +00:00
Claudio Sanches
6fdc1a547d
Download new GeoLite2 and deprecated legacy GeoLite
2018-03-13 15:57:32 -03:00
Mike Jolley
cb3c4849b4
Merge branch 'master' into fix/19175
2018-03-13 18:14:36 +00:00
Claudio Sanches
39c702403a
Updated system status message about MaxMind GeoIP database
2018-03-13 14:54:56 -03:00
Claudio Sanches
f24fe25c7d
Included new GeoLite2 DB reader library
2018-03-13 14:50:01 -03:00
Claudiu Lodromanean
05b4bf7a55
Merge pull request #19382 from woocommerce/fix/19370
...
Variations errors
2018-03-13 10:42:49 -07:00
Claudiu Lodromanean
c38e0e69e9
Merge pull request #19376 from woocommerce/fix/19362
...
Correctly handle default ordering on the search page
2018-03-13 10:39:59 -07:00
Claudio Sanches
c2966805c8
Merge pull request #19386 from woocommerce/fix/insert-term-fatal-error
...
Check if wp_insert_term() returned a term before using it
2018-03-13 14:33:17 -03:00
Claudio Sanches
941d2a7bfe
Merge pull request #19384 from woocommerce/fix/default-product-category-check
...
Fix default product category check
2018-03-13 14:31:16 -03:00
Claudiu Lodromanean
3a5644ddce
Merge pull request #19338 from woocommerce/fix/19222
...
Fix JS state/country inputs
2018-03-13 10:10:24 -07:00
Mike Jolley
1dbf1bc1d8
add general woocommerce_form_field filter
2018-03-13 14:30:19 +00:00
Mike Jolley
5d6b43dbc8
Update nonce handling
2018-03-13 14:16:56 +00:00
Rodrigo Primo
d603ba0b68
Check if wp_insert_term() returned a term before using it
...
This commit adds a check to make sure wp_insert_term() returned a term and not an instance of WP_Error before trying to access it. Without this change, the old code could produce the following fatal error:
Uncaught Error: Cannot use object of type WP_Error as array in includes/class-wc-install.php:478
Fixes #19377
2018-03-13 11:02:55 -03:00
Rodrigo Primo
40c56d8ee3
Fix default product category check
...
This commit casts the 'default_product_cat' option to integer before passing it to `term_exists()`. If we don't do this, `get_option( 'default_product_cat' )` return a string that is passed to `term_exists( $woocommerce_default_category, 'product_cat' )`. `term_exists()` assumes that strings are term names or slugs and search only for this fields to check if the given term exist. So it will return false (unless the term name equals to the term ID which is unlikely) even though the term exists. To make it search for terms IDs to check if the given term exists, it is necessary to pass an integer.
2018-03-13 10:19:35 -03:00
Mike Jolley
a5a6d02f86
Fix null check introduced by phpcs changes
2018-03-13 11:57:51 +00:00
Rodrigo Primo
4229b3c5b2
Rename WC_Validation::is_GB_postcode() to WC_Validation::is_gb_postcode()
...
To follow WP coding standards
2018-03-13 08:49:40 -03:00
Rodrigo Primo
850bbc1c40
PHPCS fixes in includes/class-wc-validation.php
2018-03-13 08:49:34 -03:00
Rodrigo Primo
c2c1501acc
PHPCS fixes in includes/class-wc-webhook.php
2018-03-13 08:35:25 -03:00
Mike Jolley
291de9c1fb
Override supports for PayPal to see if credentials exist
2018-03-13 11:35:20 +00:00
Rodrigo Primo
52e067eeef
PHPCS fixes in includes/wc-conditional-functions.php
2018-03-13 08:33:48 -03:00
Mike Jolley
d910f11b49
Delete orphans after import
2018-03-13 11:14:24 +00:00
Mike Jolley
387ea23d39
phpcs
2018-03-13 11:11:11 +00:00
Mike Jolley
e4e581c2ef
Correctly handle default ordering on the search page
...
Fixes woocommerce_catalog_ordering function and closes #19362 .
2018-03-13 10:43:58 +00:00
Torre Lasley
64f85346c0
Add filter to allow plugins to override the default coupon apply order. ( #19339 )
...
* Fix for Issue #10523 - Variations ID lookup by SKU
I copied the code from the bulk() function to look up the Variation ID by the Variation SKU if the Variation ID is missing.
* Added new filter woocommerce_coupon_sort to allow plugins to override the default coupon apply order.
2018-03-13 10:26:22 +00:00
Mike Jolley
200f2371fd
Merge pull request #19342 from woocommerce/update/walkers-phpcs
...
Fixed walkers PHPCS violations
2018-03-13 10:17:27 +00:00
Mike Jolley
1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
...
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Mike Jolley
b875299b65
Merge pull request #19372 from woocommerce/fix/broke-shipping-zones
...
Fixed missing shipping zones on settings
2018-03-13 10:02:30 +00:00
Mike Jolley
923bb58f9d
Merge pull request #19369 from woocommerce/fix/19247
...
Properly check for old and new slug while updating attributes
2018-03-13 10:01:43 +00:00
Mike Jolley
48303278f6
Merge pull request #19373 from nishitlangaliya/issue-19323
...
missing single quote added
2018-03-13 09:59:55 +00:00
Mike Jolley
272c43f0d8
Just ENT_QUOTES is enough in https://github.com/woocommerce/woocommerce/pull/19349
2018-03-13 09:58:38 +00:00
Anders Skouboe
363fb54a2d
Decode single quotes in short description editor
2018-03-13 09:58:38 +00:00
nishitlangaliya
4b4fd3931e
missing single quote added
2018-03-13 11:15:43 +05:30
Gerhard Potgieter
01775a4443
Missing space
2018-03-13 07:34:47 +02:00
Claudio Sanches
988e5e576e
Fixed spacing
2018-03-12 17:40:13 -03:00
Claudio Sanches
03c98e7ae7
Fixed missing shipping zones on settings
...
Fixed empty wp_localize_script() when WC_Shipping_Zone->get_shipping_methods() loads as admin data instead of json.
2018-03-12 17:37:45 -03:00
Mike Jolley
a6b6685353
Merge pull request #19335 from woocommerce/fix/19244
...
Use gallery thumbnail size for variation image switcher.
2018-03-12 20:09:03 +00:00
Mike Jolley
e936cbdf9c
todo note for #19293
2018-03-12 19:53:14 +00:00
Mike Jolley
895df71b9e
Merge pull request #19310 from woocommerce/fix/19294
...
Only add schema for ratings when enabled.
2018-03-12 19:37:24 +00:00
Mike Jolley
906aa97aea
Merge branch 'master' into update/19061
2018-03-12 19:28:53 +00:00
Claudio Sanches
54a0e01b8a
Merge branch 'master' into patch-2
2018-03-12 16:28:00 -03:00
Mike Jolley
f0aa07fbf7
Case insensitive or handling
2018-03-12 19:18:13 +00:00
Mike Jolley
b0a4502e0f
Unslash quotes
2018-03-12 19:11:48 +00:00
Claudio Sanches
6130a222cc
Properly check for old and new slug while updating attributes
...
Closes #19247
2018-03-12 15:52:26 -03:00
Roy Lindauer
7016762dd5
Merge branch '17355-SplitAndFilter' of github.com:roylindauer/woocommerce into 17355-SplitAndFilter
2018-03-12 10:58:31 -07:00
Claudiu Lodromanean
0cc1b78341
Merge pull request #19296 from woocommerce/fix/hash-function
...
Hash may not exist
2018-03-12 10:58:31 -07:00
Roy Lindauer
6fba320040
Delete tax specific transients
2018-03-12 10:57:14 -07:00
Claudiu Lodromanean
4fbd01f003
Merge pull request #19288 from woocommerce/fix/19210
...
Introduce woocommerce_product_loop helper for loops
2018-03-12 10:50:25 -07:00
Mike Jolley
2b7be75b44
Merge pull request #19366 from woocommerce/fix/19347
...
Check if product has weight before calculate weigth total in cart
2018-03-12 16:55:22 +00:00
Claudio Sanches
768a21e788
Check if product has weight before calculate weigth total in cart
...
Closes #19347
2018-03-12 12:54:00 -03:00
Claudiu Lodromanean
1b3e0b39b1
Merge pull request #19363 from nishitlangaliya/issue-19323
...
Add Filter to woocommerce_output_product_categories
2018-03-12 08:50:22 -07:00
Claudio Sanches
82fec65fa0
Merge branch 'master' into update/walkers-phpcs
2018-03-12 12:31:57 -03:00
nishitlangaliya
8fa7a7695a
Add Filter to woocommerce_output_product_categories
2018-03-12 16:09:00 +05:30
Boro Sitnikovski
d01ab9b24f
Remove unnecessary string
2018-03-12 09:07:51 +01:00
Mike Jolley
8b06e0e432
Merge pull request #19341 from woocommerce/fix/phpcs-includes-gateways
...
PHPCS fixes for includes/gateways directory
2018-03-10 20:17:24 +00:00
Mike Jolley
d724f50b1c
Merge pull request #19343 from woocommerce/fix/php-includes-admin-importers
...
PHPCS fixes for includes/admin/importers directory
2018-03-10 11:57:46 +00:00
Claudio Sanches
18a44172a2
Fixed class-wc-widget-top-rated-products.php PHPCS violations
2018-03-09 17:50:02 -03:00
Claudio Sanches
b329d81279
Fixed class-wc-widget-recently-viewed.php PHPCS violations
2018-03-09 17:48:28 -03:00
Claudio Sanches
d3b81b17a8
Fixed class-wc-widget-recent-reviews.php PHPCS violations
2018-03-09 17:45:45 -03:00
Claudio Sanches
f9eed130ec
Fixed class-wc-widget-rating-filter.php PHPCS violations
2018-03-09 17:43:52 -03:00
Claudio Sanches
dfe3965fbb
Fixed class-wc-widget-products.php PHPCS violations
2018-03-09 17:41:07 -03:00
Claudio Sanches
85aba0221a
Fixed class-wc-widget-product-tag-cloud.php PHPCS violations
2018-03-09 17:37:23 -03:00
Claudio Sanches
74b5e3f8fa
Fixed class-wc-widget-product-search.php PHPCS violations
2018-03-09 17:29:16 -03:00
Claudio Sanches
cbb1271b2c
Fixed class-wc-widget-product-categories.php PHPCS violations
2018-03-09 17:28:08 -03:00
Rodrigo Primo
a0db877e24
phpcs fixes in includes/admin/importers/views/html-product-csv-import-form.php
2018-03-09 17:26:49 -03:00
Claudio Sanches
341dddc3ae
Fixed class-wc-widget-price-filter.php PHPCS violations
2018-03-09 17:26:40 -03:00
Rodrigo Primo
9b03fff8b8
phpcs fixes in includes/admin/importers/views/html-csv-import-steps.php
2018-03-09 17:26:40 -03:00
Rodrigo Primo
924a7a5cc3
phpcs fixes in includes/admin/importers/views/html-csv-import-progress.php
2018-03-09 17:26:26 -03:00
Rodrigo Primo
56b82815a9
phpcs fixes in includes/admin/importers/views/html-csv-import-mapping.php
2018-03-09 17:26:16 -03:00
Rodrigo Primo
703627365a
phpcs fixes in includes/admin/importers/views/html-csv-import-header.php
2018-03-09 17:26:05 -03:00
Rodrigo Primo
8c54884118
phpcs fixes in includes/admin/importers/views/html-csv-import-footer.php
2018-03-09 17:25:55 -03:00
Rodrigo Primo
b67e839dbb
phpcs fixes in includes/admin/importers/views/html-csv-import-done.php
2018-03-09 17:25:45 -03:00
Rodrigo Primo
5b425402c2
phpcs fixes in includes/admin/importers/mappings/wordpress.php
2018-03-09 17:25:36 -03:00
Rodrigo Primo
20650248ae
phpcs fixes in includes/admin/importers/mappings/mappings.php
2018-03-09 17:25:24 -03:00
Rodrigo Primo
c7d13ddab6
phpcs fixes in includes/admin/importers/mappings/generic.php
2018-03-09 17:25:15 -03:00
Rodrigo Primo
c18cfd779d
phpcs fixes in includes/admin/importers/mappings/default.php
2018-03-09 17:25:05 -03:00
Rodrigo Primo
1dc2511c2c
phpcs fixes in includes/admin/importers/class-wc-tax-rate-importer.php
2018-03-09 17:24:55 -03:00
Rodrigo Primo
73cb1663ec
phpcs fixes in includes/admin/importers/class-wc-product-csv-importer-controller.php
2018-03-09 17:24:44 -03:00
Claudio Sanches
c317dd01e8
Restored old walkers files to keep backwards compatibility
2018-03-09 17:14:02 -03:00
Claudio Sanches
e87c309b01
Fixed class-wc-widget-layered-nav.php PHPCS violations
2018-03-09 17:10:03 -03:00
Claudio Sanches
84b0446736
Fixed class-wc-widget-layered-nav-filters.php PHPCS violations
2018-03-09 16:56:15 -03:00
Claudio Sanches
5cf942c22b
Fixed class-wc-widget-cart.php PHPCS violations
2018-03-09 16:37:52 -03:00
Claudio Sanches
0643991a80
Updated file versions from walkers
2018-03-09 16:34:28 -03:00
Claudio Sanches
4daf256c32
Fixed path of walker classes
2018-03-09 16:31:00 -03:00
Claudio Sanches
c5ace252e5
Fixed class-wc-product-cat-list-walker.php PHPCS violations
2018-03-09 16:30:13 -03:00
Claudio Sanches
73c924e2be
Fixed class-wc-product-cat-dropdown-walker.php PHPCS violations
2018-03-09 16:10:45 -03:00
Rodrigo Primo
4e3ba1b73b
phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php
2018-03-09 15:45:47 -03:00
Rodrigo Primo
cf5ce33e29
phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php
2018-03-09 15:45:35 -03:00
Rodrigo Primo
128c4398a5
phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php
2018-03-09 15:45:22 -03:00
Rodrigo Primo
06af993595
phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php
2018-03-09 15:45:13 -03:00
Rodrigo Primo
93a50caa42
phpcs fixes in includes/gateways/paypal/class-wc-gateway-paypal.php
2018-03-09 15:45:00 -03:00
Rodrigo Primo
cdf8b483a1
phpcs fixes in includes/gateways/cod/class-wc-gateway-cod.php
2018-03-09 15:44:48 -03:00
Rodrigo Primo
4989e0ff2b
phpcs fixes in includes/gateways/class-wc-payment-gateway-echeck.php
2018-03-09 15:44:37 -03:00
Rodrigo Primo
609bc3bf71
phpcs fixes in includes/gateways/class-wc-payment-gateway-cc.php
2018-03-09 15:44:24 -03:00
Rodrigo Primo
3451dae895
phpcs fixes in includes/gateways/cheque/class-wc-gateway-cheque.php
2018-03-09 15:44:14 -03:00
Rodrigo Primo
701320ad32
phpcs fixes in includes/gateways/bacs/class-wc-gateway-bacs.php
2018-03-09 15:43:56 -03:00
Mike Jolley
64bcabf0af
Merge pull request #19295 from woocommerce/update/cart-functions-phpcs
...
Fixed includes/wc-cart-functions.php PHPCS violations
2018-03-09 16:31:50 +00:00
Mike Jolley
1fa36b5f15
Fix JS state/country inputs
2018-03-09 16:25:42 +00:00
Claudio Sanches
397f440233
Fixed class-wc-shortcode-checkout.php PHPCS violations
2018-03-09 13:25:29 -03:00
Claudio Sanches
505d906c66
Fixed class-wc-shortcode-order-tracking.php PHPCS violations
2018-03-09 13:15:53 -03:00
Claudio Sanches
af8c59de94
Fixed class-wc-shortcode-my-account.php PHPCS violations
2018-03-09 13:11:52 -03:00
Claudio Sanches
64d93eafc0
Fixed class-wc-shortcode-cart.php PHPCS violations
2018-03-09 12:59:01 -03:00
Claudio Sanches
92c4ea7a49
Fixed class-wc-shortcode-products.php PHPCS violations
2018-03-09 12:55:37 -03:00
Claudio Sanches
53cde6f317
Fixed conflicts in cart functions and fixed PHPCS violations on core funcitons
2018-03-09 12:46:20 -03:00
Mike Jolley
0d624862c2
Use gallery thumbnail size for variation image switcher.
2018-03-09 14:36:14 +00:00
Rodrigo Primo
df249d3b76
Rename class WC_Payment_Gateway_eCheck to WC_Payment_Gateway_ECheck
...
To match WP coding standards.
2018-03-09 09:57:59 -03:00
Rodrigo Primo
8678ed8685
Fix phpcs violations using phpcbf
2018-03-09 09:53:10 -03:00
Mike Jolley
00b4e1ed44
Merge pull request #19319 from woocommerce/fix/phpcs-includes-data-stores
...
PHPCS fixes for includes/data-stores directory
2018-03-09 12:36:31 +00:00
Rodrigo Primo
37ca7faf2e
Check if there is a customer ID set before calling get_user_by()
2018-03-09 09:34:26 -03:00
Gerhard Potgieter
e08b447c14
Add both order id and order number to export
2018-03-09 14:13:16 +02:00
Gerhard Potgieter
3910fbc270
Update method name
2018-03-09 11:00:57 +02:00
Gerhard Potgieter
1840d594ee
Add wildcard email support for coupons.
...
Co-authored-by: l4ll3x
2018-03-09 10:57:12 +02:00
Mike Jolley
9aab5a723e
Merge pull request #19299 from woocommerce/fix/phpcs-includes/emails
...
PHPCS fixes for includes/emails directory
2018-03-09 08:51:18 +00:00
Mike Jolley
900ae28b04
Merge pull request #19304 from woocommerce/update/core-functions-phpcs
...
Fixed includes/wc-core-functions.php PHPCS violations
2018-03-09 08:31:12 +00:00
Mike Jolley
01720924a4
Merge pull request #19325 from woocommerce/update/user-functions-phpcs
...
Fixed includes/wc-user-functions.php PHPCS violations
2018-03-09 08:26:30 +00:00
Gerhard Potgieter
2571eb7cae
Merge pull request #19292 from woocommerce/update/attribute-functions-phpcs
...
Fixed includes/wc-attribute-functions.php PHPCS violations
2018-03-09 09:26:48 +02:00
Gerhard Potgieter
9ea4f66584
Merge pull request #19326 from woocommerce/update/widget-functions-phpcs
...
Fixed includes/wc-widget-functions.php PHPCS violations
2018-03-09 09:18:32 +02:00
Gerhard Potgieter
8ce660e731
Add note about pining tracker to anonomize/delete on that side as well.
2018-03-09 07:14:21 +02:00
Claudiu Lodromanean
624b4c47ac
Merge pull request #19321 from woocommerce/update/stock-functions-phpcs
...
Fixed includes/wc-stock-functions.php PHPCS violations
2018-03-08 15:33:03 -08:00
Claudio Sanches
435caeadae
Fixed wc_attribute_label() logic
2018-03-08 18:41:39 -03:00
Claudio Sanches
a9c1c2b096
Merge branch 'master' into update/core-functions-phpcs
2018-03-08 18:35:41 -03:00
Claudio Sanches
d20f348d3c
Check if $product exists
2018-03-08 18:33:16 -03:00
Claudio Sanches
75fce4a5fa
Merge branch 'master' of github.com:woocommerce/woocommerce
2018-03-08 18:31:59 -03:00
Claudio Sanches
a597ba3b84
Use short ABSPATH check
2018-03-08 18:31:01 -03:00
Claudio Sanches
e3cd635eb0
Fixed includes/wc-widget-functions.php PHPCS violations
2018-03-08 18:29:54 -03:00
Claudiu Lodromanean
bdace4694b
Merge pull request #19324 from woocommerce/update/term-functions-phpcs
...
Fixed includes/wc-term-functions.php PHPCS violations
2018-03-08 13:29:03 -08:00
Claudio Sanches
9d42c323bf
Fixed includes/wc-user-functions.php PHPCS violations
2018-03-08 18:26:56 -03:00
Claudiu Lodromanean
1bb88d0a50
Merge pull request #19322 from woocommerce/update/template-hooks-phpcs
...
Fixed includes/wc-template-hooks.php PHPCS violations
2018-03-08 13:25:01 -08:00
Claudiu Lodromanean
cff8a0bacc
Merge pull request #19320 from woocommerce/update/rest-functions-phpcs
...
Fixed includes/wc-rest-functions.php PHPCS violations
2018-03-08 13:21:24 -08:00
Claudio Sanches
072115853c
Fixed includes/wc-term-functions.php PHPCS violations
2018-03-08 18:06:53 -03:00
Claudio Sanches
8bdb70bcca
Fixed includes/wc-template-hooks.php PHPCS violations
2018-03-08 16:48:20 -03:00
Claudio Sanches
cf9ce1add8
Fixed includes/wc-stock-functions.php PHPCS violations
2018-03-08 16:44:52 -03:00
Rodrigo Primo
860a575f94
Merge pull request #19318 from woocommerce/update/page-functions-phpcs
...
Fixed includes/wc-page-functions.php PHPCS violations
2018-03-08 16:40:47 -03:00
Rodrigo Primo
b0f475867a
Merge pull request #19317 from woocommerce/update/order-items-functions-phpcs
...
Fixed update/order-items-functions-phpcs PHPCS violations
2018-03-08 16:40:17 -03:00
Rodrigo Primo
71c7e85c2b
Merge pull request #19315 from woocommerce/update/order-functions-phpcs
...
Fixed includes/wc-order-functions.php PHPCS violations
2018-03-08 16:39:08 -03:00
Claudio Sanches
f26922ce1c
Fixed includes/wc-rest-functions.php PHPCS violations
2018-03-08 16:34:25 -03:00
Rodrigo Primo
818819d0ff
Rename class-wc-order-item-product-store.php to class-wc-order-item-product-data-store.php
...
To match WP coding standards
2018-03-08 16:30:33 -03:00
Rodrigo Primo
9765733597
phpcs fixes in includes/data-stores/class-wc-webhook-data-store.php
2018-03-08 16:29:22 -03:00
Rodrigo Primo
0ebf90b50e
phpcs fixes in includes/data-stores/class-wc-order-item-product-store.php
2018-03-08 16:29:11 -03:00
Rodrigo Primo
db26ae5fa0
phpcs fixes in includes/data-stores/class-wc-order-item-fee-data-store.php
2018-03-08 16:28:49 -03:00
Rodrigo Primo
67ab320a90
phpcs fixes in includes/data-stores/class-wc-order-item-data-store.php
2018-03-08 16:28:40 -03:00
Rodrigo Primo
1e32f09560
phpcs fixes in includes/data-stores/class-wc-order-item-coupon-data-store.php
2018-03-08 16:28:31 -03:00
Rodrigo Primo
231328e112
phpcs fixes in includes/data-stores/class-wc-order-data-store-cpt.php
2018-03-08 16:28:16 -03:00
Rodrigo Primo
6e2dfbf56c
phpcs fixes in includes/data-stores/class-wc-customer-download-log-data-store.php
2018-03-08 16:28:05 -03:00
Rodrigo Primo
74879abeb3
phpcs fixes in includes/data-stores/class-wc-customer-data-store.php
2018-03-08 16:27:54 -03:00
Rodrigo Primo
e3175a2e02
phpcs fixes in includes/data-stores/class-wc-customer-data-store-session.php
2018-03-08 16:27:42 -03:00
Rodrigo Primo
5eda520170
phpcs fixes in includes/data-stores/class-wc-coupon-data-store-cpt.php
2018-03-08 16:27:31 -03:00
Rodrigo Primo
2b84b7c38d
phpcs fixes in includes/data-stores/abstract-wc-order-item-type-data-store.php
2018-03-08 16:27:17 -03:00
Rodrigo Primo
03c202f1f5
phpcs fixes in includes/data-stores/abstract-wc-order-data-store-cpt.php
2018-03-08 16:27:03 -03:00
Claudio Sanches
da23b0399e
Short ABSPATH check
2018-03-08 16:26:01 -03:00
Claudio Sanches
84f3947eb8
Fixed includes/wc-page-functions.php PHPCS violations
2018-03-08 16:15:31 -03:00
Claudio Sanches
3e07abb219
Fixed update/order-items-functions-phpcs PHPCS violations
2018-03-08 16:13:51 -03:00
Claudio Sanches
73de7414e2
Fixed includes/wc-order-functions.php PHPCS violations
2018-03-08 15:47:54 -03:00
Rodrigo Primo
4ef9e8d725
PHPCS fixes includes/data-stores/class-wc-shipping-zone-data-store.php
2018-03-08 15:33:27 -03:00
Rodrigo Primo
26b5524df1
PHPCS fixes in includes/data-stores/class-wc-product-variation-data-store-cpt.php
2018-03-08 15:33:15 -03:00
Rodrigo Primo
71043bdc0e
PHPCS fixes in includes/data-stores/class-wc-product-variable-data-store-cpt.php
2018-03-08 15:33:02 -03:00
Rodrigo Primo
74f2810cf6
PHPCS fixes in includes/data-stores/class-wc-product-grouped-data-store-cpt.php
2018-03-08 15:32:48 -03:00
Rodrigo Primo
efccead01e
PHPCS fixes in includes/data-stores/class-wc-payment-token-data-store.php
2018-03-08 15:32:36 -03:00
Rodrigo Primo
0572ab5e7a
PHPCS fixes in includes/data-stores/class-wc-order-refund-data-store-cpt.php
2018-03-08 15:32:23 -03:00
Rodrigo Primo
ff1e23e660
PHPCS fixes in includes/data-stores/class-wc-order-item-tax-data-store.php
2018-03-08 15:31:55 -03:00
Rodrigo Primo
e7cfddad35
PHPCS fixes in includes/data-stores/class-wc-order-item-shipping-data-store.php
2018-03-08 15:31:43 -03:00
Rodrigo Primo
d945ece8fa
PHPCS fixes in includes/data-stores/class-wc-data-store-wp.php
2018-03-08 15:31:19 -03:00
Rodrigo Primo
fee648f696
Fix phpcs violations in includes/data-stores/class-wc-product-data-store-cpt.php
2018-03-08 14:30:48 -03:00
Rodrigo Primo
2b5103c849
Fix phpcs violations using phpcbf
2018-03-08 14:30:43 -03:00
Mike Jolley
c7e9c11dd7
Merge pull request #19313 from woocommerce/update/formatting-functions-phpcs
...
Fixed includes/wc-formatting-functions.php PHPCS violations
2018-03-08 16:00:23 +00:00
Claudio Sanches
b008e4b5cf
Fixed includes/wc-formatting-functions.php PHPCS violations
2018-03-08 12:22:58 -03:00
mweimerskirch
28df2ce3e0
Added a filter allowing to change the order status to the BACS gateway
...
The structure is the same as for the COD gateway (there, the filter is called "woocommerce_cod_process_payment_order_status").
2018-03-08 16:11:54 +01:00
Mike Jolley
43655f349e
Merge pull request #19305 from woocommerce/update/coupon-functions-phpcs
...
Fixed includes/wc-coupon-functions.php PHPCS violations
2018-03-08 15:06:07 +00:00
Mike Jolley
a7c745a520
Merge pull request #19301 from woocommerce/fix/phpcs-includes-shipping
...
PHPCS fixes for includes/shipping directory
2018-03-08 15:05:40 +00:00
Mike Jolley
e4afb25931
Merge pull request #19300 from woocommerce/fix/phpcs-includes-payment-tokens
...
PHPCS fixes for includes/payment-tokens directory
2018-03-08 15:03:39 +00:00
Mike Jolley
8a11a13b70
Merge pull request #19289 from woocommerce/fix/phpcs-includes-log-handler
...
PHPCS fixes for includes/log-handlers directory
2018-03-08 15:02:47 +00:00
Mike Jolley
d289be327b
Merge branch 'master'
2018-03-08 13:24:01 +00:00
Mike Jolley
0c10c28cd3
Merge pull request #18175 from woocommerce/update/17252
...
Rollback if payment complete or update status fails
2018-03-08 13:12:34 +00:00
Mike Jolley
04eadf13ac
Merge branch 'master' into update/18894
2018-03-08 13:08:40 +00:00
Mike Jolley
3265f594d8
Only add schema for ratings when enabled.
2018-03-08 13:03:58 +00:00
Gerhard Potgieter
f1107e94e2
Basic personal info lookup and dump
2018-03-08 14:49:02 +02:00
Mike Jolley
bd2188e87c
Merge pull request #19291 from Chunkford/patch-1
...
Moving cart rounding discount function to core functions
2018-03-08 12:27:03 +00:00
Claudio Sanches
731f2a238e
Fixed includes/wc-coupon-functions.php PHPCS violations
2018-03-07 18:40:48 -03:00
Claudio Sanches
2b0a87b80f
Fixed includes/wc-core-functions.php PHPCS violations
2018-03-07 18:37:32 -03:00
Rodrigo Primo
6938f2ecc9
Merge pull request #19290 from woocommerce/update/account-functions-phpcs
...
Fixed includes/wc-account-functions.php PHPCS violations
2018-03-07 15:56:52 -03:00
Rodrigo Primo
85436b1c56
Fix phpcs violations in includes/shipping/local-pickup/class-wc-shipping-local-pickup.php
2018-03-07 15:30:26 -03:00
Rodrigo Primo
9492d28bf5
Fix phpcs violations in includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php
2018-03-07 15:30:15 -03:00
Rodrigo Primo
9c23fd85d6
Fix phpcs violations in includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php
2018-03-07 15:30:00 -03:00
Rodrigo Primo
1088d45c80
Fix phpcs violations in includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php
2018-03-07 15:29:48 -03:00
Rodrigo Primo
90d27c65da
Fix phpcs violations in includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php
2018-03-07 15:29:36 -03:00
Rodrigo Primo
16510b0e73
Fix phpcs violations in includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php
2018-03-07 15:29:23 -03:00
Rodrigo Primo
3d1c6b1f7d
Fix phpcs violations in includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php
2018-03-07 15:29:10 -03:00
Rodrigo Primo
09c42033a0
Fix phpcs violations in includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
2018-03-07 15:28:57 -03:00
Rodrigo Primo
a4bdfddaa5
Fix phpcs violations in includes/shipping using phpcbf
2018-03-07 15:04:56 -03:00
Rodrigo Primo
a8e03a1c4a
Fix phpcs violations in includes/payment-tokens/class-wc-payment-token-echeck.php
2018-03-07 14:55:04 -03:00
Rodrigo Primo
799863ea71
Fix phpcs violations in includes/payment-tokens/class-wc-payment-token-cc.php
2018-03-07 14:54:49 -03:00
Rodrigo Primo
273ac18087
Rename class WC_Payment_Token_eCheck to WC_Payment_Token_ECheck
...
Doing this change to make the class name compatible with WP coding standards.
2018-03-07 14:50:21 -03:00
Rodrigo Primo
bcfd0b77d6
Fix PHPCS violations in includes/paymentt-tokens automatically using phpcbf
2018-03-07 14:37:08 -03:00
Rodrigo Primo
6f7d34d11e
Fix phpcs violations in includes/emails/class-wc-email.php
2018-03-07 14:27:56 -03:00
Rodrigo Primo
476c2de322
Fix phpcs violations in includes/emails/class-wc-email-new-order.php
2018-03-07 14:27:43 -03:00
Rodrigo Primo
3503336979
Fix phpcs violations in includes/emails/class-wc-email-failed-order.php
2018-03-07 14:27:32 -03:00
Rodrigo Primo
3fc20c31be
Fix phpcs violations in includes/emails/class-wc-email-customer-reset-password.php
2018-03-07 14:27:17 -03:00
Rodrigo Primo
432e237870
Fix phpcs violations in includes/emails/class-wc-email-customer-refunded-order.php
2018-03-07 14:27:04 -03:00
Rodrigo Primo
6190b52857
Fix phpcs violations in includes/emails/class-wc-email-customer-processing-order.php
2018-03-07 14:26:51 -03:00
Rodrigo Primo
7cd8fb5e8b
Fix phpcs violations in includes/emails/class-wc-email-customer-on-hold-order.php
2018-03-07 14:26:34 -03:00
Rodrigo Primo
036a88afae
Fix phpcs violations in includes/emails/class-wc-email-customer-note.php
2018-03-07 14:26:23 -03:00
Rodrigo Primo
8da42648d2
Fix phpcs violations in includes/emails/class-wc-email-customer-new-account.php
2018-03-07 14:26:11 -03:00
Rodrigo Primo
4d2c3a324b
Fix phpcs violations in includes/emails/class-wc-email-customer-invoice.php
2018-03-07 14:25:55 -03:00
Rodrigo Primo
925ee1a526
Fix PHPCS violations in includes/emails/class-wc-email-customer-completed-order.php
2018-03-07 14:25:37 -03:00
Rodrigo Primo
07fd8b8049
Fix PHPCS violations in includes/emails/class-wc-email-cancelled-order.php
2018-03-07 14:25:19 -03:00
Mike Jolley
b727f4ce64
Hash may not exist
2018-03-07 15:13:40 +00:00
Claudio Sanches
bea2ec7fba
Fixed includes/wc-cart-functions.php PHPCS violations
2018-03-07 12:12:27 -03:00
Rodrigo Primo
575e095190
Fix PHPCS violations in includes/emails automatically using phpcbf
2018-03-07 11:15:17 -03:00
Claudio Sanches
be12e37e34
Fixed includes/wc-attribute-functions.php PHPCS violations
2018-03-07 10:58:37 -03:00
Mike Jolley
765ed9ccf0
notes
2018-03-07 13:57:33 +00:00
Claudio Sanches
b17440623e
Fixed includes/wc-account-functions.php PHPCS violations
2018-03-07 10:55:46 -03:00
Rodrigo Primo
3a76769859
PHPCS fixes in includes/log-handlers/class-wc-log-handler-file.php
2018-03-07 10:49:45 -03:00
Rodrigo Primo
3d93e5d545
PHPCS fixes in includes/log-handlers/class-wc-log-handler-email.php
2018-03-07 10:49:32 -03:00
Rodrigo Primo
2d4afdc1d8
PHPCS fixes in includes/log-handlers/class-wc-log-handler-db.php
2018-03-07 10:49:17 -03:00
Mike Jolley
e8e5b40ba8
Just a basic class
2018-03-07 13:45:25 +00:00
Chunkford
5416c58f4e
Update class-wc-discounts.php
2018-03-07 13:36:43 +00:00
Rodrigo Primo
ea93fca4ff
Fix PHPCS violations in includes/log-handlers/ using phpcbf
2018-03-07 10:30:00 -03:00
Chunkford
732416ff34
Update wc-cart-functions.php
2018-03-07 13:21:23 +00:00
Chunkford
c411c43fdf
Update wc-core-functions.php
2018-03-07 13:14:59 +00:00
Mike Jolley
6d76cb71fd
Introduce woocommerce_product_loop helper
2018-03-07 12:54:00 +00:00
Mike Jolley
fdab6665c0
Merge pull request #19200 from woocommerce/fix/installed-plugin-not-activated-if-directory-not-matching-slug
...
Activate plugins during installation process even if directory doesn't match slug
2018-03-07 12:00:14 +00:00
Mike Jolley
7c2ed135d5
Merge pull request #19255 from woocommerce/update/16779
...
Invalidate cart items when important props are updated
2018-03-07 11:48:11 +00:00
Mike Jolley
07e17aafd5
typo
2018-03-07 11:47:42 +00:00
Mike Jolley
823332b5db
Merge pull request #19267 from xlplugins/master
...
PHP Fatal Error when invalid variation ID provided in WC_Product_Variable::get_available_variation()
2018-03-07 11:45:56 +00:00
Mike Jolley
b34e163bd5
No js for all the themes.
2018-03-07 11:44:41 +00:00
Amritansh_tact9
10e80c83d1
Applied array_filter() to the $avaiable_variations in WC_Product_Variable::get_available_variations() to ensure only array type values get returned.
...
Added docbock in favor of boolean false for WC_Product_Variable::get_available_variation()
2018-03-07 17:07:42 +05:30
Mike Jolley
4e262a81c1
Merge pull request #19261 from woocommerce/fix/phpcs-customizer
...
PHPCS fixes for customizer and export directories
2018-03-07 11:26:45 +00:00
Mike Jolley
7cb2e11c01
Merge branch 'pr/19257'
2018-03-07 11:18:53 +00:00
Mike Jolley
cc08eff0b0
Standards
2018-03-07 11:18:42 +00:00
Mike Jolley
2334ef1f65
Merge pull request #19268 from woocommerce/remove-unused-methods
...
Remove unused code from WC_CLI_REST_Command class
2018-03-07 11:16:51 +00:00
Mike Jolley
7255e4a371
Merge pull request #19281 from woocommerce/fix/19279-db-version-fatal-system-status
...
Dont use mysql functions directly on system status page
2018-03-07 11:10:36 +00:00
Mike Jolley
bb94d2467f
Merge pull request #19160 from woocommerce/fix/19112
...
Set is_tax to true when on unsupported theme taxonomy archive
2018-03-07 10:39:39 +00:00
Mike Jolley
69b09af0f0
Merge branch 'master' into fix/19175
2018-03-07 10:33:24 +00:00
Mike Jolley
696c1186f0
Update text and opt-in
2018-03-07 10:32:47 +00:00
Amritansh_tact9
7e05af1296
Replaced `WC_Product` with `WC_Product_Variation` for a more specific check in WC_Product_Variable::get_available_variation().
2018-03-07 15:59:21 +05:30
Rodrigo Primo
cc67dc9f74
Merge branch 'master' into remove-unused-methods
2018-03-07 07:27:43 -03:00
Rodrigo Primo
266b362d7e
Merge pull request #19271 from woocommerce/fix/includes-admin-plugin-updates-phpcs-violations
...
PHPCS fixes for includes/admin/plugin-updates directory
2018-03-07 07:17:54 -03:00
Rodrigo Primo
3d99fecc6b
Merge pull request #19269 from woocommerce/fix/includes-cli-phpcs-violations
...
PHPCS fixes for includes/cli directory
2018-03-07 07:17:35 -03:00
Mike Jolley
9f918cacc6
Merge pull request #19274 from woocommerce/update/api-phpcs
...
Fixed PHPCS violations on includes/api
2018-03-07 10:16:30 +00:00
Gerhard Potgieter
4b8a82093d
Make system status DB version display compatible with rest system status controller data. Closes #19279
2018-03-07 08:18:23 +02:00
Rodrigo Primo
af47f7b0b2
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-products.php
2018-03-06 15:08:46 -03:00
Rodrigo Primo
2ec74d2e15
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-orders.php
2018-03-06 15:08:30 -03:00
Rodrigo Primo
d2bfa5e6c5
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-coupons.php
2018-03-06 15:08:16 -03:00
Rodrigo Primo
f4c17e20c7
Fix PHPCS violations in includes/admin/list-tables/abstract-class-wc-admin-list-table.php
2018-03-06 15:08:00 -03:00
Claudio Sanches
f0d37ff4f5
Fixed PHPCS violations on REST API
2018-03-06 15:04:58 -03:00
Roy Lindauer
bb9afb29be
cached_counts would not be defined if cache is false
2018-03-06 07:32:12 -08:00
Rodrigo Primo
2169f1f567
Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-inline.php
2018-03-06 10:58:45 -03:00
Rodrigo Primo
f38e76421a
Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-modal.php
2018-03-06 10:58:03 -03:00
Rodrigo Primo
3932710136
Fix PHPCS violations in includes/admin/plugin-updates/class-wc-plugin-updates.php
2018-03-06 10:50:06 -03:00
Rodrigo Primo
ba563b8ec0
Fix PHPCS violations in includes/admin/plugin-updates/class-wc-plugins-screen-updates.php
2018-03-06 10:44:35 -03:00
Rodrigo Primo
85e01565e0
Fix PHPCS violations in includes/admin/plugin-updates/class-wc-updates-screen-updates.php
2018-03-06 10:34:18 -03:00
Rodrigo Primo
95b14b3674
Merge branch 'master' into fix/includes-cli-phpcs-violations
2018-03-06 10:32:56 -03:00
Rodrigo Primo
cd90c9bbc8
Fix PHPCS violations in includes/cli/class-wc-cli-update-command.php
2018-03-06 09:28:29 -03:00
Rodrigo Primo
8eb32d2c8c
Fix PHPCS violations in includes/cli/class-wc-cli-tool-command.php
2018-03-06 09:24:47 -03:00
Rodrigo Primo
66911be455
Fix PHPCS violations in includes/cli/class-wc-cli-runner.php
2018-03-06 09:20:58 -03:00
Rodrigo Primo
70a03e6dfa
Fix PHPCS violations in includes/cli/class-wc-cli-rest-command.php
2018-03-06 09:07:33 -03:00
Rodrigo Primo
4f18567e74
Remove unused code from WC_CLI_REST_Command class
...
This commit removes three unused methods and one unused property from the WC_CLI_REST_Command class that I found while fixing PHPCS violations in the includes/cli directory.
2018-03-06 08:58:32 -03:00
Rodrigo Primo
b6674b3a8f
Replace calls to json_decode() with wp_json_decode()
2018-03-06 08:18:31 -03:00
Amritansh_tact9
da5e31ce2c
Updated WC_Product_Variable::get_available_variation() to handle cases when variation ID provided is deleted/invalid. Throwing PHP fatal error on the next line where $variation->get_price()
2018-03-06 16:10:49 +05:30
Gerhard Potgieter
87c30fd228
PHPCS passing for class-wc-webhook-data-store-interface.php
2018-03-06 12:00:33 +02:00
Gerhard Potgieter
754df69994
PHPCS passing for class-wc-shipping-zone-data-store-interface.php
2018-03-06 11:59:23 +02:00
Gerhard Potgieter
4c6e954c8e
PHPCS passing for class-wc-product-variable-data-store-interface.php
2018-03-06 11:56:07 +02:00
Gerhard Potgieter
936df3e1bb
PHPCS passing for class-wc-product-data-store-interface.php
2018-03-06 11:53:40 +02:00
Gerhard Potgieter
e933b8cfd0
PHPCS passing for class-wc-payment-token-data-store-interface.php
2018-03-06 11:49:02 +02:00
Gerhard Potgieter
00193f5ee4
PHPCS passing for class-wc-order-refund-data-store-interface.php
2018-03-06 11:46:27 +02:00
Gerhard Potgieter
7cd7b18bb3
PHPCS passing for class-wc-order-item-type-data-store-interface.php
2018-03-06 11:45:29 +02:00
Gerhard Potgieter
1a2b44f2d3
PHPCS passing for class-wc-order-item-product-data-store-interface.php
2018-03-06 11:43:37 +02:00
Gerhard Potgieter
c354b93091
PHPCS passing for class-wc-order-item-data-store-interface.php
2018-03-06 11:42:03 +02:00
Gerhard Potgieter
e504022c72
PHPCS passing for class-wc-order-data-store-interface.php
2018-03-06 11:38:03 +02:00
Gerhard Potgieter
42c5e183cd
PHPCS passing for class-wc-object-data-store-interface.php
2018-03-06 11:34:16 +02:00
Gerhard Potgieter
96cbebb06b
PHPCS passing for class-wc-logger-interface.php
2018-03-06 10:23:28 +02:00
Gerhard Potgieter
1ba9f86001
PHPCS passing for class-wc-log-handler-interface.php
2018-03-06 10:21:27 +02:00
Gerhard Potgieter
8d2cb4850b
PHPCS passing for class-wc-importer-interface.php
2018-03-06 10:19:31 +02:00
Gerhard Potgieter
37eacc2585
PHPCS passing for class-wc-customer-download-log-data-store-interface.php
2018-03-06 10:18:33 +02:00
Gerhard Potgieter
2ed9993599
PHPCS passing for class-wc-customer-download-data-store-interface.php
2018-03-06 10:17:25 +02:00
Gerhard Potgieter
993d9cd232
PHPCS passing for class-wc-customer-data-store-interface.php
2018-03-06 10:14:45 +02:00
Gerhard Potgieter
17b6c78d00
PHPCS passing for class-wc-coupon-data-store-interface.php
2018-03-06 10:13:06 +02:00
Gerhard Potgieter
10d1c7f623
PHPCS passing for class-wc-abstract-order-data-store-interface.php
2018-03-06 10:08:42 +02:00
Gerhard Potgieter
85636f8fe7
PHPCS passing for abstract-wc-product-importer.php
2018-03-06 10:04:37 +02:00
Gerhard Potgieter
38892f3067
PHPCS passing for abstract-wc-csv-exporter.php
2018-03-06 07:55:15 +02:00
Gerhard Potgieter
1c191688f8
PHPCS passing for abstract-wc-batch-exporter.php
2018-03-06 07:52:03 +02:00
Gerhard Potgieter
b4ec1d372c
PHPCS passing for class-wc-customizer-controll-cropping.php
2018-03-06 07:31:20 +02:00
Mike Jolley
88c7c1333b
No back links, better link styling
2018-03-05 21:59:32 +00:00
Jon Brown
e6f2126b11
opps... not DRY
...
Photon check should probably should be abstracted, but this works for now
2018-03-05 11:08:40 -10:00
Claudio Sanches
e8017e985b
Fixed coding standards issues with PHPCBF
2018-03-05 17:53:06 -03:00
Jon Brown
87695bddb7
Checking class exists is insufficient allows for a fatal error when Jetpack class is defined without specific method
...
There are a half dozen stripped-down versions of JetPack's modules like JP Custom CSS, JP Widget visibility, etc... these all define a class called "Jetpack" but don't define all the methods.
2018-03-05 10:30:05 -10:00
Mike Jolley
1536d50824
Merge branch 'master' into update/18389-wizard-steps-improvements
2018-03-05 20:24:26 +00:00
Mike Jolley
46862deb17
wc_get_cart_item_data_hash function
2018-03-05 19:57:57 +00:00
Rodrigo Primo
44a5903ce6
Fix PHPCS violations in includes/cli using phpcbf
...
Fix all violations that phpcbf can fix automatically.
2018-03-05 16:46:54 -03:00
Sofyan Sitorus
7d04431571
Add contional check to compare cart item date_modified with product date_modified
2018-03-05 19:42:11 +00:00
Rodrigo Primo
45a404cc3b
Merge branch 'master' into includes-admin-phpcs-fixes
2018-03-05 16:40:39 -03:00
Rodrigo Primo
23b69eba53
Use phpcbf to fix coding standard violations in includes/admin
...
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley
58c87e3fcd
Merge pull request #19148 from woocommerce/tweak/post-processing-custom-coupons
...
Add filter to allow post processing on custom coupons
2018-03-05 19:18:04 +00:00
Mike Jolley
d5a6b4fec1
Merge pull request #19228 from Chunkford/patch-5
...
Add filter to a coupon's expiry date check
2018-03-05 19:07:01 +00:00
Mike Jolley
66ad22e3fa
Merge pull request #19128 from woocommerce/fix/19123-cli-term-ids
...
Use correct arg when making rest request in cli
2018-03-05 18:39:48 +00:00
Mike Jolley
73c85ec38d
Merge pull request #19173 from woocommerce/update/19154
...
Move jquery ui styles to assets
2018-03-05 18:35:46 +00:00
Mike Jolley
838a4bbea3
Remove unused variable
2018-03-05 18:35:07 +00:00
Claudiu Lodromanean
b6c1a9d2c1
Merge pull request #19220 from woocommerce/fix/19218
...
Only append tax label if taxes are enabled
2018-03-05 09:26:10 -08:00
Gerhard Potgieter
5075fb4964
PHPCS passing for abstract-wc-widget.php
2018-03-05 15:21:04 +02:00
Gerhard Potgieter
17f013b5b1
PHPCS passing for abstract-wc-shipping-method.php
2018-03-05 15:08:55 +02:00
Gerhard Potgieter
f56c6366c1
PHPCS passing for abstract-wc-settings-api.php
2018-03-05 15:01:21 +02:00
Gerhard Potgieter
d968621afb
PHPCS passing for abstract-wc-session.php
2018-03-05 15:00:52 +02:00
Gerhard Potgieter
ba1e7d1e99
PHPCS passing for abstract-wc-rest-shipping-zones-controller.php
2018-03-05 14:59:35 +02:00
Gerhard Potgieter
74ec8a4a14
PHPCS passing for abstract-wc-rest-posts-controller.php
2018-03-05 14:58:28 +02:00
Gerhard Potgieter
fb3afa672d
PHPCS passing for abstract-wc-rest-crud-controller.php
2018-03-05 14:55:17 +02:00
Gerhard Potgieter
5dcfeac7c1
PHPCS passing abstract-wc-rest-controller.php
2018-03-05 14:52:49 +02:00
Gerhard Potgieter
7f2362aab1
PHPCS passing abstract-wc-product.php
2018-03-05 14:46:34 +02:00
Gerhard Potgieter
cb87a0ee54
PHPCS passing for abstract-wc-payment-token.php
2018-03-05 13:54:54 +02:00
Gerhard Potgieter
940ab475d4
PHPCS passing for abstract-wc-payment-gateway.php
2018-03-05 13:48:54 +02:00
Gerhard Potgieter
440358a4f2
PHPCS passing for abstract-wc-order.php
2018-03-05 13:41:04 +02:00
Gerhard Potgieter
9fd043eaea
PHPCS passing for abstract-wc-object-query.php
2018-03-05 13:39:05 +02:00
Gerhard Potgieter
b3c998b0cd
PHPCS passing for abstract-wc-long-handler
2018-03-05 13:36:56 +02:00
Gerhard Potgieter
41958de93d
PHPCS passing for abstract-wc-integration.php
2018-03-05 13:34:38 +02:00
Gerhard Potgieter
42978bb031
PHPCS passing for abstract-wc-data.php
2018-03-05 13:29:18 +02:00
Mike Jolley
ab9389ec83
Merge pull request #19110 from woocommerce/feature/18056
...
Remember importer mappings
2018-03-03 17:22:48 +00:00
Mike Jolley
46ab27e4e8
Merge pull request #18820 from alexmacarthur/pii-removal
...
PII Issue Prevention - Remove user login from reset password link.
2018-03-03 17:19:55 +00:00
Chunkford
dce96daa84
Add filter to a coupon's expiry date check
...
I need the ability (and hopefully others now or in the future) to intercept the expiry date check for a coupon.
This pull request offers that ability.
2018-03-03 11:46:14 +00:00
Roy Lindauer
4147038e93
Add filter to control caching of layered nav counts. Split cached layered nav counts by taxonomy
2018-03-02 22:14:20 -08:00
Mike Jolley
85450f60ec
Merge branch 'master' into pr/18596
2018-03-02 19:31:37 +00:00
Mike Jolley
a869f896bf
Merge pull request #19166 from woocommerce/tweak/coupon-price-ui
...
Improve UI on Coupon amount in cart
2018-03-02 19:26:48 +00:00
Claudio Sanches
d822076115
Merge pull request #19201 from danielshields/patch-1
...
Fix the PayPal API URL
2018-03-02 16:02:48 -03:00
Mike Jolley
f0fc684704
Wording update
2018-03-02 16:44:26 +00:00
Mike Jolley
57cfa72d99
Only append tax label if taxes are enabled
2018-03-02 16:22:54 +00:00
Claudiu Lodromanean
079edc9ca6
Merge pull request #19204 from woocommerce/update/prodshortcod
...
New shortcode features for products block
2018-03-01 15:05:04 -08:00
Mike Jolley
bd91ea27ab
Update tracker to be opt-in and contain proper instructions
...
Fixes #19175
2018-03-01 19:31:30 +00:00
claudiulodro
383317c256
Layered nav support on unsupported theme archives
2018-03-01 11:28:00 -08:00
Claudiu Lodromanean
62a823dadf
Merge pull request #19171 from woocommerce/update/19145
...
Improve store notice customizer handling
2018-03-01 10:54:11 -08:00
claudiulodro
8cf36aa0d2
New shortcode features for products block
2018-03-01 10:05:22 -08:00
danielshields
e2da7fd277
Fix the PayPal API URL
...
Assuming they changed the section title, as the permalink is now "create" vs "creating"
2018-03-01 12:30:38 -05:00
Mike Jolley
418ee11839
This tracking notice is not used.
2018-03-01 17:01:55 +00:00
Paul Dechov
08e8ca7823
Activate plugins during installation process even if directory doesn't match slug
2018-03-01 11:50:54 -05:00
Mike Jolley
b4579bb502
Merge branch 'master' into update/16912
2018-03-01 16:38:04 +00:00
Mike Jolley
3d4b1e6d4c
Return new logger instance if class changes.
2018-03-01 16:24:53 +00:00
Mike Jolley
21d7dbc612
Merge branch 'master' into update/17252
2018-03-01 15:58:17 +00:00
Mike Jolley
f162fdb9d1
Merge branch 'master' into update/17795
2018-03-01 12:13:14 +00:00
nishitlangaliya
11f329b500
Fixes- Admin - removed product type column
2018-03-01 16:43:13 +05:30
Rodrigo Primo
3a480e5d80
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-03-01 08:02:08 -03:00
Caleb Burks
0568470bb8
Only show T&C's notice if there is a valid T&Cs page
2018-02-28 21:58:34 -05:00
Claudio Sanches
ffd7915d49
Make sure that option is an array
2018-02-28 16:46:52 -03:00
Claudio Sanches
de804dbe7b
Make sure that user saved mapping preferences are applied after all filters
2018-02-28 16:40:26 -03:00
Claudio Sanches
3ca1139cf9
Sanitize mapping before save
2018-02-28 16:36:35 -03:00
Claudio Sanches
8500000da7
Updated user option key
2018-02-28 16:04:20 -03:00
Mike Jolley
49c2f2b28e
Also during clean_term_cache
2018-02-28 18:35:58 +00:00
Mike Jolley
4bce7b0223
Use single cache for hierarchy
2018-02-28 18:24:03 +00:00
Rodrigo Primo
56cb3d2d4f
Check if download ID is valid before running query
2018-02-28 13:41:11 -03:00
Rodrigo Primo
0f79567d06
Merge branch 'master' into update/improve-get-downloads
2018-02-28 13:34:11 -03:00
Mike Jolley
b44183b4cb
Move jquery ui styles to assets
2018-02-28 13:02:41 +00:00
Boro Sitnikovski
1a1f62c952
Separate coupon custom logic into its own method
2018-02-28 13:42:52 +01:00
Boro Sitnikovski
b2e9fbb22d
Add filter to allow post processing on custom coupons
2018-02-28 13:41:18 +01:00
Mike Jolley
74f9e16ac3
Unbind on display
2018-02-28 11:58:04 +00:00
Boro Sitnikovski
328dad7659
Improve UI on Coupon amount in cart
2018-02-28 09:47:59 +01:00
Frédéric Demarle
ac199889f2
Fix fatal error in PHP < 5.5
2018-02-27 20:55:40 +01:00
Tiago Noronha
28b99e6970
Prevent full refresh when editing store notice and checkbox is off
2018-02-27 19:52:31 +00:00
claudiulodro
3e114799ca
Set is_tax true when on unsupported theme
2018-02-27 11:45:56 -08:00
Mike Jolley
391e5df40c
Support for OR operator
2018-02-27 19:45:45 +00:00
Claudiu Lodromanean
5346f63abc
Merge pull request #19159 from woocommerce/fix/19124
...
Use subtotal for discounts in admin/orders
2018-02-27 11:27:01 -08:00
Mike Jolley
c0c4348123
Use wp_search_stopwords filter
2018-02-27 19:22:15 +00:00
Mike Jolley
728e6dc58d
Merge pull request #19109 from woocommerce/fix/19083
...
wc_get_price_excluding_tax handling for woocommerce_adjust_non_base_location_prices
2018-02-27 19:20:20 +00:00
Mike Jolley
de5b60a7e6
Merge pull request #18817 from shivapoudel/feature/screen-option
...
Add support screen options for core list tables
2018-02-27 19:19:45 +00:00
Mike Jolley
f28a3dd35d
Merge pull request #19156 from woocommerce/fix/19120
...
Only trim strings in multiselect display options
2018-02-27 19:18:09 +00:00
Mike Jolley
c2c0aeefb8
Merge pull request #19002 from helgatheviking/exclude-products-from-coupon-validation
...
Exclude products from coupon validation
2018-02-27 19:14:22 +00:00
Mike Jolley
e4403b87ea
Merge pull request #19091 from woocommerce/update/18852
...
Include priceSpecification with valueAddedTaxIncluded
2018-02-27 19:13:10 +00:00
Mike Jolley
c389f4017e
Merge branch 'master' into update/19136
2018-02-27 19:11:52 +00:00
Mike Jolley
f3ab50d962
Merge pull request #19135 from Chouby/ajax_wp_die
...
Replace exit by calls to wp_die() in ajax responses
2018-02-27 19:09:41 +00:00
Mike Jolley
a6431c86d3
Use subtotals when applying discount logic to match cart.
2018-02-27 18:48:05 +00:00
Mike Jolley
cceec55714
Fix error in unit tests due to missing object check
2018-02-27 16:32:59 +00:00
claudiulodro
c8f418fd45
Only trim strings in multiselect display options
2018-02-27 07:50:33 -08:00
Mike Jolley
00ed016bf1
Implement selective_refresh for store notice
2018-02-27 12:46:36 +00:00
Mike Jolley
4b2642c757
phpcs
2018-02-26 19:18:38 +00:00
Mike Jolley
997b852a43
clean_term_cache callback to flush subcategory cache
2018-02-26 19:15:42 +00:00
Mike Jolley
e1beda3eb0
Use relative scheme for ajax endpoint
2018-02-26 18:51:46 +00:00
Mike Jolley
fc9fe996d8
Add profile link to order screen
2018-02-26 18:19:03 +00:00
Frédéric Demarle
b2f59b0da5
Replace exit by calls to wp_die() in ajax responses
2018-02-26 18:27:25 +01:00
Mike Jolley
0784e9ede6
Merge pull request #19126 from obiPlabon/master
...
Fixed #19125 - added spinner markup
2018-02-26 16:08:01 +00:00
Caleb Burks
828141c407
CLI ID argument should come after parent ID args
2018-02-25 14:59:23 -05:00
Caleb Burks
e365d1e01a
Use correct arg when making rest request in cli
2018-02-25 14:18:22 -05:00
obiPlabon
5b8721519b
Fixed #19125 - added spinner markup
2018-02-25 17:33:29 +06:00
Hardip Parmar
632da6779e
fixed spelling for calculate.
2018-02-24 16:53:27 +05:30
Kathy Darling
d494daf3cd
Merge branch 'master' of github.com:woocommerce/woocommerce into exclude-products-from-coupon-validation
2018-02-23 22:09:06 -06:00
Claudio Sanches
9db8a434b5
Merge pull request #18082 from WPprodigy/remember-importer-mappings
...
Remember importer mappings
2018-02-23 11:05:24 -03:00
Mike Jolley
39c6c9c72c
wc_get_price_excluding_tax handling for woocommerce_adjust_non_base_location_prices
2018-02-23 11:53:05 +00:00
Mike Jolley
dc4212cc15
Merge pull request #19098 from woocommerce/fix/19095-coupon-empty-cost
...
Ensure coupon amount is not empty
2018-02-23 10:58:29 +00:00
Mike Jolley
bb497f213d
Merge pull request #19104 from woocommerce/fix/19102-exlude-page-1-from-shop-page-content-check
...
Include page 1 on shop archive content check
2018-02-23 10:56:27 +00:00
Gerhard Potgieter
c8642f0da7
PHPCS fixes
2018-02-23 10:16:22 +02:00
Gerhard Potgieter
c13dee6fb3
Add page 1 to check when displaying shop page content.
2018-02-23 10:14:59 +02:00
Shiva Poudel
e4bcc1d285
Rename the prefix for per page options
2018-02-23 10:03:56 +05:45
Shiva Poudel
c2c97855be
Merge branch 'master' into feature/screen-option
2018-02-23 09:49:19 +05:45
Caleb Burks
9ba4ae7ad7
Remove unnecessary conditional
2018-02-22 14:39:37 -05:00
Caleb Burks
ae0f5fc76d
Ensure coupon amount is not empty
2018-02-22 14:33:06 -05:00
Claudio Sanches
69044423d2
[REST API] Do not allow updating parent ID from variations after created
...
Closes #18933
2018-02-22 16:22:42 -03:00
Claudio Sanches
b64b2a8680
Fixed coding standards
2018-02-22 16:00:21 -03:00
Mike Jolley
a1ea88ffb0
Fix comparison
2018-02-22 18:46:34 +00:00
Mike Jolley
93d36814e2
phpcs
2018-02-22 18:30:49 +00:00
Mike Jolley
a15c1611e0
Stopword support
2018-02-22 18:22:55 +00:00
Mike Jolley
964afd3882
Include priceSpecification with valueAddedTaxIncluded
...
Closes #18852
2018-02-22 16:34:54 +00:00
Mike Jolley
3353d80ecd
wc_get_loop_class; force columns to be a minimum of 1
2018-02-22 15:44:28 +00:00
Mike Jolley
f8edd02285
phpcbf auto fixes
2018-02-22 15:37:01 +00:00
Mike Jolley
9571a90c9f
phpcs
2018-02-22 14:30:13 +00:00
Mike Jolley
0f85e00af1
Product search functions should check for read access, not edit access
2018-02-22 14:11:27 +00:00
Alex MacArthur
870338ee5d
Make compliant w/ coding standards, sanitize ID.
2018-02-22 07:01:49 -06:00
Alex MacArthur
08982af65c
Set to empty string in case invalid ID is passed.
2018-02-22 06:58:18 -06:00
Alex MacArthur
c87c5627bb
Add fallback support for passing user_login in password reset link.
2018-02-22 06:58:18 -06:00
Alex MacArthur
e01385d2b4
Remove user login from reset password link.
2018-02-22 06:58:18 -06:00
Mike Jolley
f49491809f
Merge pull request #19078 from woocommerce/fix/17606
...
Display name input on My Account page
2018-02-22 12:29:58 +00:00
Mike Jolley
23eccd4b14
Merge pull request #18957 from alexmacarthur/pii-downloads
...
Hash customer email address in download URLs.
2018-02-22 12:27:33 +00:00
Mike Jolley
304922087d
Merge pull request #18984 from woocommerce/update/18981
...
Made get_on_sale_products respect the setting to hide outofstock products
2018-02-22 12:23:57 +00:00
Mike Jolley
64c6dd9e8b
Merge pull request #18779 from jeffikus/master
...
Updates Flexslider to version 2.7.0
2018-02-22 12:23:32 +00:00
Mike Jolley
b93f719b36
Merge pull request #18624 from Chunkford/patch-4
...
Display zero value when using shipping classes
2018-02-22 12:22:58 +00:00
Mike Jolley
58796bf981
Merge pull request #18554 from woocommerce/fix/18545
...
Flat rate: remove currency symbols
2018-02-22 12:21:49 +00:00
Mike Jolley
69816b9854
Merge pull request #18538 from woocommerce/update/16366
...
Optimise saving of orders
2018-02-22 12:20:14 +00:00
Mike Jolley
380ee9a13f
Merge pull request #18536 from woocommerce/update/17908
...
Refactor woocommerce_wp_select so it could be used for a multiselect
2018-02-22 12:19:11 +00:00
Shiva Poudel
f1e2c0cf83
Merge remote-tracking branch 'upstream/master' into feature/screen-option
2018-02-22 09:52:59 +05:45
Claudio Sanches
0f797714f1
Tweaks on account display name
2018-02-21 21:52:45 -03:00
Claudio Sanches
c0e29d0cbe
Merge branch 'fix/17606' into add/17606
2018-02-21 21:34:38 -03:00
Claudio Sanches
fe83dfdba7
Merge branch 'master' into fix/18545
2018-02-21 19:15:45 -03:00
Alex MacArthur
bc41fb0ba9
Use wc_get_order(), handle failure in case WC_Order not returned.
2018-02-21 15:39:43 -06:00
Claudio Sanches
7da77237a2
Fixed coding standards
2018-02-21 18:19:38 -03:00
Claudio Sanches
2f6795a2c8
Fixed undefined index after running setup wizard two times on fresh install
2018-02-21 18:15:50 -03:00
Mike Jolley
03a1906706
Post image is enough
2018-02-21 17:21:02 +00:00
Mike Jolley
8d1408fa04
Add WP classes to image gallery
2018-02-21 17:21:02 +00:00
Mike Jolley
e614c9ce22
Merge pull request #19069 from woocommerce/fix/19064
...
Numeric check needs to come after formatting the decimal
2018-02-21 15:08:30 +00:00
Mike Jolley
700246345b
Numeric check needs to come after formatting the decimal
2018-02-21 14:02:44 +00:00
Alex MacArthur
931bf27511
Fix spacing, use hash_equals to verify uid.
2018-02-21 07:45:07 -06:00
Alex MacArthur
3e0e75ebc3
Fix spacing issues.
2018-02-21 07:34:56 -06:00
Alex MacArthur
00e71b304d
Hash customer email address in download URLs.
2018-02-21 07:34:56 -06:00
Claudio Sanches
f60cd7cca4
[REST API] Fixed products shipping_class_id type
2018-02-20 17:16:26 -03:00
Claudio Sanches
ef393b8405
Merge pull request #18918 from woocommerce/fix/order-item-meta-key-maxlength
...
Set maxlength for order item meta key
2018-02-20 16:52:35 -03:00
Claudio Sanches
cf934cf45f
Merge pull request #18961 from woocommerce/fix/18958-remove-hardcoded-wp-content
...
Remove hardcoded /wp-content check for downloads.
2018-02-20 16:17:27 -03:00
Claudio Sanches
c80372ad5c
Merge pull request #19027 from woocommerce/update/persistent-cart-filter
...
Added woocommerce_persistent_cart_enabled filter
2018-02-20 13:57:27 -03:00
Claudio Sanches
44c1de45eb
Merge pull request #19043 from woocommerce/fix/19032
...
Prevent shortcode [product_page] redirecting to the actual product's page after add to cart
2018-02-20 13:20:08 -03:00
Claudio Sanches
99a72a6929
Merge pull request #19044 from woocommerce/fix/19030
...
Make terms logic match for breadcrumb and widget
2018-02-20 13:18:11 -03:00
Mike Jolley
7a68cb9c12
Update regex
2018-02-20 16:04:42 +00:00
Mike Jolley
0cda2dba82
Convert more dollar entries for plain text emails
2018-02-20 16:04:42 +00:00
Mike Jolley
472e64270a
Check parent status when seeing if variation is purchasable.
2018-02-20 12:34:33 +00:00
Mike Jolley
5330d0b860
Make terms logic match for breadcrumb and widget
2018-02-20 11:49:06 +00:00
Mike Jolley
2a7b09cb52
Merge pull request #19037 from woocommerce/fix/19036-order-date
...
Show full date for future orders
2018-02-20 11:21:31 +00:00
Mike Jolley
c66d676680
Simplify date check
2018-02-20 11:21:00 +00:00
Mike Jolley
86132346df
remove action when rendering shortcode
2018-02-20 11:15:09 +00:00
Mike Jolley
adde0d6d29
Merge pull request #19042 from woocommerce/fix/shipping-zones-wizard-notice
...
Prevent shipping zones PHP notice during setup wizard
2018-02-20 10:40:54 +00:00
Caleb Burks
3469d47947
Prevent shipping zones PHP notice in wizard
2018-02-20 02:33:06 -05:00
Caleb Burks
634bee567e
Ensure item totals are not empty
2018-02-20 02:19:12 -05:00
Caleb Burks
3d7f674c54
Show full date for future orders
2018-02-19 21:25:03 -05:00
claudiulodro
af5cb5df93
Resolve merge conflicts
2018-02-19 10:45:06 -08:00
Mike Jolley
0df57524a7
Added woocommerce_persistent_cart_enabled filter
2018-02-19 16:36:26 +00:00
Mike Jolley
6f855c781f
Fix response/ajax handling for #18080
2018-02-19 14:56:30 +00:00
Mike Jolley
5fce9152bd
Merge pull request #18080 from WPprodigy/fix-stock-update-order-notes
...
Enhancements for stock updates
2018-02-19 14:51:05 +00:00
Mike Jolley
7c61f05bb1
Merge pull request #18620 from woocommerce/fix/get-downloads-order-by
...
Fix: properly set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
2018-02-19 14:44:21 +00:00
Mike Jolley
0996264e7a
Merge pull request #18609 from woocommerce/fix/18608-add-missing-action-settings-save
...
Add missing action for settings pages that override save method
2018-02-19 14:43:58 +00:00
Mike Jolley
b6ae08a72a
Duplicate action
2018-02-19 14:43:28 +00:00
Mike Jolley
d5a1463e3e
Merge pull request #18595 from woocommerce/update/add-ext-object-cache-to-system-status
...
Display whether or not external object cache is enabled
2018-02-19 14:40:14 +00:00
Mike Jolley
5feed3e0cc
Merge branch 'master' into update/add-ext-object-cache-to-system-status
2018-02-19 14:39:31 +00:00
Mike Jolley
d26c20c0a9
Merge pull request #18831 from woocommerce/fix/list-of-wc-tables
...
Remove all WC tables when uninstalling the plugin
2018-02-19 14:31:19 +00:00
Claudio Sanches
2aa74a6f66
Merge pull request #19020 from woocommerce/fix/19015
...
Adds back get_item so you can get a single Webhook
2018-02-19 10:45:33 -03:00
Mike Jolley
f1a69688fa
Merge pull request #18982 from woocommerce/tweak/get-image-filter
...
Pass image to get_image_filter as well
2018-02-19 13:15:55 +00:00
Mike Jolley
594b3773cd
Merge pull request #19025 from woocommerce/fix/18999
...
Fix double slash and logout link nonce
2018-02-19 13:15:14 +00:00
Mike Jolley
17c28fc8f9
Prevent double slash
2018-02-19 13:14:07 +00:00
Mike Jolley
b3d051565f
code standards
2018-02-19 13:10:36 +00:00
Mike Jolley
a7bff8f1aa
Merge pull request #19024 from woocommerce/pr/19003
...
Fix check for external resources
2018-02-19 13:07:53 +00:00
Mike Jolley
48e1894258
code standards
2018-02-19 13:06:04 +00:00
Mike Jolley
e9bc9d3b1f
Indentation
2018-02-19 12:41:55 +00:00
Mike Jolley
68238938e4
Adds back get_item so you can get a single Webhook
...
Closes #19015
2018-02-19 11:56:57 +00:00
Paul Dechov
d35f76136e
Only show the Activate step if Jetpack isn't connected or WCS features were chosen
2018-02-16 23:23:41 -05:00
Paul Dechov
b8c57576e6
Update graphic to WCS banner design
2018-02-16 18:07:04 -05:00
Kathy Darling
caf03064ac
add getter for class' object property
2018-02-16 15:52:04 -06:00
Kathy Darling
8dc3d689c6
Follow up to #18971 . Pass cart/order items through a filter.
2018-02-16 15:51:35 -06:00
Patrick Mladensich
1b290eae6d
Fix check for external resource
2018-02-16 22:51:06 +01:00
Remi Corson
ad240278bd
Do not display H2 note if no note
...
This will make the note title not appear if no note is defined. However, some CSS styling is needed as padding was originally added via .wc-order-preview-address wichi was containing the note section.
2018-02-16 15:24:31 +01:00
Jonathan MacGregor
c82297ca10
Update wc-account-functions.php
2018-02-16 13:19:50 +00:00
Jonathan MacGregor
29d53969c4
Logout from My Account Menu now appends the nonce
2018-02-16 13:10:17 +00:00
Remi Corson
94802c7a8b
Fix #18995
...
Fixes #18995 by moving the note section outside the addresses container and unlink it from the shipping method conditional statement.
2018-02-16 12:12:15 +01:00
Paul Dechov
5d71521d6a
Omit 'Reasons you\'ll love Jetpack' if Jetpack is already connected
2018-02-15 17:49:18 -05:00
Paul Dechov
16649fa7d9
Show 'Activate' step even when Jetpack is connected, to accept WCS terms of service
2018-02-15 17:48:37 -05:00
Mike Jolley
49a74b95db
Made get_on_sale_products respect the setting to hide outofstock products
...
Closes #18981
2018-02-15 16:35:29 +00:00
Boro Sitnikovski
927576edb2
Pass image to get_image_filter as well
2018-02-15 16:22:30 +01:00
Mike Jolley
65278efd44
Allow modal to be wider and fix button wrapping
2018-02-15 12:46:47 +00:00
Mike Jolley
654e7db840
Use empty check for search
2018-02-14 18:09:47 +00:00
Mike Jolley
d841cf3f27
Conditionally add messages in customiser
2018-02-14 17:25:52 +00:00
Mike Jolley
7ae0f6c274
Hide status button when disabled via filter
2018-02-14 17:00:43 +00:00
Mike Jolley
ebc8ff0737
Fallback to closest match if size changes.
2018-02-14 13:43:52 +00:00
Mike Jolley
2f0e88f7ba
Improved photon handling
2018-02-14 13:20:34 +00:00
Mike Jolley
66e65cf7bf
Disable image regen if photon is being used.
2018-02-14 11:38:18 +00:00
Gerhard Potgieter
f3974efb6b
Fetch size dynamically
2018-02-14 11:35:16 +02:00
Gerhard Potgieter
0dce1a485c
Remove hardcoded check, use dynamic values based on WP_CONTENT_DIR and ABSPATH
2018-02-14 11:29:44 +02:00
Gerhard Potgieter
1961076bf7
Update tools message for image reneneration.
2018-02-14 10:38:59 +02:00
Mike Jolley
0672afdc9f
Log cancel event
2018-02-13 19:22:01 +00:00
Mike Jolley
1631c8a09f
Cancel button text
2018-02-13 19:21:52 +00:00
Mike Jolley
280ca3757e
wc_get_gallery_image_html checks
2018-02-13 19:18:13 +00:00
Mike Jolley
67bef92657
static function
2018-02-13 17:57:45 +00:00
Mike Jolley
154898dec2
make customizer preview temporary
2018-02-13 14:33:45 +00:00
Mike Jolley
52853e9c23
typo
2018-02-13 13:59:54 +00:00
Mike Jolley
755f535f69
Return, to avoid multiple resizes
2018-02-13 13:58:27 +00:00
Mike Jolley
9f9e4027e9
Thumbnail mapping
2018-02-13 12:51:55 +00:00
Mike Jolley
e39b6950a8
Notice when regeneration is happening
2018-02-13 12:02:24 +00:00
Mike Jolley
3c7262112e
Merge branch 'fix/18842-external-images-fix' into update/3.3-image-handling
2018-02-13 11:18:43 +00:00
Mike Jolley
c29da59edf
Merge branch 'fix/18842-external-images-fix' into update/3.3-image-handling
2018-02-13 11:17:43 +00:00
Mike Jolley
2b36b5f49f
Main image should be larger.
2018-02-13 11:16:42 +00:00
Mike Jolley
ebb246d9d3
wc_get_gallery_image_html helper function
2018-02-13 11:16:42 +00:00
Mike Jolley
9499b63e01
Register gallery_thumbnail size
2018-02-13 11:16:42 +00:00
Gerhard Potgieter
794272a732
Do not auto generate images on setting changes or theme switches. Introduce a regenerate button under tools. Only resize images on the fly when using the customizer to preview changes.
2018-02-13 09:55:50 +02:00
Shiva Poudel
a283da9a53
Since already initialized on load no need of this
2018-02-13 08:31:11 +05:45
Caleb Burks
ea9f799ec6
Remove strlen() condition
...
Did some tests, substr() is actually faster than the strlen() check.
2018-02-12 17:39:33 -05:00
Claudiu Lodromanean
c9bbbf7c5a
Merge pull request #18944 from suifengtec/master
...
fix: show Maximum size with the size unit on the importer screen
2018-02-12 11:26:55 -08:00
Claudiu Lodromanean
86790b43da
Merge pull request #18941 from woocommerce/update/18929
...
Allow changing the default product category
2018-02-12 10:07:09 -08:00
Claudiu Lodromanean
b5e0450ef3
Merge pull request #18939 from woocommerce/fix/18923
...
Set status after order is created/updated.
2018-02-12 10:02:50 -08:00
Claudiu Lodromanean
c98e0ac43b
Merge pull request #18934 from woocommerce/update/18932
...
Remove isle of man state
2018-02-12 09:18:13 -08:00
Claudiu Lodromanean
334b543c77
Merge pull request #18908 from woocommerce/fix/18864
...
Set woocommerce_hide_invisible_variations to true.
2018-02-12 08:50:54 -08:00
Claudiu Lodromanean
3fd4c365b1
Merge pull request #18905 from woocommerce/fix/18891
...
Use verbose page rules when shop is in the URL, including shop base with category
2018-02-12 08:46:41 -08:00
suifengtec
6aab570544
fix: show Maximum size with the size unit on the importer screen
2018-02-12 23:18:24 +08:00
Mike Jolley
2c45696498
Add a 'make default' button to change the default product category
2018-02-12 13:17:47 +00:00
Mike Jolley
e903027c2f
Merge pull request #18895 from woocommerce/fix/remove-attribute-type-column
...
Remove "Type" column on attributes table by default.
2018-02-12 12:14:54 +00:00
Mike Jolley
d5d4f4199e
Merge pull request #18917 from shivapoudel/fix-status
...
Fix - Help tip for webhook status
2018-02-12 12:09:03 +00:00
Mike Jolley
bdd4898946
Set status after order is created/updated.
2018-02-12 11:56:48 +00:00
Tareq Hasan
b5ea65b604
Shipping zone documentation help link was printing wrong
2018-02-12 17:17:23 +06:00
Mike Jolley
da32586251
Remove isle of man state
...
Fixes #18932
2018-02-12 10:34:40 +00:00
Caleb Burks
19e3126e54
Add additional wizard next steps
2018-02-10 18:51:25 -05:00
Caleb Burks
0b228c4fda
Add ability to go back to prev steps during setup
2018-02-10 18:28:07 -05:00
Shiva Poudel
3ea8629b6e
Check admin referer instead of nonce, just like webhooks
...
CC @claudiosanches
2018-02-10 13:03:22 +05:45
Shiva Poudel
5e7b0e2925
Tweaks and PHPCS fixes
2018-02-10 12:23:33 +05:45
Shiva Poudel
939d8043ec
PHPCS fix
2018-02-10 10:41:06 +05:45
Shiva Poudel
25d77e3ddc
Use of title for description so screen option will not show for it
2018-02-10 10:17:02 +05:45
Shiva Poudel
14da53001f
Tweak - No items found text
2018-02-10 10:14:06 +05:45
Shiva Poudel
c35fb04455
Seperate the {create|edit}-key isset check, as it won't work
2018-02-10 10:07:06 +05:45
Caleb Burks
4f447ea48d
Sanitize order item meta key w/ max characters
2018-02-09 22:52:36 -05:00
Caleb Burks
c278bffa78
Set maxlength for order item meta key
2018-02-09 22:33:35 -05:00
Caleb Burks
221b4672d9
Use wc_has_custom_attribute_types()
2018-02-09 17:31:56 -05:00
Shiva Poudel
71495cef69
Fix - Help tip for webhook status
2018-02-10 02:33:00 +05:45
Mike Jolley
80c07d530d
Set woocommerce_hide_invisible_variations to true.
2018-02-09 16:44:41 +00:00
Mike Jolley
6af5bc3d19
Merge pull request #18863 from woocommerce/fix/gallery-array-to-string-conversion
...
Fix array to string conversion error
2018-02-09 16:42:11 +00:00
Mike Jolley
129134a30f
Use verbose page rules when shop is in the URL, including shop base with category
2018-02-09 15:25:33 +00:00
Mike Jolley
7339511495
Height must be int
2018-02-09 14:12:19 +00:00
Mike Jolley
9d898bbf6e
Return the resized image after regen, or if regen is not needed
2018-02-09 14:06:00 +00:00
Mike Jolley
961cd6dfa6
Copy sizes to legacy sizes
2018-02-09 14:04:43 +00:00
Caleb Burks
7eae986643
Remove “Type” column on attributes table
2018-02-08 21:36:27 -05:00
Claudiu Lodromanean
170cf2d361
Merge pull request #18888 from woocommerce/fix/18859
...
Don't prepend cats for regular shortcodes
2018-02-08 10:41:43 -08:00
Claudiu Lodromanean
59b61ab744
Merge pull request #18408 from macbookandrew/downloadable_items_filter
...
add file array key similar to other functions
2018-02-08 10:38:12 -08:00
Mike Jolley
830a2cb5a5
Don't prepend cats for regular shortcodes
2018-02-08 17:37:56 +00:00
Claudiu Lodromanean
2b96d68047
Merge pull request #18883 from woocommerce/fix/18881
...
If using get_catalog_ordering_args. remove the args when finsihed
2018-02-08 09:31:11 -08:00
Claudiu Lodromanean
becd77ae93
Merge pull request #18880 from woocommerce/fix/18856
...
Added ability to search for all post statuses
2018-02-08 09:27:01 -08:00
Claudiu Lodromanean
b47e264cb3
Merge pull request #18879 from woocommerce/update/category-help-text-polish
...
Add help text for the default category 2
2018-02-08 09:16:19 -08:00
Caleb Burks
210c22e57c
Update docs
2018-02-08 11:58:20 -05:00
Caleb Burks
454c226778
Use wc_help_tip()
2018-02-08 11:52:32 -05:00
Mike Jolley
b379e213c8
Allow search_products to find parent ids
2018-02-08 16:36:24 +00:00
Mike Jolley
f56e40363b
If using get_catalog_ordering_args. remove the args when finsihed
2018-02-08 13:59:03 +00:00
Gerhard Potgieter
2280cabb94
Change on-the-fly image regenration to use same process as backrgound resizing, ensures CDN images are updated and show.
2018-02-08 15:36:50 +02:00
Mike Jolley
7dd9c7fb0e
Added ability to search for all post statuses
2018-02-08 12:53:39 +00:00
Mike Jolley
b95812d563
Handle quick edit
2018-02-08 12:35:57 +00:00
Rodrigo Primo
3290094ca0
Merge branch 'master' into update/avoid-extra-unneeded-query
2018-02-08 10:00:32 -02:00
Rodrigo Primo
b4f6dc45e6
Update option instead of adding it
...
Doing this since on commit 57ae11c4c6
, we stopped deleting the option and thus adding it won't do anything as it will be already present.
2018-02-08 09:54:39 -02:00
Gerhard Potgieter
780905cd0e
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-02-08 10:11:27 +02:00
Caleb Burks
bee4a57403
Fix array to string conversion error
2018-02-07 20:30:37 -05:00
Caleb Burks
4ca94e8f21
Add tooltip for default category
2018-02-07 19:24:43 -05:00
Caleb Burks
c8a888acba
Add note underneath product categories in admin
2018-02-07 18:12:31 -05:00
Caleb Burks
c21cc2e8fe
Replace “Cheatin’ uh?” with friendlier messages
2018-02-07 17:01:12 -05:00
Claudiu Lodromanean
d6262e0b0e
Merge pull request #18849 from woocommerce/fix/wp-option-updates-spike
...
Fix spike in update queries on the wp_options table
2018-02-07 13:09:55 -08:00
Claudio Sanches
94318762cc
Merge pull request #18855 from woocommerce/fix/at
...
Only do unsupported template rendering in the loop
2018-02-07 18:18:46 -02:00
Mike Jolley
35265cdf08
Prevent warning when height is empty
2018-02-07 12:14:07 -08:00
claudiulodro
e67634c45f
Only do unsupported template rendering in the loop
2018-02-07 11:56:41 -08:00
Rodrigo Primo
57ae11c4c6
Avoid unneeded query to wp_options on every request
...
This commit changes the value of the option 'woocommerce_queue_flush_rewrite_rules' to 'no' instead of deleting it when rewrite rules are flushed. This way this option is autoloaded and the `get_option()` call below doesn't trigger a select query to the database on every request.
61f037060b/includes/class-wc-post-types.php (L514)
2018-02-07 10:59:06 -02:00
Rodrigo Primo
61f037060b
Use 'yes' instead of 'true' as the value of the option woocommerce_queue_flush_rewrite_rules
...
WC seems to use 'yes' and 'no' instead of 'true' and 'false' as the values of boolean options, so this commit changes the value of the option woocommerce_queue_flush_rewrite_rules to follow this pattern. Also, the string 'false' can induce bugs as it is truthy.
2018-02-07 10:54:01 -02:00
Gerhard Potgieter
8ae28cfe63
Add extra checks before processing on-the-fly regenration images to catch remote files.
2018-02-07 14:52:23 +02:00
Rodrigo Primo
f2e7eb98df
Fix spike in update queries on the wp_options table
...
Since WC 3.3.1, the following query is executed on every page load:
```
UPDATE `wp_options` SET `option_value` = '1' WHERE `option_name` = 'current_theme_supports_woocommerce'
```
This is happening because of the following call to `update_option()`:
```
update_option( 'current_theme_supports_woocommerce', current_theme_supports( 'woocommerce' ) ? 1 : 0 )
```
(02cac7d637/includes/class-wc-post-types.php (L268)
)
`update_option()` shouldn't update the option when the value hasn't changed, but in this case it is updating on every request because, when the current theme supports WC, `1` (integer) is passed to `update_option()` and this function internally compares it against the old value stored in the database which is `"1"` (string). A strict comparison (`===`) is used (f3eaddd2dc/wp-includes/option.php (L343)
), so the function assumes that the value changed and proceeds with the update.
This PR fixes this problem by using the values `"yes"` and `"no"` instead of `1` and `0`.
2018-02-07 10:20:33 -02:00
Gerhard Potgieter
df0970dd07
Add search label when searching via product crud helper.
2018-02-07 11:02:50 +02:00
Gerhard Potgieter
f4acfc9999
Unset the s param when doing a datastore search as it will cause a double search.
2018-02-07 10:44:49 +02:00
Claudiu Lodromanean
bc5faec5c0
Merge pull request #18829 from woocommerce/fix/18819
...
Fix partial refund handling in taxes by date report
2018-02-06 06:30:05 -08:00
Rodrigo Primo
5be9d1b118
Remove all WC tables when uninstalling the plugin
...
There were two outdated lists of WC tables. One used to drop tables when WC is uninstalled and another one to drop tables when a site is deleted in a multi site environment. This commit creates a new unified list of WC tables, adds the missing tables to this list and introduces a unit test that will fail if the list gets outdated.
2018-02-06 11:19:40 -02:00
Mike Jolley
8fb8039b23
Merge pull request #18818 from woocommerce/fix/prevent-unsupported-downgrade
...
Don't call WC_Install::install() on downgrades
2018-02-06 12:46:42 +00:00
Mike Jolley
a0252af0af
Merge pull request #18511 from woocommerce/update/make-image-gallary-save-crud
...
Image Gallery missing CRUD calls
2018-02-06 11:38:38 +00:00
Mike Jolley
bd72bf89f2
Fix partial refund handling in taxes by date report
2018-02-06 11:31:40 +00:00
Mike Jolley
815e0d14fd
Merge pull request #18816 from woocommerce/fix/18815
...
Use add query arg in customizer links
2018-02-06 11:10:53 +00:00
Mike Jolley
9ff0a9717f
Adjust query arg
2018-02-06 11:10:28 +00:00
Mike Jolley
efc698ece1
Merge pull request #18823 from nishitlangaliya/Issue-18785
...
rephrasing create a first product to as per suggestion ref #18785
2018-02-06 11:05:26 +00:00
Mike Jolley
0282b9a30b
Merge pull request #18825 from hoangkianh/patch-1
...
Catalog rows: cast min, max, and value to int
2018-02-06 11:03:00 +00:00
Anh Hoang Nguyen
0ec546427e
Catalog rows: cast min, max, and value to int
2018-02-06 14:50:23 +07:00
nishitlangaliya
70ea46d573
rephrasing create a first product to as per suggestion ref #18785
2018-02-06 06:35:15 +05:30
claudiulodro
0c98f5d874
Remove extra ?>
2018-02-05 13:10:50 -08:00
Shiva Poudel
0f8f33b645
Renamed per page option
2018-02-06 01:54:12 +05:45
Shiva Poudel
cbe190172b
On reload hidden columns should not be rendered
2018-02-06 01:40:45 +05:45
Shiva Poudel
5c991a6929
Load list tables before columns are rendered in screen option
2018-02-06 01:35:16 +05:45
Shiva Poudel
018da951ce
Save and use the per page screen option value for API Keys
2018-02-06 01:30:12 +05:45
Shiva Poudel
ccc10083fe
Save and use the per page screen option value in webhook
2018-02-06 01:22:09 +05:45
Shiva Poudel
8a35c8fc23
Fix - Incorrect action as it was filter hook
2018-02-06 01:15:47 +05:45
Shiva Poudel
750e0e78e4
PHPCS fixes
2018-02-06 01:13:26 +05:45
Shiva Poudel
29ce5bf3c3
Action to load stuffs into memory for use
2018-02-06 01:11:38 +05:45
Mike Jolley
0ad37a6426
Use add query arg in customizer links
2018-02-05 17:10:39 +00:00
Rodrigo Primo
13f703fd32
Don't call WC_Install::install() on downgrades
...
WC doesn't support downgrades but the if condition that decides whether or not to call WC_Install::install() and apply database schema changes was checking if the WC version stored in the database is equal to the WC version in the code. This commit changes the check performed inside the if condition to verify if the WC version stored in the database is smaller than the version in the code. This way `dbDelta()` won't be called automatically by WC and revert database schema changes. This is particulary important for clustered providers where the version of the WC code running in one of the containers could be outdated and trigger a database downgrade.
2018-02-05 14:40:51 -02:00
Rodrigo Primo
13351b3d75
phpcs fixes
...
Removed the print_r() call as phpcs was complaining about it and there is no need to output the version values as phpunit will do that if the test fails.
2018-02-05 14:40:36 -02:00
Claudio Sanches
67e56a7243
Merge pull request #18813 from woocommerce/fix/18796-textdomains
...
Fix esc_attr/esc_html usage
2018-02-05 13:18:00 -02:00
Claudio Sanches
f0b99b3f0d
Merge pull request #18812 from woocommerce/update/18802
...
Tweak customer text
2018-02-05 13:14:16 -02:00
Mike Jolley
e36c05b1d5
Fix esc_attr/esc_html usage
2018-02-05 14:54:18 +00:00
Mike Jolley
00c43e76c1
Tweak customer text
2018-02-05 14:47:12 +00:00
Mike Jolley
d674aa71aa
Fix import placeholder lookup
2018-02-05 14:33:34 +00:00
Mike Jolley
b46ce1c366
Merge pull request #18796 from woocommerce/fix/18795-coupon-editing
...
Allow removing coupons on editable orders only
2018-02-05 11:23:03 +00:00
Mike Jolley
eb7f1f1daf
Merge pull request #18794 from woocommerce/fix/18791-store-notice-alert
...
Add notice for moved store notice setting
2018-02-05 11:18:02 +00:00
Caleb Burks
9c3611624c
Remove extra CSS padding
2018-02-02 22:19:07 -05:00
Caleb Burks
02952bd0a3
Allow removing coupons on editable orders only
2018-02-02 21:59:09 -05:00
claudiulodro
56230e9189
Refactor to handle percents with comma separators
2018-02-02 11:45:23 -08:00
Caleb Burks
9d062f8d82
Add notice for moved store notice setting
2018-02-02 14:32:37 -05:00
claudiulodro
680b8b6b01
Fix bulk sale/regular price percentage handling
2018-02-02 10:52:24 -08:00
Claudiu Lodromanean
8579c1fecc
Merge pull request #18782 from woocommerce/update/18757
...
Use CRUD search helper in admin products table
2018-02-02 09:59:49 -08:00
Claudio Sanches
6fc707bacc
Merge branch 'cmmarslender-feature/network-order-widget'
2018-02-02 14:47:16 -02:00
Claudio Sanches
9c39dd34cc
Merge branch 'feature/network-order-widget' of https://github.com/cmmarslender/woocommerce into cmmarslender-feature/network-order-widget
2018-02-02 14:46:51 -02:00
Claudio Sanches
9c6141b6f6
Merge pull request #18066 from woocommerce/fix/legacy-api-notice
...
Updated API settings making clear that is from our legacy REST API
2018-02-02 14:42:32 -02:00
Claudio Sanches
2321e8bdc1
Properly deprecated WC_Admin_List_Table_Products->sku_search()
2018-02-02 14:24:18 -02:00
Claudiu Lodromanean
ea11ed8b10
Merge pull request #18767 from woocommerce/fix/18738
...
Make "ID: " translatable
2018-02-02 08:20:10 -08:00
Claudio Sanches
0755038e8d
Merge pull request #18505 from liquidweb/feature/post-system-status-tool-hook
...
Add a hook after executing a REST system status tool
2018-02-02 14:19:03 -02:00
Claudio Sanches
fceca66770
Fixed coding standards
2018-02-02 14:09:47 -02:00
Claudio Sanches
bb8f4f0139
Fixed translators notation
2018-02-02 14:05:49 -02:00
Mike Jolley
59d38b5a85
Handle no results
2018-02-02 15:13:37 +00:00
Mike Jolley
6047322c52
Rather than query products by a SKU, use the CRUD search helper.
2018-02-02 15:11:23 +00:00
Jeffrey Pearce
4d2846ebdf
Updates Flexslider to version 2.7.0
...
- Fixes RTL logic.
2018-02-02 13:56:02 +02:00
Gerhard Potgieter
94640ef5af
Add back wc_get_product
2018-02-02 12:58:05 +02:00
Gerhard Potgieter
fa7fd2228c
Add check that product is not false before calling methods in if.
2018-02-02 12:56:24 +02:00
Claudio Sanches
36963afe99
Make "ID: " translatable
...
Ref #18738
2018-02-01 19:09:04 -02:00
Mike Jolley
98b24fdc31
Include parent ID when searching for SKUs
2018-02-01 17:31:40 +00:00
Mike Jolley
997e8aefde
Typecast sizes to int and avoid 9999999999
2018-02-01 17:13:05 +00:00
Mike Jolley
40098feb3c
Prevent regen if not cropping and height mismatches
2018-02-01 17:13:05 +00:00
Mike Jolley
c9789a4743
Default should be 1:1
2018-02-01 17:13:05 +00:00
Mike Jolley
db54911443
Merge pull request #18752 from woocommerce/refactor/background-processing
...
Introduced new WC_Background_Process abstract class
2018-02-01 16:18:56 +00:00
Claudio Sanches
c4da47f8ad
Fixed coding standards
2018-02-01 13:53:29 -02:00
Claudio Sanches
1dc56f5ef9
Fixed missing default value #18753
2018-02-01 13:52:05 -02:00
Claudio Sanches
9a202f93c1
Merge pull request #18756 from Drivingralle/patch-5
...
Pass on default single_select_page setting field value into output
2018-02-01 13:51:13 -02:00
Ralf Wiechers
f098f4edb8
Pass on default single_select_page setting field value into output
...
Addition to #18753
2018-02-01 15:52:32 +01:00
Ralf Wiechers
c6839e7962
Default value for single_select_country and multi_select_countries settings field not passed into output
...
Fix #18753
2018-02-01 15:45:38 +01:00
Mike Jolley
974ff71129
Merge pull request #18747 from woocommerce/fix/woocommerce_content
...
Was missing wc_get_loop_prop check like the main archive
2018-02-01 14:34:25 +00:00
Mike Jolley
add3ca3bea
This removes pagination and products from display for themes not using wc_get_loop_prop in their product loops.
2018-02-01 14:31:00 +00:00
Mike Jolley
8bd5d908b0
Merge pull request #18744 from woocommerce/fix/18733
...
Show category description on supported theme archives.
2018-02-01 14:17:20 +00:00
Claudio Sanches
6ce1bb36b0
Applied new kill_process() method into WC_Regenerate_Images
2018-02-01 12:03:28 -02:00
Claudio Sanches
7615783980
Introduced new methods into WC_Background_Process to complete clean process
2018-02-01 12:02:03 -02:00
Claudio Sanches
d74d664f79
Fixed includes
2018-02-01 11:52:14 -02:00
Claudio Sanches
b811dbbaec
Applied new WC_Background_Process class
2018-02-01 11:42:34 -02:00
Claudio Sanches
37d25dfaec
Introduced new WC_Background_Process abstract class
2018-02-01 11:42:13 -02:00
Claudio Sanches
e57e38508b
Restored background processing library classes
2018-02-01 11:34:03 -02:00
Mike Jolley
00d16dce0e
Was missing wc_get_loop_prop check like the main archive
2018-02-01 13:22:50 +00:00
Mike Jolley
5bea7de93c
Merge pull request #18743 from woocommerce/fix/unsupported-theme-homepage-pagination
...
Fix shop on homepage with unsupported themes
2018-02-01 12:45:17 +00:00
Mike Jolley
b499148a35
Merge pull request #18729 from woocommerce/fix/customizerrows
...
Dont show row settings if something is managing products per page
2018-02-01 12:42:14 +00:00
Mike Jolley
e787a0bf99
Show category description on supported theme archives.
2018-02-01 11:49:19 +00:00
Mike Jolley
2ed9691c14
Fix shop on homepage with unsupported themes
2018-02-01 11:15:46 +00:00
Caleb Burks
9aa4d81084
Add product ID to row actions
2018-02-01 01:01:49 -05:00
claudiulodro
14fa87ab1f
Dont show row settings if something is managing the number of products per page
2018-01-31 15:50:48 -08:00
Mike Jolley
9b22357d26
Prevent regular pagination showing on archives for unsupported themes.
2018-01-31 23:42:08 +00:00
Mike Jolley
2d8d5f3fdb
Merge pull request #18726 from woocommerce/fix/theme-compat
...
Theme compat updates
2018-01-31 22:29:08 +00:00
Mike Jolley
b9b07faa77
Merge pull request #18724 from woocommerce/fix/18722
...
Move filter for image resize to allow preventing regeneration better
2018-01-31 22:04:37 +00:00
Mike Jolley
5d11f660fe
Fire hooks for pagination etc only when pagination is enabled
2018-01-31 21:46:52 +00:00
Mike Jolley
fc3bf3edf2
Moved this below query to prevent subcategories display mode also showing products.
2018-01-31 21:24:14 +00:00
Mike Jolley
02cac7d637
If theme support changes, we may need to flush permalinks since some are changed based on this flag.
2018-01-31 21:23:32 +00:00
claudiulodro
67a8113f59
Move filter for image resize to allow preventing regeneration betterr
2018-01-31 13:10:56 -08:00
Mike Jolley
ca4f0cf0c8
Merge branch 'master' into update/uncategorized-improvements
2018-01-31 20:28:37 +00:00
Mike Jolley
29fda455aa
Remove exclude code - show it, now it's sortable
2018-01-31 20:27:15 +00:00
Mike Jolley
832d767a83
Full support for sorting
2018-01-31 20:17:06 +00:00
Claudiu Lodromanean
fa7fb6061f
Merge pull request #18720 from woocommerce/fix/18683
...
Protect against theme support being defined too late
2018-01-31 11:33:33 -08:00
claudiulodro
cbaa8831d5
Merge master and resolve conflicts
2018-01-31 11:24:21 -08:00
Mike Jolley
9648a72c1b
Protect against theme support being defined too late
2018-01-31 19:09:26 +00:00
Claudiu Lodromanean
062bc4b1b5
Merge pull request #18701 from woocommerce/fix/18680
...
Revert default columns to 4
2018-01-31 11:01:22 -08:00
Claudiu Lodromanean
0886e5eab7
Merge pull request #18716 from woocommerce/fix/missing-image-size-18690
...
Fix product image on-the-fly generation
2018-01-31 10:50:07 -08:00
Mike Jolley
e6f54912ee
Merge branch 'master' into fix/18680
2018-01-31 17:56:46 +00:00
Mike Jolley
1f2046a3e3
Revert columns to 4
2018-01-31 17:55:17 +00:00
Mike Jolley
79dba98b3f
maybe_resize_image fix
2018-01-31 17:43:39 +00:00
Claudiu Lodromanean
de6e8135d0
Merge pull request #18713 from woocommerce/fix/18695
...
Fixed missing user_id in webhook migration script
2018-01-31 09:42:18 -08:00
Claudio Sanches
da8fdc0c91
Include "translators" notation #18671
2018-01-31 15:25:38 -02:00
Claudio Sanches
18b91a041d
Merge pull request #18671 from shoheitanaka/patch-11
...
Fix : Argument swapping at sprintf
2018-01-31 15:23:37 -02:00
Chunkford
af01745787
Update wc-cart-functions.php
2018-01-31 17:11:21 +00:00
Claudio Sanches
5533f85450
Fixed missing user_id in webhook migration script
...
Closes #18695
2018-01-31 15:09:21 -02:00
Mike Jolley
586619b136
merge the loop, don't bail
2018-01-31 16:44:50 +00:00
Mike Jolley
40c59d31f2
Merge branch 'master' into fix/18674
2018-01-31 16:29:08 +00:00
Claudiu Lodromanean
c28e2e2de5
Merge pull request #18706 from woocommerce/update/uncategorized
...
Uncategorized tweaks
2018-01-31 08:16:51 -08:00
Claudiu Lodromanean
2936daaf89
Merge pull request #18700 from woocommerce/update/18687
...
Before getting wc_get_loop_prop, setup the loop.
2018-01-31 07:53:47 -08:00
Claudiu Lodromanean
c7c4ec93d9
Merge pull request #18698 from woocommerce/fix/order-screen-ajax-referer
...
Ensure the table handler is only loaded once. Prevents multiple loads if a plugin calls check_ajax_referer many times.
2018-01-31 07:47:27 -08:00
Mike Jolley
a8cc6c8871
Remove deprecation notice
2018-01-31 15:46:47 +00:00
Mike Jolley
5a4cc2d46c
Update comment.
2018-01-31 15:35:25 +00:00
Mike Jolley
a370a4c12a
Merge pull request #18693 from woocommerce/fix/18692
...
Webhooks API error checking
2018-01-31 14:53:49 +00:00
Mike Jolley
b8df0ea474
Hide uncategorized from store by default.
2018-01-31 13:37:23 +00:00
Mike Jolley
6f6ddf2eeb
Prevent uncategorized from being sorted. it's always top of the list.
2018-01-31 13:34:55 +00:00
Rodrigo Primo
211ec9b896
phpcs fixes
2018-01-31 11:22:33 -02:00
Jason Kytros
55c664d2d7
Remove filter 'woocommerce_order_item_product' from class-wc-structured-data.php
2018-01-31 14:53:44 +02:00
Mike Jolley
33ec416214
On update, set woocommerce_catalog_columns to old default of 4
2018-01-31 12:33:30 +00:00
Chunkford
afb21dda06
Update wc-cart-functions.php
2018-01-31 12:02:59 +00:00
Mike Jolley
0f33d446e3
Before getting wc_get_loop_prop, setup the loop.
...
Closes #18687
2018-01-31 11:59:40 +00:00
Chunkford
4af291c38c
Update wc-cart-functions.php
...
Alteration to the proposed changes to take into account free shipping so the price isn't displayed
2018-01-31 11:58:37 +00:00
Mike Jolley
57c00701e6
Ensure the table handler is only loaded once. Prevents multiple loads if a plugin calls check_ajax_referer many times.
2018-01-31 11:30:10 +00:00
Mike Jolley
b230d6be4c
Error checking
2018-01-31 10:40:06 +00:00
Gerhard Potgieter
a0b89fdda3
PHPCS fixes
2018-01-31 08:07:27 +02:00
Gerhard Potgieter
6a7f00ce89
Fix grammer
2018-01-31 08:06:51 +02:00
Claudiu Lodromanean
de4cd97b00
Merge pull request #18659 from woocommerce/fix/rest-api-typos
...
[REST API] Fixed typos in products schema
2018-01-30 17:37:31 -08:00
Mike Jolley
96982cd318
Min columns must be 1, not 0
2018-01-30 23:32:52 +00:00
Mike Jolley
81c8aba8c9
Add woocommerce_output_product_categories so we can handle legacy templates.
2018-01-30 23:24:26 +00:00
Shohei Tanaka
78e41d225a
Fix : Argument swapping at sprintf
...
change the arguments from %s to %1$s and %2$s.
2018-01-31 05:50:56 +09:00
Rodrigo Primo
538ee2097c
Merge pull request #18594 from alexminza/master
...
Added support for additional HTML5 input types for settings/checkout forms
2018-01-30 17:33:13 -02:00
Rodrigo Primo
7255855789
Merge pull request #18655 from woocommerce/fix/17761-tables
...
Fix table styling in mobile
2018-01-30 17:08:13 -02:00
Claudio Sanches
e6597cd351
Fixed coding standards
2018-01-30 15:05:25 -02:00
Claudio Sanches
05a80e2d4f
[REST API] Fixed typos on products schema
2018-01-30 15:03:01 -02:00
Claudiu Lodromanean
30c612643c
Merge pull request #18656 from woocommerce/fix/18653
...
Increase precision from 4 to 6
2018-01-30 07:32:56 -08:00
Mike Jolley
c8b14b6f76
Increase precision from 4 to 6
2018-01-30 15:00:53 +00:00
Claudiu Lodromanean
94caad1af3
Merge pull request #18651 from woocommerce/fix/18645-cast-multiselect-values
...
Cast multiselect keys as strings
2018-01-30 06:16:47 -08:00
claudiulodro
141aeaa1b3
Fix spacing
2018-01-30 06:15:30 -08:00
Claudiu Lodromanean
85d9631714
Merge pull request #18649 from woocommerce/fix/18643
...
Remove kses from before/after attribute
2018-01-30 06:13:27 -08:00
Mike Jolley
341dfe1e7b
Fix table styling in mobile
2018-01-30 13:24:59 +00:00
Gerhard Potgieter
e041136974
Cast multiselect keys as strings since html does not know anything about integers.
2018-01-30 14:03:28 +02:00
Mike Jolley
057b40e044
Remove kses from before/after attribute
...
Closes #18643
2018-01-30 11:45:00 +00:00
Rodrigo Primo
2feacfb47a
Display whether or not external object cache is enabled
...
This commit adds a new line to the section "WordPress environment" of the system status page to indicate whether or not WP external object cache is enabled.
2018-01-29 15:56:01 -02:00
Rodrigo Primo
75fc594013
Manually fix coding standard violations that can't be fixed with phpcbf
2018-01-29 15:55:43 -02:00
Rodrigo Primo
a15ecc1601
Automatically fix coding standard violations using phpcbf
2018-01-29 15:53:54 -02:00
Mike Jolley
2563728edd
Store attachment ID
2018-01-29 17:15:14 +00:00
Boro Sitnikovski
a03bdc27ed
Bail out earlier
2018-01-29 17:03:34 +00:00
Boro Sitnikovski
906084d2e9
Make param 3 optional and skip if it's not available for WP compat
2018-01-29 17:03:34 +00:00
Claudiu Lodromanean
183a00503a
Merge pull request #18639 from woocommerce/update/shipping-method-wildcard-wording
...
Update help text for shipping wildcards. Update to #18611
2018-01-29 08:17:36 -08:00
Claudiu Lodromanean
1fc3a71e76
Merge pull request #18625 from pmgarman/patch-3
...
Return amount refunded as a float
2018-01-29 08:01:43 -08:00
Claudiu Lodromanean
2cdffd538c
Merge pull request #18636 from MechielCouvaras/patch-2
...
Update Klarna URLs to relevant versions
2018-01-29 07:45:38 -08:00
Gerhard Potgieter
3e14fd41c4
Update help text for shipping wildcards. Update to #18611
2018-01-29 17:32:55 +02:00
Claudio Sanches
b1b12fc50b
Merge pull request #18606 from woocommerce/update/dont-use-wccom-hosted-image
...
Serve WC core copy of the WC logo instead of WC.com copy
2018-01-29 13:20:24 -02:00
Mike Jolley
46f9e00497
Tweak paypal seller protection text
...
Closes #18632
2018-01-29 14:43:25 +00:00
Mechiel Couvaras
8d6f434ba0
Update Klarna URL to relevant versions
...
Updating Klarna URL to point to the relevant product page (region specific) on WooCommerce.com
2018-01-29 15:40:53 +02:00
Patrick Garman
fd3a39345f
Return amount refunded as a float
...
An amount refunded should be numeric, I was receiving pHP notices that a non numeric value was encountered. Seems this is something potentially new as of PHP 7.1? Is there any reason we should **not** return a float here? Any null or empty response from the SQL query would be 0, which would still be accurate for the total that was refunded for that order.
```2018/01/27 16:50:50 [error] 46797#0: *2930 FastCGI sent in stderr: "PHP message: PHP Warning: A non-numeric value encountered in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php on line 212
PHP message: PHP Stack trace:
PHP message: PHP 1. include() /cms/wp-admin/post.php:174
PHP message: PHP 2. do_meta_boxes() /cms/wp-admin/edit-form-advanced.php:714
PHP message: PHP 3. WC_Meta_Box_Order_Items::output() /cms/wp-admin/includes/template.php:1063
PHP message: PHP 4. include() /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:41```
2018-01-27 17:07:20 -06:00
Chunkford
e831406d9f
Display zero value when using shipping classes
...
When offering free shipping on certain products via a shipping class, the price (albeit zero value) isn't shown to the end user.
https://www.screencast.com/t/8oT7maIftTZo
It makes for a better user experience to actually show the 0.00 price to ensure there isn't any doubt.
https://www.screencast.com/t/mkrKWNItrI5r
2018-01-27 13:25:24 +00:00
Rodrigo Primo
9c4c006baa
Fix: set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
...
This commit fixes a bug in WC_Customer_Download_Data_Store::get_downloads() that made impossible to change the order in which the query returned the results. This method accepts the arguments `order_by` and `order` but it was ignoring them and always using the default values ('permission_id' and 'ASC' respectively).
One of the assertions of the WC_Customer_Download_Data_Store::get_downloads() test method was modified to make sure the code now works.
This bug was introduced by commit a443419
.
2018-01-26 15:55:13 -02:00
Claudiu Lodromanean
021734d97b
Merge pull request #18619 from woocommerce/fix/18607
...
Correctly sanitize posted attributes when JS is off.
2018-01-26 08:24:21 -08:00
Mike Jolley
e56b007af1
Correctly sanitize posted attributes when JS is off.
2018-01-26 16:11:53 +00:00
Claudiu Lodromanean
1627cbd8eb
Merge pull request #18618 from woocommerce/fix/18613
...
Cast min, max, and value to int
2018-01-26 07:58:30 -08:00
Claudiu Lodromanean
3f5d82b4c4
Merge pull request #18617 from woocommerce/fix/18615
...
Enforce columns in shortcodes
2018-01-26 07:56:32 -08:00
Mike Jolley
2d952b1597
base 10
2018-01-26 15:54:34 +00:00
Mike Jolley
36bce5f939
Cast min, max, and value to int
...
Fixes #18613
2018-01-26 15:53:23 +00:00
Claudiu Lodromanean
18f9bb408f
Merge pull request #18604 from woocommerce/update/thumbnails
...
Tweak thumbnails + intermediate sizes
2018-01-26 07:47:56 -08:00
Mike Jolley
4378bd6df1
Enforce columns in shortcodes
2018-01-26 15:15:06 +00:00
Mike Jolley
a5a3f2149b
Regen missing images
2018-01-26 14:54:26 +00:00
Mike Jolley
4edd65c124
1 resize per batch
2018-01-26 14:31:27 +00:00
Mike Jolley
06e84b7af3
Merge image meta data
2018-01-26 13:35:11 +00:00
Mike Jolley
4a3124ba46
Update batch per task
2018-01-26 12:36:07 +00:00
Mike Jolley
626b8baebc
MAGICK_THREAD_LIMIT fix for timeouts
2018-01-26 12:17:41 +00:00
Gerhard Potgieter
97ca671efa
Validating user usage limit should check that of customer and not logged in user when applying coupons in admin area.
2018-01-26 12:37:23 +02:00
Gerhard Potgieter
057c87c457
Add missing woocommerce_update_options_ action for settings classes save methods overridden from parent.
2018-01-26 11:22:09 +02:00
Claudiu Lodromanean
be7ad7f234
Merge pull request #18599 from woocommerce/fix/18573
...
[REST API] Refund line items are read-only
2018-01-25 11:34:30 -08:00
Rodrigo Primo
52eb803e81
Serve WC core copy of the WC logo instead of WC.com copy
...
This commit changes the URL of the WC logo displayed in the WooCommerce.com Subscriptions page inside WooCommerce admin to use an image served from WC core instead of WC.com.
2018-01-25 16:46:31 -02:00
Rodrigo Primo
526db5faf8
PHPCS fixes
2018-01-25 16:43:07 -02:00
Mike Jolley
674145a2e7
Tweak intermediate sizes
2018-01-25 17:27:50 +00:00
Mike Jolley
ebde2d64fb
phpcs
2018-01-25 17:03:54 +00:00
Mike Jolley
6e83fcec50
Sizes for 3 cols default
2018-01-25 17:03:01 +00:00
Claudio Sanches
47883d89ab
Coding standards
2018-01-25 14:04:11 -02:00
Claudio Sanches
e8b8e87cae
[REST API] Refund line items are read-only
...
Closes #18573
2018-01-25 14:02:31 -02:00
Claudiu Lodromanean
eade481164
Merge pull request #18592 from woocommerce/update/18586
...
Customizer tweaks
2018-01-25 07:54:38 -08:00
Mike Jolley
76a37fa0d2
Feedback
2018-01-25 15:14:02 +00:00
Mike Jolley
de4ff9742c
Revert debug code
2018-01-25 15:06:12 +00:00
Mike Jolley
e0f8ff8f39
Revert "Prevent timeouts with option + reduce number of thumbnails generated by script"
...
This reverts commit a4b6110990
.
2018-01-25 15:05:04 +00:00
Mike Jolley
a4b6110990
Prevent timeouts with option + reduce number of thumbnails generated by script
2018-01-25 15:04:55 +00:00
Mike Jolley
c7ccc93a69
Prevent timeouts with option + reduce number of thumbnails generated by script
2018-01-25 15:02:33 +00:00
Manos Psychogyiopoulos
e5fe92778c
Close optgroup :)
2018-01-25 16:56:16 +02:00
Manos Psychogyiopoulos
690c7a9753
Check if paying for an existing order before looking at cart contents
...
Resolves a bug causing this logic to ignore the `order-pay` query var presence if the cart is populated with items.
2018-01-25 16:42:54 +02:00
Manos Psychogyiopoulos
d10987d813
Match saved (canonical) rate IDs against chosen rates
...
Generates canonical rate IDs (`method_id:instance_id`) from package rates and order shipping line items.
Requires https://github.com/woocommerce/woocommerce/pull/18483
2018-01-25 16:40:31 +02:00
Manos Psychogyiopoulos
d86a948f04
Add method instances in COD, grouped by method
2018-01-25 16:37:10 +02:00
Manos Psychogyiopoulos
3dc5f2a277
Allow optgroup in settings multiselect fields
2018-01-25 16:35:30 +02:00
Alexander Minza
519bfadc63
Added support for additional HTML5 input types
2018-01-25 15:14:30 +02:00
Mike Jolley
e2d553fb61
Merge pull request #18588 from woocommerce/fix/setup-wizard-copy-and-style-tweaks-for-wc-3-3
...
Setup wizard: various style and copy tweaks
2018-01-25 12:59:52 +00:00
Mike Jolley
e85338d8d3
Import ratio from old settings
2018-01-25 12:34:28 +00:00
Mike Jolley
9b155d53d4
Feedback; show panels at all times and redirect to store.
2018-01-25 11:48:45 +00:00
Mike Jolley
845c667e77
phpcs
2018-01-25 11:38:05 +00:00
Gerhard Potgieter
18600e1d2f
Add limit and expiry to get_downloads, cater for empty strings expiry and limit setters
2018-01-25 11:28:12 +02:00
Gerhard Potgieter
5ef6766654
Add limit and expiry to data array.
2018-01-25 11:04:45 +02:00
Gerhard Potgieter
2b44ddffc6
PHPCS fixes for WC_Product_Download class.
2018-01-25 11:03:02 +02:00
Gerhard Potgieter
bdda142d24
expiry and limit getters and setters for WC_Product_Download
2018-01-25 10:57:12 +02:00