Gerhard Potgieter
9ef6ea0be7
Merge pull request #22611 from woocommerce/performance/wp-profile-conflict
...
apply_filters_deprecated to avoid conflict with wp profile
2019-02-07 15:39:59 +02:00
Mike Jolley
889cf64ac4
Merge branch 'performance/wc-get-product-class'
2019-02-07 13:34:18 +00:00
Peter Fabian
c1d82478a6
Added check for POST variable existance.
2019-02-07 13:39:47 +01:00
nishitlangaliya
f69ac18ccd
fix: default value passed to sorting dropdown
2019-02-07 13:26:43 +05:30
Mike Jolley
4b485eba13
Fixed unit tests
2019-02-06 21:00:07 +00:00
Mike Jolley
e604a3ae24
correct id without $post
2019-02-06 19:57:06 +00:00
Claudiu Lodromanean
2d2d7a7053
Merge pull request #22613 from woocommerce/performance/set-props
...
Performance: `set_props`
2019-02-06 10:02:54 -08:00
Gerhard Potgieter
b7971bd0dc
Merge pull request #22632 from woocommerce/fix/22552-screen-reader-ratings
...
Accessibility: Add a screen reader label for product rating star icons
2019-02-06 15:40:26 +02:00
Gerhard Potgieter
4e311b944f
Merge pull request #22666 from woocommerce/update/21101
...
Prevent multiple cookie sets per request
2019-02-06 15:40:04 +02:00
Mike Jolley
00b48febac
Merge branch 'update/versioned-transients-alt'
2019-02-06 13:18:50 +00:00
Mike Jolley
89ac0dfdf0
Merge pull request #22668 from woocommerce/fix/22443-tests
...
Fixes #22443 tests
2019-02-06 12:46:50 +00:00
Mike Jolley
ec7db6de06
Simplify check
2019-02-06 12:46:36 +00:00
Mike Jolley
cb4bf5d1e5
Fix unit tests
2019-02-06 12:44:24 +00:00
Mike Jolley
7f0ac47291
Fix callback args
2019-02-06 12:15:29 +00:00
Frédéric Demarle
03a60fddfc
Ignore WordPress.DB.PreparedSQL.NotPrepared
2019-02-06 10:24:41 +01:00
Frédéric Demarle
6e4854b3aa
Add filter woocommerce_update_product_stock_query
2019-02-05 20:29:45 +01:00
Mike Jolley
b2542d7e8c
Missing rest api class in wizard
2019-02-05 17:41:17 +00:00
Mike Jolley
4635ccc04f
Check we have a valid attachment
2019-02-05 14:11:16 +00:00
Mike Jolley
ac29feac7c
header_register_callback to set cookies before headers are sent (if supported)
2019-02-05 13:03:16 +00:00
Mike Jolley
d004150d71
Only set and unset cookies if the values change
2019-02-05 13:02:52 +00:00
Mike Jolley
c88a92144b
Only update session cookie if the value changes
2019-02-05 13:02:20 +00:00
Mike Jolley
b091a0975d
Switch span to paragraph
2019-02-05 11:28:46 +00:00
Mike Jolley
86d192b0b4
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-05 11:02:37 +00:00
Mike Jolley
592e0abe22
Merge branch 'pr/22596'
2019-02-05 11:02:29 +00:00
Mike Jolley
d082c7dfa5
Swap to wp_strip_all_tags
2019-02-05 11:02:21 +00:00
Mike Jolley
250e9ff423
Merge pull request #22609 from woocommerce/fix/22545
...
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-05 11:00:35 +00:00
Mike Jolley
6a3d79f677
Merge pull request #22638 from sultann/master
...
fix wrong variable checking
2019-02-05 10:53:53 +00:00
Mike Jolley
d644f84e42
Merge pull request #22624 from tivnet/patch-6
...
WC_Log_Handler_File::remove - fix for MS Windows
2019-02-05 10:49:25 +00:00
Mike Jolley
becd76d74f
Merge pull request #22649 from woocommerce/fix/obw-storefront-not-offered-with-wp-5-default-theme
...
OBW: Offer Storefront when WP 5.0 default theme is active
2019-02-05 10:43:46 +00:00
Mike Jolley
5f5272ba2e
Merge pull request #22541 from woocommerce/pr/20830
...
Init cart widget when added to sidebar via the customizer
2019-02-05 10:39:29 +00:00
Mike Jolley
c7d2b1ac9b
Merge pull request #22646 from woocommerce/fix/22118
...
Fix Hold-stock behavior between simple products and variable products
2019-02-05 10:37:45 +00:00
Ron Rennick
7b5810d3da
limit page 2 not showing products to shop showing subcategories
2019-02-04 13:52:06 -04:00
Ron Rennick
249bf99df5
phpcs sniff fixes for class-wc-product-data-store-cpt.php
2019-02-04 12:55:21 -04:00
Ron Rennick
e64914bb3c
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-04 12:54:33 -04:00
Mike Jolley
ebdeab4c22
Added woocommerce_paypal_force_one_line_item filter
2019-02-04 16:31:17 +00:00
Mike Jolley
c47a6b9172
Tools and status require rest API init
2019-02-04 16:04:25 +00:00
Mike Jolley
53b9e219e7
Add notice when registration is complete
2019-02-04 15:49:10 +00:00
Mike Jolley
eed91070b1
Allow notice to persist after customer ID change
2019-02-04 15:48:59 +00:00
Mike Jolley
5b3b285a9d
phpcs
2019-02-04 15:31:35 +00:00
Paul Dechov
4164305b3c
OBW: Offer Storefront when WP 5.0 default theme is active
...
Because the OBW hadn't been updated to consider Twenty Nineteen a default theme, Storefront was omitted from the 'Recommended' step on the basis of Twenty Nineteen's WooCommerce support.
2019-02-04 09:58:39 -05:00
Mike Jolley
600510ea6f
Using wrong post type name in comparison
2019-02-04 13:56:35 +00:00
Mike Jolley
0f731d9c3f
Merge pull request #22642 from nishitlangaliya/issue-22601
...
fix:No alert for mis-matched password reset
2019-02-04 13:41:32 +00:00
Mike Jolley
1928f34699
Add notice hash to store notice cookie
...
Closes #21963
2019-02-04 13:18:09 +00:00
Mike Jolley
893b33973c
Merge branch 'fix/22147'
2019-02-04 13:05:40 +00:00
Mike Jolley
a5d62b83a8
Merge branch 'enhancement/woocommerce_display_product_attributes'
2019-02-04 11:25:13 +00:00
Mike Jolley
34dbf96847
Merge pull request #22410 from woocommerce/remove/simplify-commerce
...
Remove simplify commerce gateway from core
2019-02-04 11:23:23 +00:00
Mike Jolley
fe2e70d7dc
Merge pull request #22392 from woocommerce/fix/checkout-shipping-address-20975
...
For logged in customers, pull default address fields from customer object, not session object
2019-02-04 11:23:03 +00:00
Mike Jolley
24bc59a025
Merge pull request #22443 from woocommerce/fix/21705
...
Placeholder resizing improvements
2019-02-04 11:13:49 +00:00
Mike Jolley
7a1536eb5b
Merge pull request #22615 from woocommerce/performance/rest-api-includes
...
Performance: rest api includes
2019-02-04 11:12:12 +00:00
Mike Jolley
a4acf5643a
Merge pull request #22533 from woocommerce/fix/21265
...
Exclude `paged` from price slider
2019-02-04 10:18:51 +00:00
nishitlangaliya
e375ffd6e7
fix:No alert for mis-matched password reset
2019-02-04 12:02:59 +05:30
MD Sultan Nasir Uddin
527c7bc03a
fix wrong variable checking
2019-02-02 15:54:33 +06:00
Mike Jolley
7093c652e7
Add localisation to new label
2019-02-01 17:13:41 +00:00
Mike Jolley
a0f47fb429
404 on endpoints
2019-02-01 16:56:00 +00:00
Mike Jolley
5825a66a30
Cleanup method
2019-02-01 16:55:51 +00:00
Kelly Dwan
a2d5d3dff7
Accessibility: Add a label for product rating star icons
2019-02-01 11:47:14 -05:00
Mike Jolley
ebabb0a767
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-01 16:10:24 +00:00
Mike Jolley
b694dffd1c
Merge branch 'add/22552'
2019-02-01 16:10:21 +00:00
Mike Jolley
e3f2cad544
Remove escape
2019-02-01 16:10:14 +00:00
Mike Jolley
aeb64b62bf
Merge pull request #22584 from jobthomas/jobthomas-ssr-urls
...
System Status URL naming and sorting now following WP core
2019-02-01 14:50:50 +00:00
Mike Jolley
d09b539f4b
Merge pull request #22621 from woocommerce/fix/22442
...
Implement main_query parameter in get_meta_query
2019-02-01 14:41:26 +00:00
Mike Jolley
8b7414cfb5
Apply fix to rating filter
2019-02-01 14:13:37 +00:00
Mike Jolley
a0d8a17900
fix name fallback
2019-02-01 13:59:09 +00:00
Ron Rennick
e1213f8432
remove the WP main query check
2019-02-01 09:49:31 -04:00
Mike Jolley
b64fad99f5
ordering fallback
2019-02-01 13:13:41 +00:00
Mike Jolley
3697f5104a
fix uncat display
2019-02-01 13:08:04 +00:00
Gregory Karpinsky
a7bee0325d
WC_Log_Handler_File::remove - fix for MS Windows
...
WC_LOG_DIR is defined with Unix slashes at the end. The `realpath` has Windows slashes and therefore `stripos` never works.
Consider also fixing slashes here:
`$this->define( 'WC_LOG_DIR', $upload_dir['basedir'] . '/wc-logs/' );`
2019-01-31 21:23:22 -05:00
Mike Jolley
40694118fc
Merge branch 'pr/21050'
2019-01-31 15:47:52 +00:00
Mike Jolley
a68ed39e63
use cart hash method on checkout
2019-01-31 15:46:41 +00:00
Mike Jolley
25ebc45fbc
Make consistent with checkout and rename filter
2019-01-31 15:46:26 +00:00
Ron Rennick
9855a18036
phpcs sniff fixes for class-wc-query.php
2019-01-31 11:18:19 -04:00
Ron Rennick
f5f020e6f4
add logic for $main_query parameter in get_meta_query
2019-01-31 11:15:14 -04:00
Galen Wright-Watson
64c76ee8b9
Adds filter for product categories displayed by `product_categories` shortcode.
2019-01-31 15:01:33 +00:00
Mike Jolley
effa51829c
Merge pull request #22573 from outis/fix-expired-link
...
Fix: #22572-can't access settings ("The link you followed has expired")
2019-01-31 14:50:36 +00:00
Mike Jolley
1e3e5a4528
Merge pull request #22580 from woocommerce/fix/22515
...
recalculate coupons after adding coupon to order
2019-01-31 14:38:59 +00:00
Mike Jolley
5e9253980b
Merge pull request #22566 from jenkoian/change-for-network-media-library-compatibility
...
Remove possibe superfluous wp_attachment_is_image() filter.
2019-01-31 14:20:35 +00:00
Mike Jolley
8ed1dacdc9
Merge pull request #22581 from woocommerce/fix/22561
...
include refunded orders in top sellers, earners in sales by product report
2019-01-31 13:51:51 +00:00
Mike Jolley
8c860c65bd
Merge pull request #22554 from woocommerce/fix/seo
...
Better `@id` generation for product structured data
2019-01-31 13:47:08 +00:00
Mike Jolley
ea0e8155eb
Merge pull request #22553 from woocommerce/fix/22449
...
use `name` for POST/PUT category image name for consistency
2019-01-31 13:46:33 +00:00
Mike Jolley
1dea9d6f48
Merge branch 'enhancement/21758'
2019-01-31 13:44:35 +00:00
Mike Jolley
74cd1ced37
Merge branch 'fix/20710'
2019-01-31 13:37:02 +00:00
Mike Jolley
a77578a989
Merge pull request #22347 from woocommerce/fix/20911
...
Tweak tax handling when exempt of VAT and woocommerce_adjust_non_base…
2019-01-31 13:33:36 +00:00
Mike Jolley
effb7b0a64
Merge pull request #22342 from woocommerce/update/22315
...
Update Emogrifier
2019-01-31 13:32:36 +00:00
Mike Jolley
a9bc5cf5ae
Merge pull request #22421 from woocommerce/update/22034
...
Clarify how discount is applied
2019-01-31 13:30:25 +00:00
Mike Jolley
7df55922ae
Merge pull request #22587 from woocommerce/performance/prime-variation-cache
...
Prime caches when reading variations
2019-01-31 13:29:28 +00:00
Mike Jolley
cb59b2c1d2
Merge pull request #22594 from woocommerce/fix/22583
...
Keep track of reload checkout when doing ajax order review
2019-01-31 13:28:29 +00:00
Mike Jolley
f7f2b99211
Merge pull request #22551 from princeahmed/master
...
Fix test get request
2019-01-31 13:11:03 +00:00
Shubham Mathur
1f21fd86c5
Fix for images with no metadata ( #22562 )
...
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
2019-01-31 13:01:59 +00:00
Mike Jolley
133d108bd8
Merge pull request #22269 from Prospress/fix/22247
...
convert user creation GMT datestamp to local datetime in API
2019-01-31 12:56:40 +00:00
Mike Jolley
808c90b5df
Merge pull request #22605 from woocommerce/add/22579
...
Filter for modifying the user queries on customer reports
2019-01-31 12:49:28 +00:00
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
Peter Fabian
bfcb709eef
Added initial fill of attribute values for variations in the init procedure.
2018-11-30 13:54:21 +01: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
Peter Fabian
9389cf4089
Added storing attribute values as post_excerpt for variations.
...
This allows searching for variations by their attributes without cluttering the Variation's title.
2018-11-29 17:33:16 +01: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
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