Mike Jolley
c5b28e49be
Merge pull request #22602 from 10by/patch-1
...
Updating Peruvian currency
2019-01-31 12:42:50 +00:00
Gregory Karpinsky
17a59c5004
Typo in class-wc-log-levels.php
2019-01-30 23:31:39 -05:00
Mike Jolley
dd981be615
We need auth early
2019-01-30 18:12:33 +00:00
Mike Jolley
cd4039e078
Only do includes on rest requests
2019-01-30 17:38:41 +00:00
Mike Jolley
5b57cb5356
Layered nav should use base link
2019-01-30 16:29:01 +00:00
Mike Jolley
77eba86818
Get rid of reflection method to speed up set_props
2019-01-30 16:21:06 +00:00
Mike Jolley
9a8d11e9f6
phpcs
2019-01-30 16:20:49 +00:00
Mike Jolley
7eda1bb412
Only use WP Error when needed
2019-01-30 16:20:41 +00:00
Mike Jolley
a16c677baf
Missing _price
2019-01-30 16:20:23 +00:00
Mike Jolley
8e51ab2fcd
Set props using one get_post_meta call
2019-01-30 16:20:17 +00:00
Mike Jolley
e129d18c00
get_current_page_url should not persist
2019-01-30 16:18:56 +00:00
Mike Jolley
23b0fdbc1f
Fix id usage
2019-01-30 16:11:44 +00:00
Mike Jolley
8fc7e2be99
prefix tax cache key
2019-01-30 16:11:37 +00:00
Mike Jolley
57ccde6643
get_product_type cache
2019-01-30 16:11:29 +00:00
Mike Jolley
cb1c579262
Cache tax class slugs
2019-01-30 16:11:19 +00:00
Mike Jolley
874f4830a6
cache_value cleanup
2019-01-30 16:11:11 +00:00
Mike Jolley
4622af890a
wc_attribute_taxonomy_slug cache
2019-01-30 16:11:04 +00:00
Mike Jolley
a5bc236c66
get_current_page_url cache set
2019-01-30 16:10:56 +00:00
Mike Jolley
fa58f3bb9f
Lax the kses here - link and name is already escaped.
2019-01-30 16:10:48 +00:00
Mike Jolley
536d71a5f6
cache get_current_page_url
2019-01-30 16:09:16 +00:00
Mike Jolley
d167cb0a95
Add caching for template names to avoid multiple lookups
2019-01-30 16:09:08 +00:00
Mike Jolley
6fa7995f3a
Only check file exists if filtered
2019-01-30 16:09:01 +00:00
Mike Jolley
35819ccb6e
Small refactor for clarity
2019-01-30 16:08:53 +00:00
Mike Jolley
4eb0080605
apply_filters_deprecated to avoid conflict with wp profile
2019-01-30 16:06:51 +00:00
Mike Jolley
0dd7cd2b8b
Improved post_class generation to avoid loading more product objects
2019-01-30 16:02:22 +00:00
Mike Jolley
bd076d42da
Refactor wc_get_product_class to avoid $post object
2019-01-30 16:02:00 +00:00
Mike Jolley
59e0867afe
Add missing post_password prop
2019-01-30 16:01:54 +00:00
Mike Jolley
1ba0194685
Remove external lookup of ips on localhost
2019-01-30 15:59:02 +00:00
Gerhard
a2e4ca70b6
PHPCS fixes
2019-01-30 11:33:51 +02:00
Gerhard
429f515704
Introduce woocommerce_admin_report_customers_user_query_args and woocommerce_admin_report_customer_list_user_query_args filters to altering the queries running when retrieving users for reports.
2019-01-30 11:19:34 +02:00
Toby Robles
7fa1bd78c9
Updating Peruvian currency
...
Since 2015, the government ordered that the "Nuevo Sol (S /.)" be renamed simply "Sol (S/)", also suppressing the use of the point (S/.) in the monetary sign (S/)
2019-01-29 20:01:04 -05:00
Job
185041da87
Removed title case
...
As requested here by https://github.com/woocommerce/woocommerce/pull/22584#pullrequestreview-197707971
2019-01-29 20:40:59 +01:00
Boost
d9c971ee20
Update class-wc-structured-data.php. Line 214, changed wpautop to wp_filter_nohtml_kses
2019-01-29 13:27:05 +00:00
Gerhard
69baf175c1
After some testing using area-hidden seems to deliver the best results for not producing the hissing sound on reviews.
2019-01-29 13:48:47 +02:00
Gerhard
94f64f3851
PHPCS fixes
2019-01-29 13:36:16 +02:00
Gerhard
e74f0acc19
Add a screen reader label to the star rating div to avoid screen readers trying to read the text of the star font.
2019-01-29 13:34:04 +02:00
Gerhard
25e562400e
Put reload checkout in variable before unsetting it and then calling it again after it was unset.
2019-01-29 13:05:02 +02:00
Ron Rennick
a663f56306
two more sniffs in wc-template-functions.php
2019-01-28 14:36:39 -04:00
Rodrigo Primo
c798ea9ea8
Fix phpcs errors
2019-01-28 15:20:22 -02:00
Ron Rennick
8e18d05634
phpcs sniff fixes for class-wc-breadcrumb.php
2019-01-28 11:30:11 -04:00
Ron Rennick
475c35ed7a
phpcs sniff fixes for wc-template-functions.php
2019-01-28 11:25:45 -04:00
Ron Rennick
db2bc48849
don't force shop loop display mode to products when query page >1
2019-01-28 11:23:25 -04:00
Mike Jolley
7c0273fa12
Prime caches when reading variations
2019-01-28 15:00:48 +00:00
Peter Fabian
dda4cab70c
Updated todo to use the common format.
2019-01-28 13:13:12 +01:00
Job
2174937f4f
Translatable
2019-01-28 12:28:48 +01:00
Job
b0aa198d4c
Updated system status report
...
Two changes:
* Followed the WP core order of mentioning wordpress URL and site URL
* Followed the WP core naming of these two URLs - confusingly the home URL in core is described be "Site Address ()"
![http://cld.wthms.co/xo5xtL ](http://cld.wthms.co/xo5xtL+ )
Link to image here: http://cld.wthms.co/xo5xtL .
2019-01-28 12:24:57 +01:00
Ron Rennick
a93418b826
phpcs sniff fixes for class-wc-report-sales-by-product.php
2019-01-27 19:27:30 -04:00
Ron Rennick
f42c42066b
include refunded orders in top sellers, earners in sales by product report
2019-01-27 19:24:08 -04:00
Ron Rennick
3f24ad8d4c
phpcs sniff fixes for abstract-wc-order.php
2019-01-27 11:38:08 -04:00
Ron Rennick
d32f189f27
recalculate coupons after adding to order
2019-01-26 23:57:32 -04:00
Galen Wright-Watson
65bb805cbb
Fix: #22572-can't access settings ("The link you followed has expired"). Cause: if anything adds to `$_POST`, this triggers WooCommerce to try to save settings; if there's no nonce, authorization fails, resulting in the message. Soln: check for specific element ('save') in `$_POST` to determine whether to save elements, rather than testing that `$_POST` is non-empty.
2019-01-25 18:08:00 -08:00
Mike Jolley
b38ff764b4
Correct syntax err
2019-01-25 20:48:39 +00:00
Mike Jolley
32ae0192e5
Use WP term meta functions
2019-01-25 20:47:54 +00:00
Mike Jolley
8823559880
get rid of old term meta table
2019-01-25 20:44:25 +00:00
Mike Jolley
d8fe798825
Revise meta ordering system to take care of default sorting
2019-01-25 20:39:55 +00:00
Mike Jolley
8127610afe
Remove menu_order - not needed
2019-01-25 20:01:20 +00:00
Mike Jolley
7f4444ef7c
direct meta sort
2019-01-25 19:57:06 +00:00
Mike Jolley
05ab331ea8
No need for default sorting
2019-01-25 19:56:12 +00:00
Mike Jolley
a38add7ac8
No need for default sorting
2019-01-25 19:55:25 +00:00
Mike Jolley
8675f3195d
Avoid inline sort
2019-01-25 19:51:45 +00:00
Ian Jenkins
d7e32e1c77
Remove possibe superfluous wp_attachment_is_image() filter.
...
The reason to remove this is that this function uses get_post() under
the hood which always assumes the attachment is on the same site, where
as if you're using a plugin such as
https://github.com/humanmade/network-media-library it might not be.
I'm not sure if there's any adverse affects of not doing this filtering,
from my testing, it still seems to work in the same way.
2019-01-25 15:11:58 +00:00
Mike Jolley
9fc78634f9
Update routine
2019-01-25 13:56:15 +00:00
Ron Rennick
60a6895eee
php sniff fixes for class-wc-rest-product-categories-controller.php
2019-01-25 09:53:37 -04:00
Peter Fabian
33584e767f
Renamed function
...
As legacy REST API will be removed soon anyway.
2019-01-25 10:07:32 +01:00
claudiulodro
78e5189334
Better @id generation for product structured data
2019-01-24 11:49:44 -08:00
Ron Rennick
e73eabf679
use `name` for POST/PUT category image name for consistency in api V3
2019-01-24 15:38:45 -04:00
claudiulodro
8078e6bfc2
Simplified title check that works on all wc widgets
2019-01-24 10:47:05 -08:00
Prince Ahmed
78e4ef5f38
Fix test get request
...
During test Remote GET Request,
in the error checking area used $post_response instead of using $get_response.
2019-01-24 21:59:09 +06:00
Peter Fabian
d390528d79
Updated check to only cover non-legacy REST API requests.
...
Updated filter name.
2019-01-24 12:06:47 +01:00
Peter Fabian
2d5fc8ef7d
Merge branch 'master' into fix/20937-v0.1
2019-01-24 11:19:46 +01:00
Mike Jolley
00a93ae8f0
Merge pull request #22112 from Prospress/fix/22101
...
Introduce wc_attribute_taxonomy_slug()
2019-01-23 21:57:07 +00:00
Mike Jolley
5b40f24adc
Merge pull request #22526 from woocommerce/fix/21299
...
Sort terms by parent and work back from bottommost term
2019-01-23 21:36:55 +00:00
Mike Jolley
e171718534
Merge pull request #22529 from james-allan/custom_coupon_usage_limit
...
Keep count of the number of times custom coupons apply
2019-01-23 21:36:19 +00:00
Mike Jolley
9b655c0ba7
Use hasSelectiveRefresh
2019-01-23 21:29:55 +00:00
Mike Jolley
624700267b
Merge branch 'master' into pr/20830
2019-01-23 20:56:35 +00:00
Mike Jolley
20330b01bd
Merge pull request #22531 from rellect/fix_ssl_check
...
Fix ssl check in case shop page no longer exists
2019-01-23 20:18:43 +00:00
Mike Jolley
467681c788
Merge pull request #22537 from woocommerce/fix/22450
...
round variation percentage price adjustments to decimal setting
2019-01-23 20:15:12 +00:00
Mike Jolley
407a5954dc
Merge pull request #22464 from woocommerce/fix/22245
...
include tax in subtotals when validating coupon minimum and maximum
2019-01-23 19:54:12 +00:00
Mike Jolley
536c933612
correctly handle steps
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 19:39:59 +00:00
Mike Jolley
b8e60e44c0
Handle tax in price filter specific query
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 19:39:46 +00:00
Mike Jolley
08a14b4ce9
Move out tax logic
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 19:39:28 +00:00
Gerhard
31263f2a4c
Tax calc for price filter
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 18:39:45 +00:00
Mike Jolley
3a94fc6d00
Introduce steps and cleanup variable names for clarity
2019-01-23 18:29:33 +00:00
Ron Rennick
6709049cbc
round variation percentage price adjustments to decimal setting
2019-01-23 14:04:04 -04:00
Mike Jolley
b9de20ed27
Exclude paged from price slider
2019-01-23 17:34:58 +00:00
Mike Jolley
01696d92b0
Add comments and round to 10
2019-01-23 17:34:51 +00:00
Mike Jolley
e9f0490829
Merge pull request #21719 from vyskoczilova/master
...
Custom settings on shipping section (#13463 , #13461 )
2019-01-23 17:07:13 +00:00
Mike Jolley
6a89a76c11
Merge 17796
2019-01-23 16:39:21 +00:00
Mike Jolley
59c97539b3
Trigger loaded hook once plugins are loaded.
2019-01-23 16:20:26 +00:00
Mike Jolley
613a095362
Exclude paged from price slider
2019-01-23 15:31:26 +00:00
Mike Jolley
9cdcc3f1e5
Merge pull request #21817 from woocommerce/feature/pages-gutenberg-support
...
Use shortcode block for WooCommerce default pages
2019-01-23 15:25:28 +00:00
Mike Jolley
f96d59ac2b
Merge branch 'pr/21043'
2019-01-23 15:16:50 +00:00
Mike Jolley
987a24afdc
Timeout param
2019-01-23 15:16:40 +00:00
Ron Rennick
a6b1c45740
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2019-01-23 11:13:25 -04:00
Gerhard Potgieter
f77e2d7316
Handle full refunds in the taxes by code report ( #21843 )
...
* Add full refund support to the taxes by code report.
* Some PHPCS fixes
* Do not include refund in initial tax lookup for report.
* Correct logic which loops orders
* match date report
2019-01-23 15:12:58 +00:00
Ron Rennick
8709351994
update function name to `wc_attribute_taxonomy_slug`
2019-01-23 11:11:27 -04:00
Ron Rennick
b868b484f7
fix merge conflicts
2019-01-23 10:53:42 -04:00
Refael Iliaguyev
8f0f22c11b
Fix ssl check in case shop page does not exists.
2019-01-23 16:08:13 +02:00
Luigi
548b00c660
Improve the way we do queries ( #22043 )
...
* Improve the way we do queries
* PHP legacy compatible
* Update aproach to filter queries with empty values
* Fixing Unit Tests
* Moving Unit Test to its the correct test function
* Filter missing the new param, allow_empty, also simplifiying unit test.
* Helper function to create counpon does not support empty coupon codes
* Helper function does not need to allot empty search
* Wrong code standard
* Fixing Code Standard Unit Test
2019-01-23 13:46:32 +00:00
Mike Jolley
e8710e4ad6
Merge pull request #22530 from treibalen/master
...
Change footer wording for WooCommerce emails
2019-01-23 13:28:31 +00:00
Mike Jolley
99f663ad5c
Merge pull request #22131 from willgorham/improve-shipping-zone-continents
...
Improve shipping zone continents [Fixes #22130 ]
2019-01-23 13:27:16 +00:00
Mike Jolley
57ae0bec9d
Merge pull request #22073 from bekarice/fix/partial-refund-webhooks
...
Send webhooks for partial refund creation
2019-01-23 13:02:44 +00:00
treibalen
178c7a7a9c
Change wording for WooCommerce emails
...
Change emails footer from "Powered by WooCommerce" to "Built with WooCommerce"
2019-01-23 13:50:08 +05:30
James Allan
767abb3a8a
Keep count of the number of times custom coupons apply
2019-01-23 16:47:52 +10:00
Ron Rennick
8e12f9607d
use WP standard datetime format for installs where timezone_string setting is not set
2019-01-22 15:47:56 -04:00
Mike Jolley
7cd20021e0
Sort terms by parent and work back from bottommost term
...
Fixes the issue described in #21299 by sorting terms by parent ID.
Remove the extra get_term call because we already have a term object.
Since we support 4.7+, also removed function exists for wp_list_sort function.
2019-01-22 19:06:58 +00:00
Will Gorham
45e7f344b1
Use shipping countries instead of selling countries
2019-01-22 13:51:35 -05:00
Mike Jolley
2a2863c5ba
Merge pull request #21648 from EmranAhmed/master
...
Add 3rd param on `woocommerce_product_option_terms` action to use custom attribute types on product attribute create
2019-01-22 18:28:24 +00:00
Mike Jolley
9b2866a310
Merge branch 'pr/21722'
2019-01-22 18:20:45 +00:00
Ron Rennick
343a217939
move add order tax to get_object_subtotal()
2019-01-22 13:42:37 -04:00
Mike Jolley
43ba62dc86
Merge pull request #22067 from Prospress/fix/22046
...
populate default variation attributes when it is the first variation
2019-01-22 17:29:54 +00:00
Mike Jolley
ed95fe2cd3
Merge pull request #22066 from Prospress/fix/22065
...
add is_array check to catalog ordering orderby
2019-01-22 16:25:20 +00:00
Mike Jolley
c99495488b
Merge pull request #22458 from woocommerce/fix/22456
...
Set order vat exempt status to that of customer on checkout.
2019-01-22 16:13:36 +00:00
Mike Jolley
581d3c3195
Merge branch 'pr/22290'
2019-01-22 16:05:56 +00:00
Mike Jolley
11b172d583
phpcs
2019-01-22 16:04:16 +00:00
Mike Jolley
9b6694341f
Fix code and improve indenting
2019-01-22 16:01:17 +00:00
Mike Jolley
e3a1c1c3c0
Merge pull request #22475 from woocommerce/add/22474
...
Add stock qty increase/decrease option to bulk edit
2019-01-22 15:20:44 +00:00
Mike Jolley
380201be33
Merge pull request #22417 from woocommerce/fix/21175
...
Sort countries using new ascii comparison function
2019-01-22 14:47:41 +00:00
Mike Jolley
34a3d77080
Merge pull request #22303 from Prospress/fix/22063
...
only hide price filter widget when archive has no products
2019-01-22 14:44:48 +00:00
Mike Jolley
10518228aa
Merge pull request #22318 from Prospress/fix/21202
...
Only include the network orders widget on the main site dashboard
2019-01-22 14:38:46 +00:00
Mike Jolley
d7f768f779
Merge pull request #21069 from tomaskavalek/patch-1
...
Added missing HTML filter for quantity
2019-01-22 14:36:20 +00:00
Mike Jolley
1a18297aa2
Merge pull request #22398 from Prospress/fix/22382
...
update default attribute slug when attribute term slug is changed
2019-01-22 14:32:56 +00:00
Gerhard
4fa2856d86
Renamed vars so need to used the new vars.
2019-01-22 15:39:17 +02:00
Mike Jolley
084dab4553
Merge pull request #22476 from woocommerce/fix/22470
...
Hide ratings when reviews are disabled
2019-01-22 13:32:22 +00:00
Mike Jolley
7ac26ce893
Merge pull request #22518 from Prospress/fix/21779_redux
...
Fix/21779 redux
2019-01-22 13:29:40 +00:00
Gerhard
1664181a63
Wrap iconv usage in function_exists for compatibility.
2019-01-22 15:26:40 +02:00
Gerhard
0beadb3bab
Upate function @since to 3.6.0
2019-01-22 15:22:14 +02:00
Gerhard
bfda9c0ac8
Use wc_update_product_stock instead of manually adding and subtracting.
2019-01-22 15:14:41 +02:00
Mike Jolley
afbdd06e83
Merge branch 'pr/22409'
2019-01-22 13:12:34 +00:00
Mike Jolley
892ec24fed
correct version
2019-01-22 13:12:26 +00:00
Mike Jolley
ebac35e2c5
Merge pull request #22324 from Prospress/fix/21380
...
update variation guid with the id after creation
2019-01-22 13:07:42 +00:00
Mike Jolley
ee158ae044
Merge pull request #22411 from Gator92/order_item_meta_filter
...
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-22 13:04:02 +00:00
Mike Jolley
83aa070654
Merge pull request #22412 from woocommerce/fix-minor-issues-in-webhook-class
...
Fix minor issues in WC_Webhook_Data_Store class
2019-01-22 12:51:42 +00:00
Mike Jolley
4d4d34a2d1
Merge pull request #22514 from woocommerce/update/mailchimp-branding-setup-wizard
...
Updates Mailchimp branding in setup wizard
2019-01-22 12:39:24 +00:00
Mike Jolley
5cb60b840c
Merge pull request #21859 from ChromeOrange/master
...
Add filter to save_payment_method_checkbox
2019-01-22 12:05:42 +00:00
Mike Jolley
4c28ba612c
Merge pull request #21884 from woocommerce/add/wc-admin-taxonomy-instance/21883
...
Add WC_Admin_Taxonomies instance method
2019-01-22 12:01:33 +00:00
Ron Rennick
c3879f0d63
only deduct refunded shipping, taxes once from gross to get net sales by date CSV
2019-01-21 15:44:53 -04:00
Ron Rennick
aa9961695f
phpcs sniff fixes for class-wc-report-orders-by-date.php
2019-01-21 15:36:29 -04:00
Mike Jolley
e5af25e994
Merge pull request #21341 from kinging123/patch-2
...
Added action 'woocommerce_variation_header' after actions in variations list
2019-01-21 16:59:48 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Mike Jolley
759424a5fb
Merge pull request #22394 from fitimvata/master
...
Add filters for mail callback in WC_Email::send method.
2019-01-21 16:00:10 +00:00
Alessandro Morelli
be0f4b45e3
Fix coding standard violations
2019-01-21 16:54:49 +01:00
Mike Jolley
d096d17d25
Merge branch 'pr/22488'
2019-01-21 15:39:00 +00:00
Mike Jolley
2d14315f3d
woocommerce_cart_totals_get_item_tax_rates
2019-01-21 15:38:48 +00:00
Mike Jolley
0c9de00b74
Merge pull request #22425 from helgatheviking/issue-21845-b
...
switch woocommerce_ordered_again hook to ref_array
2019-01-21 15:15:54 +00:00
Mike Jolley
c830d429ef
Merge pull request #22435 from zJesusJavier/patch-2
...
Updating Venezuelan Currency
2019-01-21 15:01:18 +00:00
Mike Jolley
944ece0fad
Merge pull request #22414 from woocommerce/update/22406
...
Add a fallback to cURL version check in system status
2019-01-21 15:00:35 +00:00
Mike Jolley
7433dfe6f3
Merge pull request #22424 from Prospress/fix/22422
...
return coupon error messages as text message for alert()
2019-01-21 14:57:34 +00:00
Mike Jolley
120add0bff
Merge pull request #22487 from woocommerce/fix/22485
...
Made municipality address field optional for Latvia.
2019-01-21 14:54:05 +00:00
Gareth Allison
2dcc823e46
Updates mentions of "MailChimp"
...
Updates mentions of "MailChimp" to "Mailchimp" as per their branding guidelines: https://mailchimp.com/about/brand-assets/
2019-01-21 16:34:31 +02:00
Mike Jolley
e91f3b88f5
Merge pull request #22448 from woocommerce/fix/21580
...
Multisite - Load customer data for logged in users regardless of being member of sub-site
2019-01-21 14:21:21 +00:00
Mike Jolley
0c70945bcb
Merge branch 'fix/21580' of https://github.com/woocommerce/woocommerce into fix/21580
2019-01-21 14:05:50 +00:00
Mike Jolley
7db783d7a1
revert admin bar change
2019-01-21 14:05:48 +00:00
Mike Jolley
dc01d1de76
Deprecate delete_version_transients
2019-01-21 13:08:01 +00:00
Mike Jolley
d3ac50d47f
Remove heavy queries from transient cleanup function
...
Remove heavy queries from transient cleanup function
Removes unneccessary loops and heavy queries.
There is a parent update and cache clear which was added in #17141 . This cleanup is handled in `update_attributes` so doing it again here should be unneccessary.
Finally, the layered nav cleanup here can be moved. #22029 notes that this was needed in case of a stock change affecting product visibility. If we move to the data store, we can avoid getting the product here which is slower.
2019-01-21 13:02:31 +00:00
Mike Jolley
7744879326
wc_delete_product_transients for parent
2019-01-21 13:01:18 +00:00
Mike Jolley
8ede6bcb74
Added helpers to clean transients during shutdown and clean layered nav counts
2019-01-21 13:00:21 +00:00
Mike Jolley
c5da2dbcde
Remove unrelated transient
...
wc_count_comments is completely unrelated to products. This can be moved to the transient cleanup tool, because code already exists to clear this cache when needed in WC_Comments.
2019-01-21 12:59:39 +00:00
Rodrigo Primo
eea4810c49
Revert change to defer transient cleanup
...
This commit reverts commits 2f8a3eae49
and 17e97c2580
that were created to defer transient cleanup (see #20537 ) and avoid deadlocks on the wp_options table (see #20528 and #17632 ). The problem is that deferring transient cleanup to a cron job created an issue when creating or importing multiple products at once (see #21100 and https://github.com/woocommerce/wc-smooth-generator/issues/14#issuecomment-413342136 ) and has the potential to impact the checkout as well if we start using more versioned transients for orders.
This problem is happening because when importing or creating multiple products at once, for each product that is created or imported, WooCommerce core enqueues a few 'delete_version_transients' cron events. Events are enqueued faster than they are executed and after a few hundred products are generated, the size of the cron queue, which is stored in a single wp_options entry, starts to impact WordPress performance in general.
To reduce the chance of deadlocks happening again after this change, I already created another PR to optimize the query used to delete transients (#21274 ) by avoiding an unnecessary filesort, and I'm planning, on a subsequent commit, to improve it further by prefixing the transient name with its version instead of suffixing it as it is currently done. But the ultimate solution for high traffic stores is to use a persistent cache plugin.
2019-01-21 12:58:19 +00:00
Mike Jolley
08d7e319b6
Version handling for var prices
2019-01-21 12:56:55 +00:00
Mike Jolley
eabc30be5e
wc_customer_bought_product - move version within transient
2019-01-21 12:38:40 +00:00
Mike Jolley
452bb5b5e7
Include version within transient
2019-01-21 12:31:48 +00:00
Mike Jolley
0cf82b8937
Use fixed transient naming in wc_get_shipping_method_count
2019-01-21 12:05:58 +00:00
Mike Jolley
5280ceb8d9
Improve inline docs in calculate_shipping_for_package
2019-01-21 11:49:44 +00:00
Ron Rennick
b774968c81
set refund prices_include_tax meta to be the same as the order receiving the refund
2019-01-18 23:38:36 -04:00
Ron Rennick
d826aba858
phpcs sniff fixes for wc-order-functions.php
2019-01-18 23:36:46 -04:00
Claudiu Lodromanean
7f78cc3acc
Merge pull request #22334 from Prospress/fix/22326
...
add gutenberg block preprocessor filter to shop page content
2019-01-18 09:29:28 -08:00
Brent Shepherd
2ed2572afe
Clear webhook transients when status changes
...
Background discussion: https://github.com/woocommerce/woocommerce/pull/21427#discussion_r246881785
2019-01-18 14:30:35 +10:00
Brent Shepherd
28ca9f1ec4
Remove unused $wpdb
2019-01-18 14:30:35 +10:00
Brent Shepherd
21d724c65d
PHPCS fixes
...
Add fixes required for Travis to pass the PR, but which aren't
related to the PR diff.
2019-01-18 14:30:35 +10:00
Brent Shepherd
0708c738b9
Only load 100 webhooks per request
...
To avoid slowing down page loads on sites with a large numbers of
webhooks.
2019-01-18 14:30:35 +10:00
Brent Shepherd
9fdbb124ae
Add $limit param to wc_load_webhooks()
...
And the corresponding data stores. Defaults to null, meaning do not
limit, for backward compatibility.
2019-01-18 14:30:35 +10:00
Brent Shepherd
e7a5a2ab2f
Only load active webhooks on each request
...
To avoid slowing down page loads on sites with a large number of
disabled or paused webhooks, which do not need to be loaded or
enqueued.
2019-01-18 14:29:35 +10:00
Brent Shepherd
f86b738db3
Use search_webhooks()
...
To avoid duplicate SQL
2019-01-18 14:29:34 +10:00
Brent Shepherd
67bf101aaf
Add $status param to wc_load_webhooks()
...
And the corresponding data stores. Defaults to '', meaning do not
load only webhooks with a specific status. This maintains backward
compatibility. However, the call to wc_load_webhooks() within
WooCommerce::load_webhooks() can now only load active webhooks, as
they are the only ones that should be enqueued.
2019-01-18 14:29:34 +10:00
Ron Rennick
dad1ffb4c9
use function_exists instead of version_compare
2019-01-17 16:14:53 -04:00
Claudiu Lodromanean
3bb5d2ee79
Merge pull request #22446 from woocommerce/fix/22285
...
Hide 0 costs for local pickup
2019-01-17 12:10:37 -08:00
Rodrigo Primo
29ff0b9b88
fix phpcs errors
2019-01-17 14:55:24 -02:00
Mike Jolley
fa6e2536db
Tweak cost display logic
2019-01-17 13:56:11 +00:00
RobertoDonPedro
3a2b3d10ad
Filter get_item_tax_rates in class-wc-cart-totals.php
...
Adds filter on the return value of function 'get_item_tax_rates' to prevent the mandatory caching of tax rates, described in https://github.com/woocommerce/woocommerce/issues/21855
2019-01-17 13:57:31 +01:00
Peter Fabian
ede86d8307
Made municipality address field optional for Latvia.
2019-01-17 13:18:31 +01:00
Gerhard
98948a2faf
PHPCS fixes
2019-01-17 08:32:42 +02:00
Gerhard
f3d9eeeef3
Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly.
2019-01-17 08:04:57 +02:00
Gerhard
8a685c3303
is_vat_exempt check on orders expect a yes/no and not a bool, save values as string.
2019-01-17 07:46:45 +02:00
Jesús Ramirez
4c8662c7f1
Update wc-core-functions.php
2019-01-16 16:51:07 -04:00
Claudiu Lodromanean
3dee72eddc
Merge pull request #22452 from woocommerce/fix/21700
...
[REST API] Variations endpoint - Removed extra inherited filters from product endpoint
2019-01-16 09:41:40 -08:00
Claudiu Lodromanean
6540e89425
Merge pull request #22445 from woocommerce/fix/21996
...
Change priority of notices on the account page
2019-01-16 09:40:51 -08:00
Claudiu Lodromanean
c2c7cbeccb
Merge pull request #22444 from woocommerce/fix/22119
...
Fix checkout field locales on first load
2019-01-16 09:39:42 -08:00
Claudiu Lodromanean
df2cd4b232
Merge pull request #22439 from woocommerce/fix/22430
...
Make sure WC active before running queries for MS widget
2019-01-16 09:38:24 -08:00
Claudiu Lodromanean
f4d1587652
Merge pull request #22419 from woocommerce/fix/22010
...
Remove on-hold orders from tax reports
2019-01-16 09:37:09 -08:00
Claudiu Lodromanean
989865469e
Merge pull request #22416 from woocommerce/fix/21871
...
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
Claudiu Lodromanean
86f05bbd7a
Merge pull request #22320 from Prospress/fix/22197
...
use slug sanitization on product export category slugs
2019-01-16 09:31:43 -08:00
Ron Rennick
9337ca51e4
add WP version check for short description block filter
2019-01-16 12:49:25 -04:00
Mike Jolley
ca3623fa41
Merge pull request #22461 from woocommerce/fix/21761
...
Bail if getimagesize fails in filter_image_sizes_to_only_missing_thumbnails
2019-01-16 16:37:09 +00:00
Mike Jolley
78ca5c0290
Merge pull request #22277 from johnrom/fix/22276
...
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields
2019-01-16 16:31:18 +00:00
John Rom
741435d816
Switch user meta permissions filter from user data to user id
2019-01-16 11:20:42 -05:00
John Rom
130a36107c
Added filter to the save method so it is not bypassable
2019-01-16 11:00:46 -05:00
John Rom
186a1d5b7e
Combine permission conditions into a single filter provided the default value
2019-01-16 10:56:26 -05:00
plexus admin
9acc7ced5d
Add function wc_get_is_pending_statuses
2019-01-16 09:54:02 -06:00
Mike Jolley
4fc197c67d
Merge pull request #21003 from Chunkford/patch-2
...
Giving the ability to add custom pricing data - read_price_data()
2019-01-16 15:22:40 +00:00
Mike Jolley
1125a5d76d
Merge pull request #22380 from Prospress/fix/22261
...
register order auto drafts post status
2019-01-16 15:11:48 +00:00
Mike Jolley
c70bef3e9c
Merge branch 'pr/22350'
2019-01-16 14:48:14 +00:00
Mike Jolley
2d44e90542
CS
2019-01-16 14:47:59 +00:00
Ron Rennick
bc33f19630
add order draft status filter to allow resuming editing
2019-01-16 09:52:18 -04:00
Mike Jolley
213ba99664
Merge pull request #21961 from sebastianpisula/patch-1
...
New params for woocommerce_shipping_zone_*_methods_table actions
2019-01-16 13:01:45 +00:00
Jesús Ramirez
7e1ef44b02
Update wc-core-functions.php
2019-01-16 08:49:17 -04:00
Mike Jolley
2ea7e4fb6a
woocommerce_display_product_attributes filter
2019-01-16 12:25:19 +00:00
Mike Jolley
766dea1125
Merge pull request #22316 from ictbeheer/master
...
Support for Dutch postcodes
2019-01-16 11:38:21 +00:00
Mike Jolley
50a86a1a33
Merge pull request #21562 from terence1990/feature/rest-api-crud-params-filter
...
Add a filter to WC_REST_CRUD_Controller::get_collection_params method to allow developers to change params
2019-01-16 11:32:03 +00:00
Gerhard
683111b4a5
PHPCS fixes
2019-01-16 11:32:00 +02:00
Gerhard
6b211ab25b
Add increase and decrease stock qty option to bulk product edit.
2019-01-16 11:22:11 +02:00
Gerhard
26f9aad65c
add_meta_data not add_meta
2019-01-16 09:18:54 +02:00
Mike Jolley
f68a547f53
Don't mix session and customer data
2019-01-15 16:49:01 +00:00
Ron Rennick
0f94bed1ec
only add tax when comparing coupon against order
2019-01-15 11:33:44 -04:00
Mike Jolley
d3d1864b4e
Select an option vs state
2019-01-15 15:24:17 +00:00
Ron Rennick
d654107cb0
include taxes in subtotal when validating tax inclusive coupon maximum as well
2019-01-15 10:33:57 -04:00
Ron Rennick
acf46fa28d
phpcs sniff fixes for class-wc-discounts.php
2019-01-15 10:21:21 -04:00
Ron Rennick
5f2bc29e3d
include taxes in subtotal when coupon price includes taxes
2019-01-15 10:17:31 -04:00
Gerhard
6e428e6c58
PHPCS fixes
2019-01-15 15:24:53 +02:00
Gerhard
3e06d94115
If getimagesize fails for some reason, ie plugin using offsite images, just return the original image sizes.
2019-01-15 15:22:12 +02:00
Gerhard
f11613c5e9
Set order vat exempt status to that of customer on checkout.
2019-01-15 13:20:07 +02:00
Claudio Sanches
fbcbd55bf7
[REST API] Removed extra inherited filters from product endpoint
...
Closes #21700
2019-01-14 17:15:23 -02:00
Rodrigo Primo
507f67cb38
Merge pull request #22029 from woocommerce/fix/21429
...
FIx: Delete wc_layered_nav_counts_* transients whenever a product is updated
2019-01-14 15:26:15 -02:00
Mike Jolley
696d042c0e
Merge pull request #22255 from aelia-co/Tweak-wc_get_min_max_price_meta_query-filter
...
Added new filter "woocommerce_get_min_max_price_meta_query"
2019-01-14 17:04:59 +00:00
Mike Jolley
4dbee72c65
Merge pull request #22165 from woocommerce/fix/22089
...
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
2019-01-14 17:02:51 +00:00
Mike Jolley
1f63d59244
Merge pull request #22257 from manchumahara/patch-1
...
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
2019-01-14 17:00:37 +00:00
Mike Jolley
4f4d7e6c9c
API - Rather than error, add users to blog like the checkout does
2019-01-14 16:31:52 +00:00
Mike Jolley
668c078bcf
This check is not needed - super admin should see it only
2019-01-14 16:31:05 +00:00
Mike Jolley
1b337dea64
Load customer data regardless of current blog
2019-01-14 16:30:47 +00:00
Mike Jolley
bd611172c2
Hide 0 costs for local pickup
2019-01-14 15:14:44 +00:00
Mike Jolley
47bd97862a
Change priority of notices on the account page so they appear above forms/content
2019-01-14 15:09:07 +00:00
Mike Jolley
9799301b0a
Add script dep
2019-01-14 14:43:53 +00:00
Mike Jolley
1e563aea29
Use wp_get_attachment_image if we have an attachment based placeholder
2019-01-14 13:55:12 +00:00
Mike Jolley
198fdce1bf
Larger placeholder to allow more resizing
2019-01-14 13:54:01 +00:00
Mike Jolley
549a0f01c0
Placeholders need srcset and sizes
2019-01-14 12:54:54 +00:00
Mike Jolley
510ed70d1e
Fix check during install to create placeholder image.
2019-01-14 11:32:57 +00:00
Gerhard
dc0f8fb696
PHPCS fixes
2019-01-14 09:41:24 +02:00
Gerhard
9d3053ce9a
Check if WooCommerce is active on blog before running WooCommerce queries for the MS widget.
2019-01-14 09:40:04 +02:00
Gerhard
6220399163
Switch to use v3 of the API for network orders.
2019-01-14 09:15:20 +02:00
Jesús Ramirez
88335691cd
Updating Venezuelan Currency
...
The new Venezuelan currency is Bs S
2019-01-13 10:01:37 -04:00
Kathy Daring
1e51bf3e69
switch ordered_again hook to ref_array
2019-01-11 12:14:29 -05:00
Ron Rennick
6b1341138f
phpcs sniff fixes for class-wc-ajax.php
2019-01-11 12:57:33 -04:00
Mike Jolley
5016e4c858
Removed unused query
2019-01-11 16:56:51 +00:00
Mike Jolley
938992cbae
Exit early, add back fallback code
2019-01-11 16:52:57 +00:00
Ron Rennick
641884b71b
return coupon error messages as text message for alert()
2019-01-11 12:50:44 -04:00
Mike Jolley
da80c154fc
Query tweaks
2019-01-11 16:48:05 +00:00
Mike Jolley
4bda1c9cad
Code style improvements
2019-01-11 15:52:43 +00:00
Matthew Rochow
7c50a29d2d
Update class-wc-product-data-store-cpt.php
2019-01-11 14:47:41 +00:00
Matthew Rochow
07b2bcc726
Update class-wc-product-data-store-cpt.php
2019-01-11 14:47:41 +00:00
Matthew Rochow
01d7eaf92f
Update class-wc-product-data-store-cpt.php
...
Updating find_matching_product_variation() function to be faster
2019-01-11 14:47:41 +00:00
Mike Jolley
12a73d4f8d
Clarify how discount is applied
2019-01-11 14:43:32 +00:00
Mike Jolley
940ba59ab5
Merge branch 'fix/21871' into refactor/tax-rounding-methods
2019-01-11 14:09:03 +00:00
Mike Jolley
14b0e87301
Fixes edge case due to orders screen expecting unrounded values.
2019-01-11 14:07:41 +00:00
Mike Jolley
22ce8aa8b8
Order items respect wc_round_tax_total
2019-01-11 13:20:57 +00:00
Mike Jolley
42f77950bd
Make total recalc use unrounded tax values to fix test WC_Tests_Order_Coupons::test_add_coupon_to_order
2019-01-11 13:17:06 +00:00
Mike Jolley
28ac24d870
update_taxes can safely round all values, as lines would already be rounded if applicable
2019-01-11 13:12:31 +00:00
Mike Jolley
50ca24e5d9
set_coupon_discount_amounts should support woocommerce_tax_round_at_subtotal
2019-01-11 13:09:20 +00:00
Mike Jolley
caffa319f4
set_item_discount_amounts should support woocommerce_tax_round_at_subtotal
2019-01-11 13:06:26 +00:00
Mike Jolley
50af71b9bd
Calculated items_subtotal_tax using rounded tax subtotals.
2019-01-11 12:59:23 +00:00
Gerhard
cf38ed4aba
Remove on-hold orders from tax reports as they are not paid yet. Tax reports should only contain paid orders.
2019-01-11 14:44:09 +02:00
Mike Jolley
dabfe66464
Correct use of rounding functions in cart class
2019-01-11 12:41:06 +00:00
Mike Jolley
af3707d75a
Always round to precision. Negate need to call get_tax_total to handle rounding. Instead it just sums.
2019-01-11 12:38:05 +00:00
Gerhard
4c6da744fe
PHPCS fixes
2019-01-11 14:30:13 +02:00
Gerhard
77537d2cd3
Update copy for processing order emails to not mention payment as some stores take payment after orders are placed.
2019-01-11 14:29:21 +02:00
Mike Jolley
11d14b30a4
PHPCS fixes
2019-01-11 12:28:52 +00:00
Mike Jolley
96603720ca
Item subtotal rounding must match cart calc class
...
Fixes #21871
2019-01-11 11:41:22 +00:00
Gerhard
0a5d3b1675
Sort countries based on wc_ascii_uasort_comparison
2019-01-11 13:40:38 +02:00
Gerhard
f8dfac9f48
Add wc_ascii_uasort_comparison function to compare values based on ascii values
2019-01-11 13:18:59 +02:00
Gerhard
11b9f49d18
Add a fallback to cURL version check in system status so it still shows if cURL is installed when the version function is disabled by the host.
2019-01-11 10:38:21 +02:00
Ron Rennick
7657783409
use DateTime function instead of implicit toString
2019-01-10 16:21:43 -04:00
Rodrigo Primo
c15d622dd2
WC_Data::get_id() does not take any parameters
...
This commit removes a parameter from a call to WC_Data::get_id() as this method does not take any parameters
2019-01-10 17:10:13 -02:00
Rodrigo Primo
609430a8f1
Remove unused parameter from WC_Webhook_Data_Store::delete()
2019-01-10 17:08:41 -02:00
Rodrigo Primo
3cf945d5d9
Fix PHPCS errors automatically using phpcbf
2019-01-10 17:07:53 -02:00
Rodrigo Primo
a7463c5535
Merge branch 'master' of github.com:woocommerce/woocommerce
2019-01-10 16:39:22 -02:00
Rodrigo Primo
3b3da24546
Fix typo in inline comment
2019-01-10 16:38:58 -02:00
Rodrigo Primo
c2b49dc6e3
fix phpcs violation
2019-01-10 16:38:26 -02:00
Rodrigo Primo
c82346b095
Restore code to delete wc_layered_nav_counts_* transients
...
Commit a9994feeea
removed the code to delete wc_layered_nav_counts_* transients whenever a product attribute is updated and moved it to wc_delete_product_transients(). This was done to make sure those transients are deleted whenever a product is updated and not only when a product attribute changes. But, as Claudiu pointed out (https://github.com/woocommerce/woocommerce/pull/22029#issuecomment-451473512 ), this change introduced a bug as if you remove an attribute from a product, by the time the code reaches wc_delete_product_transients() the changes have been applied already to the product, the attribute doesn't belong to it anymore, and thus the layered nav counts transient for that attribute is not deleted.
To work around this problem, this commit restores the code that deletes wc_layered_nav_counts_* transients inside WC_Product_Data_Store_CPT::update_attributes(). Now, in most cases, WC will try to delete the same transient twice, but I can't see any other way to implement a solution for the problem above without doing this.
2019-01-10 14:19:03 -02:00
Ron Rennick
6618d1e626
fix merge conflict
2019-01-10 11:22:31 -04:00
Ron Rennick
951b68be48
phpcs sniff fixes for class-wc-widget-price-filter.php
2019-01-10 11:13:50 -04:00
Ron Rennick
1033217860
only hide price filter widget when archive has no products
2019-01-10 11:12:09 -04:00
Mike Jolley
96ba549b2b
Remove type hint
2019-01-10 13:23:49 +00:00
Mike Jolley
f67ab4e447
correct version
2019-01-10 13:20:02 +00:00
Mike Jolley
1815928208
Merge branch 'master' into pr/21217
2019-01-10 13:10:11 +00:00
Mike Jolley
f4ed56a894
Merge pull request #21153 from jamesckemp/patch-12
...
`woocommerce_variation_option_name` Parameters
2019-01-10 12:28:21 +00:00
Gator92
a240623f47
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-10 07:21:34 -05:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
Ron Rennick
0d0f004c66
update default attribute slug when atribute term slug is changed
2019-01-09 15:10:24 -04:00
Rodrigo Primo
519886838c
Merge pull request #21969 from woocommerce/add/21964
...
Add woocommerce_valid_location_types filter
2019-01-09 17:02:20 -02:00
Will Gorham
56fa520b8e
Tests for get_shipping_continents()
2019-01-09 13:31:30 -05:00
Will Gorham
1fc4ef6c59
Clean up docblocks and unused vars
2019-01-09 12:54:37 -05:00
Will Gorham
da6f425488
phpcs
2019-01-09 12:49:11 -05:00
Will Gorham
8051a0b0fc
Only show available shipping continents in zone regions
2019-01-09 12:48:18 -05:00
Mike Jolley
bf5ea249b5
Merge pull request #21991 from johnbillion/21989/user-switching-support
...
User Switching support
2019-01-09 17:01:47 +00:00
Mike Jolley
fe02144d0a
Merge pull request #21927 from woocommerce/add/21925
...
Make links in order notes clickable.
2019-01-09 16:52:37 +00:00
Ron Rennick
1d05cf3d91
phpcs sniff fixes for class-wc-product-csv-exporter.php
2019-01-09 10:21:24 -04:00
Ron Rennick
74c9f16377
use slug sanitization on product export category slugs
2019-01-09 10:17:55 -04:00
Mike Jolley
b4427e0c25
Merge branch 'pr/22298'
2019-01-09 13:51:30 +00:00
Mike Jolley
06b5480f2d
Merge pull request #22071 from Prospress/fix/22060
...
don't html escape sku used in product lookup
2019-01-09 13:07:04 +00:00
Mike Jolley
5820faba78
Merge pull request #21986 from JPry/wc_customer_has_capability_return_doc
...
Use proper return value for wc_customer_has_capability() docblock
2019-01-09 12:10:34 +00:00
Mike Jolley
21d8f74cb3
Merge pull request #22389 from woocommerce/renovate/wp-cli-wp-cli-2.x
...
Update dependency wp-cli/wp-cli to v2
2019-01-09 11:54:11 +00:00
Mike Jolley
8edadae4df
Merge pull request #22123 from helgatheviking/additional-args-for-woocommerce_add_to_cart_redirect
...
Add param for woommerce_add_to_cart_redirect filter
2019-01-09 11:53:26 +00:00
Fitim
a50f279816
Add filters for mail callback and mail callback params in WC_Email::send method
2019-01-09 12:28:32 +01:00
Mike Jolley
2dbdc9d356
Load address from stored customer data for first time, not session.
2019-01-09 11:14:57 +00:00
Renovate Bot
d74ccb991f
Update dependency wp-cli/wp-cli to v2
2019-01-09 02:46:18 +00:00
Ron Rennick
e5b39f12c6
register order auto drafts post status
2019-01-08 16:35:54 -04:00
Ron Rennick
95af4c87f8
phpcs sniff fixes for class-wc-post-types.php
2019-01-08 16:34:24 -04:00
Claudiu Lodromanean
c3050db67c
Merge pull request #22337 from woocommerce/fix/22048
...
Restore non-cart notice printing opportunity during checkout
2019-01-08 12:16:20 -08:00
Mike Jolley
15979d975a
phpcs
2019-01-08 16:56:23 +00:00
pierrebuet
9ca3ae3453
Check for customer before checking for VAT excemption
...
In the actual form, the check done in the function is_taxable() of a shipping method can only be done in the frontend, since WC()->customer must be defined. Checking for a customer before checking the excemption would make the function also callable in the backend for different pre-calculation. If a customer is not defined, an exemption can not exists.
2019-01-08 15:57:21 +00:00
Mike Jolley
ade1021eff
Merge pull request #22205 from woocommerce/fix/22200
...
Introduce wc_is_webhook_valid_status
2019-01-08 15:32:57 +00:00
Mike Jolley
6e5a4201cf
Merge branch 'pr/21635'
2019-01-08 15:30:31 +00:00
Mike Jolley
eef05fafe9
update from master
2019-01-08 15:00:23 +00:00
Mike Jolley
9644241cef
update from master
2019-01-08 14:51:05 +00:00
Mike Jolley
868e7841e6
Merge pull request #21860 from rellect/wc_case
...
Rename wc() to WC() for consistency
2019-01-08 14:29:59 +00:00
Mike Jolley
a69ce0bfcb
Merge pull request #21764 from leewillis77/wc_get_template_filter
...
Allow plugins to filter located template location before failing
2019-01-08 14:23:58 +00:00
Mike Jolley
e31b35597a
Slash meta values to preserve slashes on save
2019-01-08 13:28:26 +00:00
Mike Jolley
a0aa663f29
Attribute post data needs stripslashes
2019-01-08 13:25:27 +00:00
Mike Jolley
b7e5c1b047
Merge pull request #21679 from amielucha/master
...
Fixes typos in class comments.
2019-01-08 11:11:42 +00:00
renovate[bot]
82397c2f7f
Pin dependencies ( #21842 )
2019-01-08 11:07:32 +00:00
claudiulodro
f9b4cced41
Correct number of items added logic in notif
2019-01-07 11:44:13 -08:00
Claudiu Lodromanean
9649759c04
Merge pull request #22331 from woocommerce/fix/22099
...
Check stock status when repopulating items in the cart from an order
2019-01-07 11:41:51 -08:00
Claudiu Lodromanean
2e1e77f6f0
Merge pull request #22330 from woocommerce/fix/21708
...
Add special button style for connect button
2019-01-07 11:40:31 -08:00
Claudiu Lodromanean
3b14bfb90b
Merge pull request #22270 from Prospress/fix/22149
...
strip slashes from tax classes on save
2019-01-07 11:39:35 -08:00
Mike Jolley
00a8972b68
Merge pull request #22230 from Prospress/fix/22129
...
add out of stock criteria to tax_query array instead of replacing it
2019-01-07 16:35:32 +00:00
Mike Jolley
7f71e0abe6
Add missing placeholder
2019-01-07 16:05:35 +00:00
Mike Jolley
04d7e54d42
Set country value when loading fields rather than in template files
2019-01-07 16:04:01 +00:00
Mike Jolley
ce2473e09f
Whenn loading address fields, enforce valid address
2019-01-07 16:03:23 +00:00
Mike Jolley
cb95d31066
Remove repetition from wc_get_customer_default_location and add validity check
2019-01-07 15:01:46 +00:00
Mike Jolley
864e0237c7
Merge remote-tracking branch 'origin' into pr/22125
2019-01-07 14:14:50 +00:00
Mike Jolley
9ce3f408a6
Merge pull request #22344 from woocommerce/fix/breadcrumbdata
...
Product structured data tweak to show both BreadcrumbList and Product structured data.
2019-01-07 13:49:54 +00:00
Mike Jolley
ba5c4c4fbd
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-01-07 13:36:13 +00:00
Mike Jolley
217c039262
Merge branch 'pr/21465'
2019-01-07 13:29:40 +00:00
Mike Jolley
f4dbd5a723
Define consistently
2019-01-07 13:29:09 +00:00
Mike Jolley
848eecf6a6
Merge pull request #21537 from jespervnielsen/patch-2
...
allow-filtering-on-wiget-get_current_page_url
2019-01-07 13:12:43 +00:00
Mike Jolley
6ccf385f8b
Merge pull request #22005 from woocommerce/add/21992
...
Add woocommerce_gallery_image_html_attachment_image_params filter
2019-01-07 13:05:53 +00:00
Mike Jolley
9e1f1f2255
Merge pull request #22160 from bordoni/lib-action-scheduler-php-52
...
Lib Action Scheduler PHP 5.2 Compatible
2019-01-07 12:56:10 +00:00
Mike Jolley
241cf4dece
Merge pull request #21442 from danielbitzer/master
...
Add coupon object param to get coupon data filter
2019-01-07 12:53:04 +00:00
Mike Jolley
4d0306b977
Merge pull request #21402 from xlplugins/master
...
Added new filter to modify order status during orders using cheque as a gateway.
2019-01-07 12:50:35 +00:00
Mike Jolley
0da7f9f06f
Merge pull request #21896 from jespervnielsen/patch-3
...
Add dependency to WC_Product_CSV_Importer_Controller
2019-01-07 12:48:45 +00:00
Mike Jolley
fb9847bcca
Merge pull request #21853 from rellect/incorrect_call
...
Remove non existent parameter
2019-01-07 12:47:40 +00:00
Mike Jolley
6dba8f3b05
Merge pull request #21498 from liquidweb/feature/sanitize-order-id-tests
...
Add tests for wc_sanitize_order_id()
2019-01-07 12:46:11 +00:00
Mike Jolley
83f46aca15
Merge pull request #21887 from hannahswain/patch-1
...
Update external/affiliate URL placeholder from http to https
2019-01-07 12:44:45 +00:00
Mike Jolley
05de936932
Merge pull request #21581 from codemascot/161018-131105-class-wc-ajax.php
...
Removed unnecessary variable.
2019-01-07 12:43:40 +00:00
Mike Jolley
981ddcfe34
Merge pull request #22167 from Prospress/fix/22161
...
Apply email usage restriction comparison to entire string
2019-01-07 12:31:12 +00:00
Mike Jolley
71ab4c78ed
Merge pull request #22168 from woocommerce/fix/rest-api-orderby-slug
...
[REST API] Fixed orderby slug
2019-01-07 12:19:35 +00:00
Mike Jolley
63bd02022f
Merge pull request #22084 from Prospress/fix/22075
...
Remove the stock data type on low stock threshold input which can be empty
2019-01-07 11:41:17 +00:00
Mike Jolley
8ad3491b99
Add option to control if remove personal data bulk action is allowed
2019-01-07 11:22:29 +00:00
Mike Jolley
9245687f6a
Merge remote-tracking branch 'origin/master' into enhancement/erasure-setting-22055
2019-01-07 11:07:12 +00:00
Miguel Pinto
0537145113
Add filter to hash location to change hash format
...
Ability to define a cache version only based on country, and not a region, city, etc.
Improve website performance by decreasing the number of different versions.
In my case, i was able to define v=[country_code] which is more URL friendly.
2019-01-06 13:58:12 +13:00
Claudiu Lodromanean
1612d2a230
Merge pull request #22074 from Prospress/fix/22068
...
ensure product parent exists before getting its image
2019-01-04 09:37:03 -08:00
Claudiu Lodromanean
99da8f4aa4
Merge pull request #22026 from Prospress/fix/21743
...
fix `0` value attribute permalink, property in REST api
2019-01-04 09:35:34 -08:00
Mike Jolley
82365fd6d2
Tweak tax handling when exempt of VAT and woocommerce_adjust_non_base_location_prices is off
2019-01-04 16:46:52 +00:00
Allen Snook
9efd543f73
Correct coding standard violations in pre-existing code
2019-01-04 08:39:57 -08:00
Mike Jolley
0c76db4093
Get instance setting defaults so it shows in customiser before save
2019-01-04 16:11:36 +00:00
claudiulodro
5a005d9ee9
Product structured data tweak
2019-01-04 07:51:22 -08:00
Mike Jolley
2edf517b2e
Update Emogrifier
2019-01-04 14:47:49 +00:00
Brent Shepherd
0593450ed3
Make webhooks scheduled actions unique
...
Fixes #22087
2019-01-04 14:27:08 +00:00
Brent Shepherd
b924e36f11
Fix WC_Action_Queue::get_next() return value
2019-01-04 14:27:01 +00:00
Mike Jolley
502a25a2fa
Merge pull request #22096 from woocommerce/fix/formatted_address_upper
...
Use wc_strtoupper on formatted address
2019-01-04 13:04:08 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Mike Jolley
f1afbcf03a
Single state file to avoid loops and reading multiple files on page load.
2019-01-04 12:04:47 +00:00
Mike Jolley
64aafeca27
phpcs alignment
2019-01-04 11:08:01 +00:00
Mike Jolley
0e43ad40f3
Load all states rather than just from allowed countries
...
Doesn't appear to cause much of a perf issue and doesn't appear to break the UI in any way. If anything, may expose states where not previously seen in some cases but since you can search this shouldn't be problematic.
2019-01-04 11:07:23 +00:00
Mike Jolley
da32fe3b8a
Include country name alongside states so selectwoo can search properly
...
Seems 'alt' was there in the hope select2 would search that but it's not possible without custom matchers. This instead will show state and country like this: `New York, United States.` This lets you find NY by searching for US
2019-01-04 11:05:29 +00:00
Mike Jolley
ff3a852b7f
Zones should use shipping countries, not allowed countries
2019-01-04 11:04:17 +00:00
Mike Jolley
c4e071480a
phpcs
2019-01-04 11:04:12 +00:00
Allen Snook
21441cc441
Restore non-cart notice printing opportunity during checkout
2019-01-03 15:52:45 -08:00
Ron Rennick
0be3c5c690
add gutenberg block preprocessor filter to shop page content
2019-01-03 16:22:55 -04:00
Mike Jolley
6e7e96c624
Check stock status before repopulating cart
2019-01-03 15:30:26 +00:00
Mike Jolley
6c9f9ea424
phpcs
2019-01-03 15:30:21 +00:00
Mike Jolley
58c3731030
Add special button style for connect button
2019-01-03 14:41:09 +00:00
Mike Jolley
cbee6af449
Use helper and return notes.
2019-01-03 13:40:48 +00:00
Mike Jolley
db0850a420
wc_maybe_adjust_line_item_product_stock helper
2019-01-03 13:40:22 +00:00
Mike Jolley
5ef45f51f6
Stock handling in ajax class only
2019-01-03 12:23:49 +00:00
Mike Jolley
5b8f95ea3c
Revert "Add adjust stock handling when deleting items"
...
This reverts commit 0a5c77d93d
.
2019-01-03 11:50:39 +00:00
Mike Jolley
999f744d83
Allow notes to be updated after other order screen events
2019-01-03 11:46:43 +00:00
Mike Jolley
282edab5d6
Revert "Add adjust stock option to order class when adding items"
...
This reverts commit 4a0447a150
.
2019-01-03 11:16:06 +00:00
claudiulodro
3c3894b676
Bump wc_version since 3.6 development has begun
2019-01-02 12:11:35 -08:00
Claudiu Lodromanean
89740f9583
Merge pull request #22204 from woocommerce/fix/22201
...
Restore empty schema support for register_rest_field
2019-01-02 12:03:41 -08:00
Claudiu Lodromanean
87a03b2331
Merge pull request #22189 from Prospress/fix/22186
...
Allow sale price to 23:59:59 on last sale date
2019-01-02 12:02:52 -08:00
Claudiu Lodromanean
34f472fdf2
Merge pull request #22185 from woocommerce/fix/21735
...
Don't wrap layered nav wp_json_encode string in quotes
2019-01-02 12:01:21 -08:00
Claudiu Lodromanean
d1964d5cb5
Merge pull request #22183 from codemascot/fix/22182
...
Fix for issue #22182
2019-01-02 12:00:35 -08:00
Claudiu Lodromanean
2f82039869
Merge pull request #21938 from Prospress/fix/21935
...
Unescape imported escaped CSV formulas in product attributes
2019-01-02 11:59:39 -08:00
Ron Rennick
1a02e9f64a
update variation guid with the id after creation
2019-01-02 14:26:08 -04:00
Mike Jolley
184b121eb8
Use adjust stock handling
2019-01-02 17:09:45 +00:00
Mike Jolley
0a5c77d93d
Add adjust stock handling when deleting items
2019-01-02 17:09:20 +00:00
Mike Jolley
4a0447a150
Add adjust stock option to order class when adding items
2019-01-02 17:04:51 +00:00
Ron Rennick
89855b749d
Only include the network orders widget on the main site dashboard
2019-01-01 16:15:28 -04:00
Ron Rennick
4b44156882
phpcs sniff fixes excluding DB queries
2019-01-01 16:14:02 -04:00
ICT beheer
8eb9393e62
Support for Dutch postcodes
2018-12-30 20:02:59 +01:00
Ron Rennick
3083f05a0c
missed phpcs sniffs
2018-12-27 11:45:12 -04:00
Ron Rennick
9b200b213d
convert newlines to/from \n on export/import
2018-12-26 15:30:40 -04:00
Ron Rennick
c1cb73c00f
phpcs sniff fixes in class-wc-product-csv-exporter.php
2018-12-26 14:54:46 -04:00
Ron Rennick
0e9494ba50
phpcs sniff fixes in class-wc-product-csv-importer.php
2018-12-26 11:22:52 -04:00
Alessandro Morelli
a4c5a34e99
Add a new integration hook to allow removal of cart items when the cart is loaded from the session without triggering preset notices.
2018-12-22 10:25:37 +01:00
John Rom
1055d79301
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields, to bypass manage_woocommerce when editing customer meta fields
2018-12-20 11:06:33 -05:00
Rodrigo Primo
ff74ecec86
Fix orders list in the admin
...
WP 5.0.2, which was released yesterday, sets `$query_vars['post_status']` to an empty string instead of leaving it unset (https://core.trac.wordpress.org/ticket/45719 and https://core.trac.wordpress.org/changeset/44185 ). This change broke the WC orders list in the admin when listing orders of all post statuses as we were checking if `$query_vars['post_status']` was not set to add all order statuses to this variable (125eaaf241/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L799)
).
To workaround this problem, this commit changes the check to verify if `$query_vars['post_status']` is empty instead of verifying if it is not set.
2018-12-20 09:56:02 -02:00
Rodrigo Primo
948a1dc300
Fix PHPCS violations automatically using PHPCBF
2018-12-20 09:48:14 -02:00
Ron Rennick
292c5c5dcc
strip slashes from tax classes on save
2018-12-19 15:22:04 -04:00
Ron Rennick
d1d2c89ca9
convert user creation GMT datestamp to local datetime in API
2018-12-19 13:20:15 -04:00
Rodrigo Primo
125eaaf241
Merge branch 'master' of github.com:woocommerce/woocommerce
2018-12-19 13:31:34 -02:00
Rodrigo Primo
941217719e
phpcs fixes using phpcbf
2018-12-19 13:31:11 -02:00
Rodrigo Primo
cb0c23d6ab
Merge pull request #22244 from faisal-alvi/fix-22234
...
Fix-22234
2018-12-19 12:42:48 -02:00
Rodrigo Primo
0cb992925d
phpcs fix using phpcbf
2018-12-19 12:40:02 -02:00
Sabuj Kundu
f329cb2d75
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
...
Filter woocommerce_get_catalog_ordering_args has only one single argument $args, anyone filter this needs to detect the $orderby and $order value again which is already coded in the method where this filter returns. I hope adding two extra param $orderby and $order will make developer's life easier to hook this filter.
2018-12-18 11:07:18 +06:00
Diego
5970c9d0f5
Added new filter "woocommerce_get_min_max_price_meta_query"
2018-12-17 22:42:35 +00:00
Faisal Alvi
cbafb8e006
Fix-22234
2018-12-17 15:01:05 +05:30
Ron Rennick
771a615328
add out of stock criteria to tax_query array instead of replacing it
2018-12-14 14:52:26 -04:00
Ron Rennick
32ae40ffb0
phpcs sniff fixes for class-wc-widget-products.php
2018-12-14 14:50:58 -04:00
Gerhard
4daafd28e4
v2 API should also use wc_get_webhook_statuses for the enum in the schema status
2018-12-14 08:08:56 +02:00
Ron Rennick
aba43ae6de
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2018-12-13 16:04:53 -04:00
Ron Rennick
50b36e549f
phpcsw sniff fixes for class-wc-product-variable-data-store-cpt.php
2018-12-13 14:35:24 -04:00
Ron Rennick
36c220f0d6
fix merge conflicts, add missing wpdb::prepare
2018-12-13 14:21:25 -04:00
Gerhard
ac9b588147
Remove status check from schema, do checks when updating. Define status schema enum using the wc_get_webhook_statuses method.
2018-12-13 13:05:50 +02:00
Gerhard
189f346c2e
Add unit tests for wc_is_webhook_valid_status
2018-12-12 10:33:52 +02:00
Gerhard
1ac267992d
Add new wc_is_webhook_valid_status and use that for the schema check in the API.
2018-12-12 10:21:59 +02:00
Gerhard
5d22d42c9b
PHPCS fixes
2018-12-12 10:05:03 +02:00
Gerhard
38391f7bbf
Update WC_REST_Controller to apply WP 5.0 fix as per https://core.trac.wordpress.org/attachment/ticket/45220/45220.2.diff
2018-12-12 10:03:22 +02:00
Claudiu Lodromanean
c4ae48597c
Merge pull request #21904 from Prospress/fix/21196
...
allow limited html in `woocommerce_rating_filter_count` filter
2018-12-11 11:18:19 -08:00
Claudiu Lodromanean
c3334302bd
Merge pull request #22108 from woocommerce/fix/meta-queries-REST-API
...
Fixed support for multiple query parameters translated to meta queries via REST API requests
2018-12-11 11:12:56 -08:00
Claudiu Lodromanean
6e457799b3
Merge pull request #21943 from woocommerce/fix/21516
...
Match array keys on lowercase keys before calling set_props
2018-12-11 11:12:22 -08:00
Claudiu Lodromanean
b70fed6868
Merge pull request #21669 from woocommerce/fix/helper-not-able-to-detect-local-woo-plugin
...
Add File Headers filter at 'plugins_loaded' hook so that WooCommerce Helper can detect all locally installed Woo plugins
2018-12-11 11:08:49 -08:00
Claudiu Lodromanean
f6c3766cf0
Merge pull request #22139 from aslamshekh/fixed-wordpress-standard-1
...
Fixed Wordpress standard as per given suggestion on #22122
2018-12-10 14:12:07 -08:00
Claudiu Lodromanean
d1e71994dc
Merge pull request #22170 from faisal-alvi/master
...
`abstract-wc-widget.php` - coding standard fixes
2018-12-10 14:06:38 -08:00
Ron Rennick
b6c614c2af
allow sale price to 23:59:59 on last sale date
2018-12-10 10:37:13 -06:00
Ron Rennick
b8d635a29c
phpcs sniffs in abstract-wc-product.php
2018-12-10 10:34:12 -06:00
Gerhard
7074b0933c
Don't wrap wp_json_encode string in quotes, it already does it for us.
2018-12-10 10:14:56 +02:00
Khan M Rashedun-Naby
50bb510c93
Fix for issue #22182
2018-12-10 00:47:49 +06:00
Ron Rennick
52f13f8708
fix phpcs sniffs in class-wc-widget-rating-filter.php
2018-12-07 09:27:56 -06:00
Rodrigo Primo
0b413351a2
Merge pull request #22031 from Prospress/fix/22027
...
fix PHP 5.2 sniffs in class-wc-install.php
2018-12-07 11:43:46 -02:00
Faisal Alvi
8dbb795610
abs-wc-widget-coding-stds
...
Few coding standard fixes in the file abstract-wc-widget.php
2018-12-07 18:57:03 +05:30
Rodrigo Primo
5da1b72464
Merge pull request #21913 from Prospress/fix/21909
...
Capitalize dashboard widget titles
2018-12-07 11:24:25 -02:00
Claudio Sanches
7cbcaf04e8
Merge pull request #22121 from woocommerce/fix/update-settings-controller
...
Fix updating settings via the API
2018-12-06 16:49:44 -02:00
Ron Rennick
2b74017200
apply usage restriction compare to entire string
2018-12-06 12:32:04 -06:00
Ron Rennick
8c852780ea
phpcs sniff fixes for class-wc-cart.php
2018-12-06 12:31:21 -06:00
Claudio Sanches
fb35324c4f
[REST API] Fixed orderby slug
2018-12-06 16:17:58 -02:00
Rodrigo Primo
522f992bfe
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
...
This commits adds a filter to WC_Product_Data_Store_CPT::search_products() to let third-party code define custom ways to search for products.
2018-12-06 16:08:10 -02:00
Rodrigo Primo
99b633d1e5
Merge pull request #22028 from woocommerce/phpcs-wp-db
...
Update WPCS sniff names
2018-12-06 15:56:12 -02:00
Peter Fabian
dc39d265fd
Merge branch 'master' into fix/update-settings-controller
2018-12-06 16:28:46 +01:00
Gustavo Bordoni
31aded7091
Remove one more PHP 52 incomaptible \
2018-12-06 09:48:18 -05:00
Gustavo Bordoni
98d6a715a2
PHP 5.2 Compatibility
2018-12-06 09:45:09 -05:00
Rodrigo Primo
164758a5f0
Merge pull request #22110 from stromhalm/patch-1
...
Properly close option tag in customer search
2018-12-06 12:18:54 -02:00
Rodrigo Primo
e7296aec03
Merge pull request #22081 from rvdsteege/patch-1
...
Fix incorrect return type documentation for product factory `get_product()`.
2018-12-06 12:09:52 -02:00
Aslam Shekh
0611204238
Fixed Wordpress standard as per given suggestion on here:- https://github.com/woocommerce/woocommerce/pull/22122#issuecomment-444207375
2018-12-05 08:12:57 -08:00
Will Gorham
329d415cfd
When selling to a single country, force user location to that country
2018-12-04 14:47:04 -05:00
Rodrigo Primo
a91bc5b1ec
phpcs fixes using phpcbf
2018-12-04 16:04:24 -02:00
Kathy Darling
eadef501af
need to pass a null parameter in second place where woocommerce_add_to_cart_redirect filter appears to avoid errors.
2018-12-04 11:58:54 -06:00
Kathy Darling
f9fecefb5f
Add product object and add to cart success status as params for woocommerce_add_to_cart_redirect filter
2018-12-04 11:58:14 -06:00
Rodrigo Primo
24fd6f89c6
Merge branch 'master' into phpcs-wp-db
2018-12-04 15:39:19 -02:00
Justin Shreve
379f257e3d
Load the correct class for settings options
2018-12-04 11:20:34 -05:00
Ron Rennick
c1ad273a03
replace all remaining str_replace( 'pa_', ... with wc_attribute_taxonomy_name_raw(...)
2018-12-03 11:32:33 -04:00
Ron Rennick
dc0aeb0553
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for class-wc-rest-products-v2-controller.php
2018-12-03 11:32:19 -04:00
Ron Rennick
33f25f83b5
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for class-wc-admin-importers.php
2018-12-03 11:31:59 -04:00
Ron Rennick
e8ec6df3ff
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for abstract-wc-widget.php
2018-12-03 11:31:47 -04:00
Ron Rennick
e95842228a
phpcs sniff fixes wc-attribute-functions.php, introduct `wc_attribute_taxonomy_name_raw()`
2018-12-03 11:30:26 -04:00
Adrian Jagusch
8732d200e1
Properly close option tag in customer search
2018-12-03 15:27:45 +01:00
Peter Fabian
9547895863
Don't remove existing meta queries via REST API.
2018-12-03 11:52:36 +01:00
Ron Rennick
f9b2ff170f
add missing wpdb::prepare calls
2018-11-30 15:52:20 -04:00
Claudio Sanches
a0e77eb40c
Use wc_strtoupper on formatted address
2018-11-30 15:59:28 -02:00
claudiulodro
5d0d275bec
Remove duplicate sanitizing
2018-11-30 08:49:43 -08:00
claudiulodro
2bccd4899a
Revise to make code cleaner
2018-11-30 08:49:43 -08:00
claudiulodro
d1533261f5
Extra sanitizing around payment_method_title
2018-11-30 08:49:43 -08:00
Ron Rennick
267b5ed569
only include order erasure bulk action if erasure is enabled in settings
2018-11-29 16:20:56 -04:00
Ron Rennick
59c1b2f669
phpcs sniff fixes class-wc-admin-list-table-orders.php
2018-11-29 16:16:51 -04:00
Ron Rennick
b7f87c8cd2
Remove the stock data type on low stock threshhold input which can be blank
2018-11-29 14:58:51 -04:00
Ron Rennick
ef23f0bb8f
fix phpcs passing array arguments to wpdb::prepare
2018-11-29 14:52:52 -04:00
Reüel van der Steege
b433219f71
Fix incorrect return type documentation for product factory `get_product()`.
...
This method returns `false` if the product cannot be loaded, not `null`.
2018-11-29 15:25:24 +01:00
Claudiu Lodromanean
7049cd28e9
Merge pull request #22057 from leewillis77/status-report-plugin-fix
...
"Active plugins" fix for status report
2018-11-28 11:09:26 -08:00
Ron Rennick
548fc72718
ensure product parent exists before getting its image
2018-11-28 14:41:12 -04:00
Ron Rennick
b0b2320559
fix phpcs sniffs in abstract-wc-product.php
2018-11-28 14:34:24 -04:00
Beka Rice
e64c5e1077
Send webhooks for refund creation
2018-11-28 13:32:36 -05:00
Ron Rennick
99a48cc0a0
don't html escape sku used in product lookup
2018-11-28 13:47:27 -04:00
Ron Rennick
ddcfb50d4b
fix phpcs in class-wc-product-csv-importer.php
2018-11-28 13:45:33 -04:00
Claudiu Lodromanean
fd195cfbf6
Merge pull request #21940 from woocommerce/fix/21937
...
Make wc_download_log FK use table prefix
2018-11-28 07:48:05 -08:00
Ron Rennick
9e520af93e
populate default variation attributes when it is the first variation
2018-11-28 11:40:35 -04:00
Ron Rennick
042c61cc5d
fix phpcs sniffs in class-wc-product-variable-data-store-cpt.php
2018-11-28 11:22:07 -04:00
Ron Rennick
3e014ffe62
add is_array check to catalog ordering orderby
2018-11-28 08:51:05 -04:00
Ron Rennick
64621c5b36
fix phpcs sniffs in class-wc-query.php
2018-11-28 08:50:25 -04:00
claudiulodro
d5f7afbff3
Simplify contraint
2018-11-27 11:08:47 -08:00
Claudiu Lodromanean
2e157427fc
Merge pull request #21970 from woocommerce/feature/twenty-nineteen
...
Enhanced compatibility with Twenty Nineteen
2018-11-27 09:13:14 -08:00
Claudiu Lodromanean
ebd6ecb95f
Merge pull request #22009 from woocommerce/php73-wp-nightly
...
Prepare WooCommerce for PHP 7.3
2018-11-27 09:12:39 -08:00
Claudiu Lodromanean
d8119dd1e9
Merge pull request #21865 from Prospress/fix/21857
...
consistent logic on `woocommerce_formatted_address_force_country_display` filter name
2018-11-27 09:12:04 -08:00
Claudiu Lodromanean
f7680ffa36
Merge pull request #22013 from woocommerce/fix/21789
...
Fixed REST API authentication when using 3rd party auth methods
2018-11-27 09:11:37 -08:00
Claudiu Lodromanean
1f00fa9b02
Merge pull request #22050 from woocommerce/fix/21796-2
...
Add hold stock minutes check to order pay shortcode also
2018-11-27 09:11:19 -08:00
Lee Willis
6f24d5b283
Coding standard fix
2018-11-27 12:05:10 +00:00
Lee Willis
0079312e1c
Remove erroneous "break"
2018-11-27 11:20:27 +00:00
claudiulodro
13371c7e8b
Check product exists before getting title
2018-11-26 11:16:58 -08:00
claudiulodro
695d3eb433
Add hold stock minutes check to order pay shortcode also
2018-11-26 11:10:07 -08:00
Ron Rennick
e39a86d4ee
fix PHP 5.2 sniffs in class-wc-install.php
2018-11-23 14:49:08 -04:00
Rodrigo Primo
a9994feeea
Delete wc_layered_nav_counts_* transients whenever a product is updated
...
This commit moves the code to delete wc_layered_nav_counts_* transients from WC_Product_Data_Store_CPT::update_attributes() to wc_delete_product_transients(). This way those transients will be deleted whenever a product is updated and not only when the product attributes are updated. This is needed to make sure that the "Filter Products by Attribute" displays the correct list of attributes when a product changes from out of stock to in stock or vice versa via the "Quick Edit" interface or the WC API.
2018-11-23 15:30:38 -02:00
Rodrigo Primo
8d5b428a29
Update WPCS sniff name from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared
...
The name of the sniff changed in WPCS 1.0
2018-11-23 15:29:53 -02:00
Rodrigo Primo
6ec2b26972
Update WordPress.DB.PreparedSQL.NotPrepared sniff name
...
The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared.
2018-11-23 15:10:52 -02:00
Ron Rennick
45370d3e61
fix `0` value attribute permalink calculation, property population in REST api
2018-11-23 11:13:25 -04:00
Rodrigo Primo
57f44798cb
Fix phpcs violations automatically using phpcbf
2018-11-23 12:57:51 -02:00
Rodrigo Primo
eb76ac9f65
Fix phpcs violations automatically using phpcbf
2018-11-23 12:37:23 -02:00
Rodrigo Primo
242641e931
Merge pull request #21987 from webdados/patch-2
...
Fix Angolan "State" label to "Province"
2018-11-23 11:21:08 -02:00
Rodrigo Primo
05bae41b24
Fix phpcs violations automatically using phpcbf
2018-11-23 11:17:43 -02:00
Rodrigo Primo
76b7f5b381
Merge pull request #21995 from woocommerce/fix/21790
...
When only selling to one country set customer location to that country
2018-11-22 12:06:12 -02:00
Rodrigo Primo
b3bfb77edb
fix phpcs error
2018-11-22 10:58:55 -02:00
Rodrigo Primo
12bac0f2b6
Merge branch 'master' into fix/21790
2018-11-22 10:57:47 -02:00
Rodrigo Primo
a096e2729a
Merge pull request #21936 from woocommerce/fix/21878
...
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-22 10:54:57 -02:00
Claudiu Lodromanean
dd2ef82dc8
Merge pull request #21797 from jdmadison/fix-21796
...
Add woocommerce_hold_stock_minutes check back to calculation
2018-11-21 13:11:20 -08:00
Claudiu Lodromanean
b85598a576
Merge pull request #22001 from woocommerce/fix/21792
...
Fix missing lost password notices
2018-11-21 13:06:39 -08:00
Claudiu Lodromanean
e0cf359378
Merge pull request #22000 from woocommerce/fix/21990
...
Fix arialabelledby attribute for quantity selectors
2018-11-21 13:02:53 -08:00
Claudiu Lodromanean
152b609c35
Merge pull request #21981 from woocommerce/fix/21422
...
Log file timestamp should be UTC
2018-11-21 12:59:46 -08:00
Claudio Sanches
6a21ec401c
Fixed coding standards
2018-11-21 16:12:35 -02:00
Claudio Sanches
fa8ec35006
Fixed REST API authentication when using 3rd party auth methods
...
Closes #21789
2018-11-21 16:10:36 -02:00
John Blackbourn
71def7b5f0
Revert "Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989."
...
This reverts commit b0b36ae4b8
.
2018-11-21 18:50:59 +01:00
Rodrigo Primo
171e90815b
Merge pull request #21985 from webdados/patch-1
...
Fix locale for São Tomé and Príncipe
2018-11-21 15:25:08 -02:00
Rodrigo Primo
c349136273
Merge branch 'master' into php73-wp-nightly
2018-11-21 11:15:48 -02:00
Rodrigo Primo
2c8d006c37
Update PHPCompatibility sniff names
...
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo
bfa9424d17
Update WPCS sniff name
...
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo
e467737653
phpcs fixes
2018-11-21 11:06:42 -02:00
Gerhard
06d7d50f9d
Include main_image variable in the woocommerce_gallery_image_html_attachment_image_params filter.
2018-11-21 13:52:55 +02:00
Gerhard
7e4e0de090
PHPCS fixes
2018-11-21 13:48:35 +02:00
Gerhard
9eb31f5d14
Add woocommerce_gallery_image_html_attachment_image_params filter so you can modify the params passed to wp_get_attachment_image for thumbnails.
2018-11-21 13:47:24 +02:00
Gerhard
f58fcf6b3b
Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices
2018-11-21 10:32:28 +02:00
Gerhard
8d6d95935a
Populare arealabelledby attribute by actually passing the product_name in the $args.
2018-11-21 09:49:38 +02:00
claudiulodro
ebea6b96be
When only selling to one country set customer location to that country
2018-11-20 12:07:57 -08:00
Claudiu Lodromanean
ac80e6683e
Merge pull request #21947 from franticpsyx/issue-21845
...
Refine new order-again logic
2018-11-20 10:53:40 -08:00
Rodrigo Primo
a9e532022a
Replace `continue` inside `switch` statement with `break`
...
PHP 7.3 will generate a warning when `continue` is used inside a `switch` statement. For more information see the relevant section in https://make.wordpress.org/core/2018/10/15/wordpress-and-php-7-3/
2018-11-20 16:24:11 -02:00
John Blackbourn
b0b36ae4b8
Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989 .
2018-11-20 18:58:42 +01:00
John Blackbourn
179aa0853d
Add a public method for forgetting a session without clearing it.
2018-11-20 18:58:14 +01:00
Rodrigo Primo
d29ead0e63
Make Emogrifier regular expressions compatibile with PCRE2
...
In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587 ) instead of updating the library to the yet to be released version 2.1.0.
This change removes the following warning when running WC unit tests using PHP 7.3:
PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504
For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3
2018-11-20 15:54:54 -02:00
Marco Almeida
276d6f3526
Fix Angolan "State" label to "Province"
...
In Angola "states" are called "Províncias" (or "Provinces" in English)
2018-11-20 14:17:11 +00:00
Jeremy Pry
7cc3d098ea
Use proper return value for wc_customer_has_capability() docblock
2018-11-20 08:50:46 -05:00
Marco Almeida
b19941dae4
Fix locale for São Tomé and Príncipe
...
Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label.
2018-11-20 13:29:45 +00:00
Marco Almeida
9282c1a619
Remove postal code for Angola
...
Angola still doesn't have a postcode system in place.
References:
https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola
https://en.wikipedia.org/wiki/List_of_postal_codes
2018-11-20 12:36:45 +00:00
Gerhard
47226ae2bf
PHPCS fixes
2018-11-20 12:54:59 +02:00
Gerhard
c05c17d947
Timestamp should be in UTC since we use date( 'c' ) for outputting the date/time in the file.
2018-11-20 12:46:52 +02:00
Claudiu Lodromanean
0cf264dc72
Merge pull request #21949 from franticpsyx/issue-21948
...
Parse query using '$wpdb->prepare' before querying
2018-11-19 13:13:53 -08:00
Claudiu Lodromanean
b585553ee9
Merge pull request #21864 from Prospress/fix/21457
...
allow export and display of attribute labels containing html special characters
2018-11-19 12:20:41 -08:00
Claudiu Lodromanean
0ddfbbe1ac
Merge pull request #21954 from willgorham/fix/21793
...
Fix hardcoded db table name [Fixes #21793 ]
2018-11-19 12:10:55 -08:00
Claudiu Lodromanean
4d93bf60e1
Merge pull request #21930 from woocommerce/update/21915
...
Add WP 5.0 checks to Wootenberg notices
2018-11-19 11:47:43 -08:00
Claudio Sanches
ff762609e9
Fix how generate pages
2018-11-19 14:25:06 -02:00
Tiago Noronha
89eec8652f
Add support for Twenty Nineteen color scheme option
2018-11-19 15:02:26 +00:00
Gerhard
dbeabd5b09
Add woocommerce_valid_location_types filter
2018-11-19 13:04:58 +02:00
sebastianpisula
9b5e7ae2c6
New params for woocommerce_shipping_zone_*_methods_table actions
...
Add $zone param to woocommerce_shipping_zone_before_methods_table and woocommerce_shipping_zone_after_methods_table action
2018-11-18 12:59:54 +01:00
Karolína Vyskočilová
45d2ddc5e8
phpcbf
2018-11-18 10:58:58 +01:00
Will Gorham
4b1dd35dda
Revert "phpcs" (bc4010) - incorrect phpcs fixes
...
This reverts commit bc4010cfc1
.
2018-11-16 15:20:57 -05:00
Will Gorham
b53fe55299
More phpcs
2018-11-16 14:47:31 -05:00
Will Gorham
bc4010cfc1
phpcs
2018-11-16 14:15:18 -05:00
Will Gorham
20526cba08
Fix hardcoded db table name
2018-11-16 14:15:04 -05:00
Valerie
94275039cd
OBW: Fix ShipStation plugin info so install works
2018-11-16 14:06:58 -05:00
Tiago Noronha
4e01bf18dd
Twenty Nineteen basic styling
2018-11-16 16:38:05 +00:00
Tiago Noronha
3168f13d9d
Skeleton for Twenty Nineteen integration
2018-11-16 16:38:05 +00:00
Manos Psychogyiopoulos
60b84c09aa
Parse query using '$wpdb->prepare' before querying
2018-11-16 16:11:31 +02:00
Manos Psychogyiopoulos
059d803484
Rename 'woocommerce_add_cart_item' to 'woocommerce_add_order_again_cart_item'
2018-11-16 15:27:30 +02:00
Manos Psychogyiopoulos
520a7e1a27
Pass order-again items to 'woocommerce_ordered_again' action
2018-11-16 15:25:35 +02:00
Manos Psychogyiopoulos
c44809422b
Pass order-again cart contents to 'woocommerce_ordered_again' action
2018-11-16 15:23:08 +02:00
Gerhard
b071855632
Some PHPCS fixes
2018-11-16 12:17:33 +02:00
Gerhard
3943ec6395
Convert array keys to lower case before comparing keys to exclude.
2018-11-16 12:13:51 +02:00
Gerhard
f7f7eebc1c
Fix PHPCS issues
2018-11-16 08:29:13 +02:00
Gerhard
92bf56cde0
Add wc_update_352_drop_download_log_fk to the DB update routine.
2018-11-16 08:27:06 +02:00
Gerhard
92e9f2811b
Make the wc_download_log FK use table prefix for cases where multiple single install tables are used in the same DB.
2018-11-16 08:18:25 +02:00
Ron Rennick
900c150569
Introduce `unescape_data` replacing `unescape_negative_number` for consistency with `escape_data` for strings in a CSV context
2018-11-15 15:49:39 -04:00
Ron Rennick
9c3fbc304e
only prepend CSV content triggers with a ' on export
2018-11-15 15:49:25 -04:00
claudiulodro
d09e9eb95c
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-15 11:42:22 -08:00
Claudiu Lodromanean
8f145c70d7
Merge pull request #21934 from Prospress/fix/21931
...
use lower case for Croatian Kuna symbol
2018-11-15 10:51:22 -08:00
claudiulodro
180ead91e4
Update notice wording for wp 5.0
2018-11-15 10:19:51 -08:00
Claudiu Lodromanean
f13c62c5ea
Merge pull request #21928 from woocommerce/fix/21926
...
Initialise $changes before usage.
2018-11-15 10:06:38 -08:00
Claudiu Lodromanean
0f72b5b6b1
Merge pull request #21923 from woocommerce/add/db-upgrade-tools
...
Update database tools option
2018-11-15 10:02:14 -08:00
Ron Rennick
c911d90614
use lower case for Croatian Kuna symbol
2018-11-15 13:36:36 -04:00
Claudiu Lodromanean
314088acad
Merge pull request #21836 from Prospress/fix/21775
...
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-15 09:13:14 -08:00
Claudiu Lodromanean
9fab802ff3
Merge pull request #21706 from nishitlangaliya/issue-21657
...
fix: Various 'Table does not exist' in WooCommerce status
2018-11-15 09:12:51 -08:00
Gerhard
f2230da7d2
Use get_bloginfo( 'version' ) instead of wp_version global
2018-11-15 15:27:58 +02:00
Gerhard
341c0a8277
Add wp 5.0 checks to wootenberg notice checks.
2018-11-15 15:26:19 +02:00
Gerhard
a3f3b282ac
Initialise $changes before usage.
2018-11-15 14:36:56 +02:00
Gerhard
fae1e1cce1
Make links in order notes clickable.
2018-11-15 14:27:26 +02:00
Gerhard
6a2b511731
Change wording to update instead of upgrade.
2018-11-15 12:10:17 +02:00
Gerhard
051fb5be36
Add a Upgrade database option to the tools tab. If clicked it will do a forced DB upgrade.
2018-11-15 12:03:12 +02:00
Gerhard
77309a86c3
When dynamic choosing API class, the comparison should be !== as the lastest version has no v3 in the class name.
2018-11-15 11:15:42 +02:00
Claudiu Lodromanean
c3c84d2573
Merge pull request #21849 from woocommerce/fix/21832
...
Pay pending order, do not check stock when not managing stock
2018-11-14 14:07:04 -05:00
Claudiu Lodromanean
81be4f4795
Merge pull request #21738 from Prospress/issue_21736
...
Add SSL check to dashboard SSL notice
2018-11-14 12:51:50 -05:00
Claudiu Lodromanean
32afd82cfa
Merge pull request #21838 from woocommerce/update/preview
...
Reintroduce Preview button on products
2018-11-14 12:38:29 -05:00
Ron Rennick
d0672b68c6
Capitalize dashboard widget titles
2018-11-14 13:34:15 -04:00
Ron Rennick
8e7715088e
allow limited html in `woocommerce_rating_filter_count` filter
2018-11-13 11:33:44 -04:00
Jesper V Nielsen
a09ddb99dc
Add dependency to WC_Product_CSV_Importer_Controller
...
When using the class WC_Product_CSV_Importer it gives fatal error, when using outsite of controller context, after "WC_Product_CSV_Importer_Controller" is introduced in this class.
This fixes it, and makes sure the external class exists, and is loaded.
2018-11-13 10:18:05 +01:00
Hannah Swain
1e142836b6
Update html-product-data-general.php
...
Changed external/affiliate product URL field's placeholder from http:// to https:// to reflect web preference for https
2018-11-12 13:56:00 +01:00
Joshua Flowers
2a76f0c19d
Add WC_Admin_Taxonomies instance method
2018-11-12 11:30:09 +08:00
Kanishk
ebd08e72b3
Added action on '9' priority
2018-11-10 02:12:09 +05:30
Ron Rennick
5b486a1e2f
allow export and display of attribute labels containing html special characters
2018-11-09 09:17:18 -04:00
Ron Rennick
91ddf1f7c1
make logic consistent with `woocommerce_formatted_address_force_country_display` filter name
2018-11-08 16:35:57 -04:00
Claudiu Lodromanean
f39b006264
Merge pull request #21856 from woocommerce/fix/21763
...
Apply field priority sorting on additional filters
2018-11-08 10:08:14 -05:00
Refael Iliaguyev
127f1cb276
Use WC() instead wc() for consistency
2018-11-08 12:59:07 +02:00
Andrew Benbow
163795b2ab
Add filter to save_payment_method_checkbox
...
Allow the save payment method checkbox to be removed based on payment gateway settings.
2018-11-08 09:15:18 +00:00
Gerhard
879139d81e
Apply priority filtering on additional filters to accomodate pages like my account edit address.
2018-11-07 14:16:05 -05:00
Refael Iliaguyev
e5a8df36e3
Remove non existent parameter
2018-11-07 17:16:57 +02:00
Refael Iliaguyev
d8648f8aa7
Use correct return types
2018-11-07 16:49:41 +02:00
Gerhard
aabae5d21f
On form-pay, do not check for stock if not managing stock or allowing backorders.
2018-11-07 08:54:41 -05:00
Claudiu Lodromanean
452e8bc065
Merge pull request #21831 from jvanderveen/master
...
Fix for: WooCommerce Tax Rates (CSV) import does not work when entered path to file #21826
2018-11-06 16:08:54 -05:00
Kanishk
c7fc4a9521
Refactored code to add filters on plugins_loaded
2018-11-07 02:32:57 +05:30
Claudiu Lodromanean
f4cd63963e
Merge pull request #21821 from woocommerce/fix/21798
...
Display notices in order pay page.
2018-11-06 16:00:13 -05:00
Claudiu Lodromanean
cae710c294
Merge pull request #21810 from ghettifish/master
...
added an error for variation using variation for parent in import and…
2018-11-06 15:56:27 -05:00
Claudiu Lodromanean
5fc9879e1c
Merge pull request #21801 from woocommerce/fix/priority
...
Check priority index before comparing
2018-11-06 15:55:01 -05:00
claudiulodro
0488bcd324
fix typo
2018-11-06 15:53:11 -05:00
Claudiu Lodromanean
900d3bad93
Merge pull request #21778 from woocommerce/fix/21426
...
Make get_on_sale_products not include non published parent results
2018-11-06 15:50:31 -05:00
Ron Rennick
e3f00a6fbd
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-06 16:43:46 -04:00
claudiulodro
510d3a756f
Reintroduce Preview button on products
2018-11-06 15:28:23 -05:00
Kanishk
b5b60c93b7
Merge branch 'master' into fix/helper-not-able-to-detect-local-woo-plugin
2018-11-07 01:46:31 +05:30
jvanderveen
c205cab470
Update class-wc-tax-rate-importer.php
2018-11-06 15:01:44 +01:00
Nicolas Bovee
b7ef951ac0
Revised error message and set is_type method on .
2018-11-05 23:19:10 -07:00
Claudio Sanches
c9d62e506a
Use hook instead
2018-11-05 18:40:00 -02:00
Claudio Sanches
0da8f23253
Display notices in order pay page.
...
Closes #21798
2018-11-05 18:35:23 -02:00
Claudiu Lodromanean
b551f57173
Merge pull request #21769 from nishitlangaliya/issue-21765
...
fix: Manually adding fee on order generate html code
2018-11-05 15:27:33 -05:00
Claudio Sanches
2c61e103fe
Use correct block for default pages
2018-11-05 14:45:48 -02:00
Nico Mollet
0dcf6e2796
"account erasure request" text is not translatable
...
`esc_html__` should be used instead of `esc_html`
2018-11-05 14:47:28 +01:00
Nicolas Bovee
fe5f2d411b
added an error for variation using variation for parent in import and removed @access on 87
2018-11-04 23:34:17 -07:00
roykho
800ed5fe73
Check priority index before comparing
2018-11-03 08:13:14 -07:00
Jeremy Madison
17c43ffa5d
Add woocommerce_hold_stock_minutes check back to calculation
2018-11-02 12:25:58 -07:00
nishitlangaliya
b7cf72d626
fix: save fee name without html from base source
2018-11-03 00:19:30 +05:30
claudiulodro
b0b3ddccb0
remove extra parens
2018-11-02 10:21:30 -07:00
claudiulodro
0fa1448cfe
Topic blacklist
2018-11-02 10:21:30 -07:00
Claudio Sanches
a1875a135e
Added exception for when a non-admin user tries assign API keys to an admin
2018-11-02 10:21:18 -07:00
Claudio Sanches
8618d9a976
Fixed coding standards
2018-11-02 10:21:18 -07:00
Claudio Sanches
7437289418
Check for permissions before allow edit REST API keys
2018-11-02 10:21:18 -07:00
Claudio Sanches
58d2fc85ed
Fixed permission check to allow list customers
2018-11-02 10:21:08 -07:00
Claudio Sanches
8c908b178e
Fixed permission check on customers endpoint for legacy REST API
2018-11-02 10:21:08 -07:00
Claudio Sanches
246cc569f3
Allow shop managers to only manipulate customers on REST API
2018-11-02 10:21:08 -07:00
Claudio Sanches
fff05e9434
Included sanitization for product's description on legacy REST API
2018-11-02 10:20:55 -07:00
Claudiu Lodromanean
ecdffab309
Merge pull request #21641 from jamsheerkrd/master
...
Update abstract-wc-data.php
2018-11-02 09:04:34 -07:00
Sławek Amielucha
e996166cdb
Merge pull request #1 from woocommerce/master
...
Sync with WC
2018-11-02 17:02:30 +01:00
Jamsheer
95f639ad92
Update abstract-wc-data.php
2018-11-02 20:43:58 +05:30
Claudiu Lodromanean
00d254ac18
Merge pull request #21715 from angelleye/21714
...
Sets signature field type to password for security, resolves #21714
2018-11-02 08:09:56 -07:00
Claudiu Lodromanean
4aad055e62
Merge pull request #21696 from siananda/fix-21652
...
Prevent deleting default product category via REST API
2018-11-02 08:09:21 -07:00
Gerhard
2aa39507f7
Do not include products who's parents are not in publish status to be part of the get_on_sale_products results
2018-11-01 12:01:59 +02:00
angelleye
f995c2e070
Changes field type to password for live Signature field, resolves #21714
2018-10-31 12:32:40 -05:00
Claudiu Lodromanean
696e22f013
Merge pull request #21763 from woocommerce/fix/checkout-field-priority
...
Checkout fields priority refactor
2018-10-31 09:11:47 -07:00
nishitlangaliya
4acf8b80cd
fix: Manually adding fee on order generate html code
2018-10-31 21:32:31 +05:30
Claudiu Lodromanean
f973d0bed2
Merge pull request #21745 from woocommerce/fix/21697
...
Make easy to register new REST API versions into webhooks
2018-10-31 08:51:24 -07:00
Claudiu Lodromanean
73c8c99607
Merge pull request #21740 from woocommerce/revert/17895
...
Revert PR #17895
2018-10-31 08:50:51 -07:00
Claudiu Lodromanean
175991b5db
Merge pull request #21690 from woocommerce/fix/21684
...
Do not include strong tags as part of translation string on subscriptions disconnect message
2018-10-31 08:49:42 -07:00
Lee Willis
b826a80e93
Allow plugins to filter located template location before failing
2018-10-31 09:48:29 +00:00
Gerhard
c356f3d053
Sort checkout fields using PHP and not JS on initial page load as it causes issues as per #20640
...
Co-authored-by pierrebuet
2018-10-31 08:14:50 +02:00
Gerhard
7d060949ad
Convert wc_product_attribute_uasort_comparison to use wc_uasort_comparison
2018-10-31 07:41:01 +02:00
Gerhard
f844582976
Convert wc_shipping_zone_method_order_uasort_comparison to use wc_uasort_comparison
2018-10-31 07:40:08 +02:00
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