Gerhard Potgieter
b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
...
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard
486321161c
Update usage of get_used_coupon_codes to get_coupon_codes
2019-05-14 11:21:27 +02:00
Gerhard
efe3e4c5d6
Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes.
2019-05-14 11:19:48 +02:00
Tatu
44c6d0b36c
Compatibility for persistent cart disabled case
...
If woocommerce_persistent_cart_enabled filter was set to false the cart would be emptied while logged in. This fixes also that case. Now the guest session is removed from the woocommerce_sessions table after successful login whether the persistent cart is set enabled or disabled and the guest session cart is carried over to logged in user session.
2019-05-14 11:24:21 +03:00
Daniel Bitzer
0705730121
Add WC_Abstract_Order::get_coupons()
2019-05-14 15:46:48 +09:30
Gerhard
b694efcb63
Klarna should not be featured.
2019-05-14 07:36:15 +02:00
James Allan
45b461639e
Calculate base store taxes including the store's zip and city
2019-05-14 13:43:57 +10:00
Gerhard
e131b01133
Modify payment gateway placement, defaults and new logos.
2019-05-13 15:54:44 +02:00
Gerhard
31acfbcb4a
Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better.
2019-05-13 14:40:54 +02:00
Tatu
71e94e9c08
Add mention of $old_session_key parameter
2019-05-13 15:20:39 +03:00
Tatu
bfad881f32
Removes the $old_session_key default value
...
Fix for the issue #23686
2019-05-13 14:27:28 +03:00
Tatu
4266cc9eaa
Update class-wc-session-handler.php
2019-05-13 12:27:01 +03:00
Gerhard
36cab83d76
Update out of stock dashboard widget to use same query as in reporting, this only counts published products.
2019-05-13 11:02:50 +02:00
Tatu
4a725f3f3e
Delete guest session after user logs in
...
Logging in to the user account makes a copy of the guest session and possible cart content. This causes conflicts in situations where there are only single quantities of products left and real time product availability checks are in place. While this kind of single quantity items are at time in two carts for the same visitor the checking of product availability fails. Deleting the same visitors guest cart solves this issue.
2019-05-13 02:14:52 +03:00
Hassan Yousefi
a50464d781
WC_Structured_Data::generate_product_data() no more hooked in to woocommerce_shop_loop ,which has been removed in #22912
2019-05-11 20:45:54 +04:30
Claudio Sanches
c96ed877af
Merge pull request #23660 from gocodebox/master
...
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Gerhard Potgieter
249ee5ecda
Merge pull request #23478 from woocommerce/fix/23476
...
Force delete rather than trash variations on product type change
2019-05-10 11:41:14 +02:00
Gerhard Potgieter
a228975801
Merge pull request #23671 from woocommerce/fix/wc-tracker-order-totals
...
Corrects WC Tracker's order total calculation.
2019-05-10 11:23:55 +02:00
Gerhard Potgieter
64a76ea0fa
Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
...
WC Update CLI DB Version
2019-05-10 11:21:58 +02:00
Gerhard Potgieter
b9a75c474a
Merge pull request #23579 from n-dawson/fix-23578
...
Fixes #23578 - Check taxes enabled before adding totals row to order
2019-05-10 11:21:19 +02:00
Gerhard Potgieter
32769d0d76
Merge pull request #23625 from woocommerce/fix/23549
...
Use attribute's orderby option to sort terms in product's edit screen
2019-05-10 11:19:08 +02:00
Gerhard Potgieter
18e2332cfc
Merge pull request #23590 from woocommerce/fix/23587
...
Stock sorting issue when Yoast installed
2019-05-10 11:17:26 +02:00
Gerhard Potgieter
8c665d6572
Merge pull request #23615 from parmarhardip/23596
...
#23596 - I have solve this issue.
2019-05-10 11:16:06 +02:00
Gerhard Potgieter
902cc1f0b0
Merge branch 'master' into fix/23606
2019-05-10 11:12:54 +02:00
Gerhard Potgieter
46bcf42559
Merge pull request #23611 from woocommerce/fix/23583
...
Prevents undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-10 11:02:13 +02:00
Gerhard Potgieter
364093056d
Merge pull request #23580 from woocommerce/report-bug-link
...
Change the link of the "Report a bug" button
2019-05-10 10:59:24 +02:00
Gerhard Potgieter
0e80030f0b
Merge pull request #23601 from woocommerce/fix/23547
...
Fix to show WC plugin updates in System status report
2019-05-10 10:57:47 +02:00
Gerhard Potgieter
984357fb41
Merge pull request #23597 from woocommerce/fix/23509
...
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter
6fc498e0d9
Merge pull request #23528 from parmarhardip/23521
...
Fixes #23521 - Billing Email and Country now autofill for newly regis…
2019-05-10 10:48:13 +02:00
Gerhard Potgieter
d2c7d8c86e
Merge pull request #23535 from woocommerce/fix/23518
...
Fix: parameter values should be converted back as well when building form fields
2019-05-10 10:43:28 +02:00
Gerhard Potgieter
ab90cefad4
Merge pull request #23519 from woocommerce/fix/OBW-tracks-scripts
...
Tracks: Fix OBW scripts
2019-05-10 10:41:37 +02:00
Gerhard Potgieter
81bfb9cacb
Merge pull request #23529 from woocommerce/update/23512
...
Define $wpdb tables as early as possible, before init
2019-05-10 10:38:15 +02:00
Gerhard Potgieter
07ea25377a
Merge pull request #23517 from woocommerce/fix/23506
...
Fix dismiss button in two WC admin notices
2019-05-10 10:37:01 +02:00
Gerhard Potgieter
250d891c48
Merge pull request #23515 from woocommerce/fix/default-api-version-webhooks
...
Bump default WC API version used when creating webhook
2019-05-10 10:34:43 +02:00
Gerhard Potgieter
002b5ebade
Merge pull request #23499 from woocommerce/fix/23497
...
[3.6.x] Stop removing backslash from passwords
2019-05-10 10:30:13 +02:00
Gerhard Potgieter
af574f6484
Merge pull request #23456 from woocommerce/fix/23447
...
Disable export of scheduled action posts
2019-05-10 10:27:34 +02:00
Gerhard Potgieter
df7d82f744
Merge pull request #23429 from dimadin/rs/address-format
...
Add address format for Serbia
2019-05-10 10:23:06 +02:00
Gerhard Potgieter
5c630271c8
Merge pull request #23430 from dimadin/rs/no-states
...
Do not use state for Serbia
2019-05-10 10:18:11 +02:00
Thomas Patrick Levy
4e58b098e5
update filter
2019-05-09 15:49:03 -07:00
Claudio Sanches
04c598be09
Revert sanitization
2019-05-09 17:28:19 -03:00
Claudio Sanches
caf68b1405
Sets $new_user_args as array by default
2019-05-09 17:08:15 -03:00
Claudio Sanches
96c65d1a4d
Uses "." instead of empty spaces to join words and avoid illegal username
2019-05-09 17:04:48 -03:00
Claudio Sanches
fb8af18eb4
Sanitize only one time
2019-05-09 17:04:27 -03:00
Claudio Sanches
b8d86ccce3
Introduced new woocommerce_new_customer_username filter
2019-05-09 17:02:47 -03:00
Claudio Sanches
20cd0152e8
Improve woocommerce_generated_customer_username filter
2019-05-09 17:01:30 -03:00
Claudio Sanches
c2836c5e75
Try prevent errors caused by illegal logins
2019-05-09 16:56:47 -03:00
Dan Wyman
6123c6066d
Corrects WC Tracker's order total calculation.
...
Fixes #23669
2019-05-09 12:03:33 -07:00
Rodrigo Primo
84f0f4ebea
Bump WC version since 3.7.0 development has begun
2019-05-09 15:14:34 -03:00
Gerhard
84b75c31ad
Three equals
2019-05-09 12:57:25 +02:00
Gerhard
c633c46045
When no update is found then just call WC_Install::update_db_version(); to ensure db version is set to current WC version, same as per WC_Admin_Notices::update_notice
2019-05-09 11:24:49 +02:00
Thomas Patrick Levy
57bbcf94b7
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-08 17:35:28 -07:00
Mike Jolley
6c3e1bbd01
Set register_rest_route override to TRUE
2019-05-08 11:27:26 +01:00
Gerhard
48e0a25f2f
Add woocommerce_product_post_type_link_parent_category_only to only include the parent category in the slug instead of parent/child
2019-05-07 15:51:49 +02:00
Gerhard
af678dfc84
Switch paypal capture_payment method to use woocommerce_order_status_processing and woocommerce_order_status_completed instead to avoid issues with custom from status transitions.
...
Update get_post_meta usage with $order->get_meta instead.
2019-05-07 12:57:59 +02:00
Gerhard
6eb51a9047
WC_VERSION instead of WC()->version
2019-05-07 08:47:42 +02:00
Claudio Sanches
490219de7c
Use attributes orderby options to sort terms in product's edit screen
2019-05-06 20:39:36 -03:00
Claudio Sanches
27c3f5c7e5
Always return string
2019-05-06 19:49:02 -03:00
Claudio Sanches
77b96b5972
Get only the first item
2019-05-06 19:46:37 -03:00
Gerhard
4c80c6fd3b
Include version in the implode call.
2019-05-06 14:53:03 +02:00
Gerhard
48e6083adc
Restore param and return for backward compatibility.
2019-05-06 14:47:27 +02:00
Gerhard
b1e2a0119a
Fix system status connected to woocommerce.com status
2019-05-06 10:11:59 +02:00
parmarhardip
12985e107a
#23596 - I have solve this issue.
2019-05-06 11:43:56 +05:30
Claudio Sanches
36a99e2935
Prevent undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-03 22:21:10 -03:00
Peter Fabian
a601151ed0
Fixed use of available_updates variable.
2019-05-03 10:34:59 +02:00
Peter Fabian
98edbd2f78
Added confirmation before saving an empty list of countries to sell to in general WC settings.
2019-05-02 21:26:29 +02:00
Peter Fabian
3caee4451d
Fixed PHPCS.
2019-05-02 21:20:08 +02:00
Peter Fabian
35c63ee475
Added some comments to hopefully make the function a bit clearer.
2019-05-02 20:19:28 +02:00
Peter Fabian
375880e06b
Made the increase and decrease operations atomic, set is atomic as it's not fetch-and-update, just update.
2019-05-02 19:41:15 +02:00
Peter Fabian
44f1803c53
Tweaked update lookup table to add the possibility to ignore manage_stock value from the database.
...
E.g. if manage_stock property has been changed in the object/local copy of the product while updating it, but the product has not been saved to the db yet, the lookup table update would ignore stock quantity update.
2019-05-02 19:29:28 +02:00
Peter Fabian
b891bfe238
Removed unused variables.
2019-05-02 17:53:50 +02:00
Gerhard
48000e63a1
Move remove_ordering_args calls from the_posts filter to query_filters method, this avoids conflicts with other plugins also hooking in and modify the args.
2019-05-02 14:31:30 +02:00
Gerhard
6a6b58daf6
Wrap version appending inside sanitize_key
2019-05-02 14:13:16 +02:00
Gerhard
da00f93869
Make the version part of the cache key and not a value in the cache
2019-05-02 14:10:31 +02:00
Rodrigo Primo
5ed76fd067
Change the link of the "Report a bug" button
...
Changes the link of the "Report a bug" button from https://github.com/woocommerce/woocommerce/issues?state=open to https://github.com/woocommerce/woocommerce/issues/new?template=Bug_report.md . When users click on this button, they should go directly to the new issue page, instead of the page that list issues.
2019-05-01 22:58:55 -03:00
Nathan Dawson
6088f7c353
Fixes #23578 - Check taxes are enabled before adding totals row to orders
2019-05-01 22:05:46 +01:00
Ben Huson
d81fc1d26d
Allow ordering by ‘none’ when ordering a products array (avoids random ordering). #23558
...
This provides the same functionality as WP_Query. Shuffle/rand remains the default order for backward compatiblity.
2019-04-30 18:46:45 +01:00
Ben Huson
70064b5eb1
Allow disabling of shuffling related posts via `woocommerce_product_related_posts_shuffle` filter. #23558
...
This filter ensures backwards compatibility is maintained.
2019-04-30 18:36:02 +01:00
Beka Rice
0e1a926721
Fire wc_paying_customer for completed orders, too
2019-04-29 13:06:32 -04:00
Gerhard
cbfea2ec24
Also apply version caching to wc_get_template
2019-04-29 15:37:50 +02:00
Gerhard
8a0cf500d6
Version template caching to avoid issues with symlinked plugins in versioned folders.
2019-04-29 15:04:08 +02:00
Rodrigo Primo
45c2c78ea2
Fix: parameter values should be converted back as well when building form fields
...
PR #23196 added a workaround to `parse_str()` limitation when dealing with full-stops, pluses, and spaces in the parameter key. This workaround involved temporarily replacing those three characters with placeholders before calling `parse_str()` and then replacing back to the original form. This commit fixes a bug in this logic that was replacing back only parameters keys and not parameters values.
For example, if the query string is `?query.parameter=foo.bar`, the resulting <input> field contained `foo{dot}bar`, instead of the expected `foo.bar`.
2019-04-26 13:58:27 -03:00
Mike Jolley
0cd5c1da66
Allow stock to be force read without a change
2019-04-26 17:24:11 +01:00
Mike Jolley
ae7436d37c
Select for update, returning the new stock value
2019-04-26 17:23:45 +01:00
Mike Jolley
1a1b3e7654
Improved wc_update_product_stock
...
Allow product object to be passed through, remove cache clearing which is done during save(), and allow the caller to define whether or not an update routine is already in progress.
2019-04-26 17:20:50 +01:00
Mike Jolley
a7279bd261
Revert double saving change
2019-04-26 17:19:41 +01:00
Mike Jolley
afdd2fe7b1
define wpdb tables as early as possible, before init
2019-04-26 14:03:23 +01:00
parmarhardip
6b92769626
Fixes #23521 - Billing Email and Country now autofill for newly registered customers
2019-04-26 17:21:40 +05:30
Paul Sealock
ef12058326
Tracks: Fix OBW scripts
2019-04-26 09:54:13 +12:00
Rodrigo Primo
00128fec58
Fix dismiss button in two WC admin notices
...
The dismiss button in the WC admin notices `legacy_shipping` and `no_shipping_methods` was not fully clickable due to a custom CSS applied to them. This custom CSS was used to add a background image to those notices. More specifically, the problem was caused by the use of `position: relative` applied to `<p>` elements. I couldn't find an easy way to fix this problem keeping the custom background image, so I opted to remove it to make the design of all notices identical (besides the background image, the custom CSS also added a few other differences to those to notices like the font size of the notice title).
2019-04-25 14:19:35 -03:00
Rodrigo Primo
5c1936bfdd
PHPCS fixes
2019-04-25 14:12:45 -03:00
Rodrigo Primo
0785f2b72a
Bump default WC API version used when creating webhook
...
This commit bumps the default WC API version used when users are creating a new webhook. Before this change the default version would be v2, and after this change it is v3 which is the latest API version.
In the future we might want to create a method in WC_API class or somewhere else that returns the latest WC API version and use it in `includes/class-wc-webhook.php` instead of hard-coding the version number.
2019-04-25 11:41:31 -03:00
Peter Fabian
abf1b7450d
Save the product before calling wc_update_product_stock to ensure data consistency and set quantity in local copy after saving it to db in wc_update_product_stock.
...
wc_update_product_stock reads product from the db twice, so if it's out of sync, strange things are happening.
Also, changes dependant on stock status might get reverted if local copy of $product is not updated after wc_update_product_stock.
2019-04-25 14:57:08 +02:00
parmarhardip
8ffd78372f
- coding standard improve
2019-04-25 10:25:17 +05:30
Claudio Sanches
79ff1b10e7
Stop removing backslash from passwords
2019-04-24 19:37:07 -03:00
Mike Jolley
036a91d20c
Merge pull request #23484 from woocommerce/update/marketplace-queue-handling
...
Marketplace queue handling - avoid recurring event
2019-04-24 17:00:40 +01:00
Mike Jolley
7795ac53ff
Merge pull request #23486 from woocommerce/fix/23475
...
Improved batching for _wc_rating_count lookup table
2019-04-24 16:37:00 +01:00
Mike Jolley
9776e346b3
cancel_all
2019-04-24 16:28:28 +01:00
Mike Jolley
1efcecddc5
Merge pull request #23469 from dfeuster/master
...
corrected anchor href from old codex to new location
2019-04-24 16:11:32 +01:00
Mike Jolley
ac0229c68a
Merge pull request #23397 from oskosk/update/jetpack-tracks-client-library-filepath
...
Update Jetpack Tracks Client library reference to not have a hardcoded directory path.
2019-04-24 16:08:54 +01:00
Mike Jolley
9bf2081869
Merge pull request #23477 from woocommerce/fix/23466
...
Default category sorting order should be overwritten if defined by get_terms
2019-04-24 16:00:33 +01:00
Mike Jolley
37e362047c
Merge pull request #23483 from woocommerce/fix/23481
...
Correct postcode validation on account page
2019-04-24 15:57:05 +01:00
Mike Jolley
087f490b10
Merge pull request #23489 from woocommerce/fix/23414
...
update action scheduler to version 2.2.5
2019-04-24 15:48:58 +01:00
Mike Jolley
e7ea67da03
Merge pull request #23399 from woocommerce/renovate/woocommerce-block-library-2.x
...
Update dependency @woocommerce/block-library to v2.0.1
2019-04-24 15:42:16 +01:00
Mike Jolley
0962b447f6
Merge pull request #23482 from woocommerce/fix/23473
...
Fix attribute matching in `get_attribute_taxonomy_name`
2019-04-24 15:40:13 +01:00
Mike Jolley
4518bff6b1
Merge pull request #23444 from woocommerce/fix/23443
...
Order webhook check order type args if we should skip
2019-04-24 14:57:07 +01:00
Mike Jolley
98dfb8e8c2
Merge pull request #23446 from woocommerce/fix/23439
...
Product list table shipping class tax_query
2019-04-24 14:56:00 +01:00
Mike Jolley
c42750504d
Merge pull request #23377 from woocommerce/fix/23374
...
[3.6] Fix product class name theme conflict due to missing global
2019-04-24 14:54:34 +01:00
Mike Jolley
2810e6cdf3
Merge pull request #23451 from woocommerce/fix/23387
...
Array handling in `get_catalog_ordering_args` to prevent notices
2019-04-24 14:52:47 +01:00
Mike Jolley
b2e428d4cc
Merge pull request #23455 from woocommerce/update/23388
...
During initial product lookup table generation, set an option
2019-04-24 14:51:47 +01:00
Mike Jolley
fbdc06188a
Merge pull request #23449 from woocommerce/fix/23436
...
Wrap wc_terms_clauses query in brackets to group meta_key where clause
2019-04-24 14:50:41 +01:00
Mike Jolley
9d9f7bec59
Merge pull request #23383 from woocommerce/update/update-notices
...
[3.6] More useful update notices if cron is disabled
2019-04-24 14:49:44 +01:00
Mike Jolley
3d2be7a63f
Merge pull request #23465 from woocommerce/fix/23403
...
Updated the meta_key for average rating when generating lookup tables.
2019-04-24 14:47:47 +01:00
Mike Jolley
7e091b2a0d
Merge pull request #23457 from woocommerce/fix/23407-2
...
Fixed use of get_term_meta in REST API endpoints
2019-04-24 14:34:28 +01:00
parmarhardip
7b8d7d7390
- autoload false and check Travis CI build
2019-04-24 19:03:19 +05:30
Mike Jolley
ab5ff7576d
Merge pull request #23380 from woocommerce/fix/23378
...
Added missing wp_unslash to order data meta box save
2019-04-24 14:31:14 +01:00
Ron Rennick
fc86e574cd
update action scheduler to version 2.2.5
2019-04-24 10:08:06 -03:00
Mike Jolley
192fecc0d8
Remove filter only needs priority
...
Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
2019-04-24 13:54:12 +01:00
Mike Jolley
6176f565d7
Improved batching for _wc_rating_count lookup table
2019-04-24 13:37:15 +01:00
parmarhardip
4c90f566bb
- Prevent the Cart, checkout and my account page from being set to the same page.
2019-04-24 17:31:20 +05:30
Mike Jolley
618e98f4e0
Avoid queue on init
2019-04-24 13:00:23 +01:00
Mike Jolley
db67172b75
Queue single event only as needed
2019-04-24 13:00:16 +01:00
Mike Jolley
c523c379b4
Correct postcode validation on account page
2019-04-24 12:23:48 +01:00
Mike Jolley
76f0c015dd
Fix attribute matching in get_attribute_taxonomy_name
2019-04-24 12:05:44 +01:00
parmarhardip
2122a84d8b
- coding standard check
2019-04-24 16:34:28 +05:30
parmarhardip
f643c516d1
enhance #23381 Prevent the Cart, checkout and my account page from being set to the same page.
2019-04-24 15:59:14 +05:30
Mike Jolley
f24a607842
Force delete rather than trash variations on product type change
2019-04-24 11:16:41 +01:00
Mike Jolley
121f06b030
Added way of telling if default is in use or not
2019-04-24 10:39:00 +01:00
oskosk
120fdb2028
Use jetpack_require_lib_dir() instead of JETPACK__PLUGIN_DIR
2019-04-23 20:40:25 -03:00
Daniel Feuster
dfe8ac43bf
corrected anchor href from old codex to new location
2019-04-23 16:54:44 -05:00
Claudio Sanches
59f63f1b22
Return WP_Error messages from wp_insert_user()
2019-04-23 18:52:22 -03:00
Claudio Sanches
02863a2b00
Merge branch 'fix/23407' of https://github.com/strelkovk/woocommerce into fix/23407-2
2019-04-23 16:20:36 -03:00
Claudio Sanches
eeb6f5d15c
Revert changes on includes/api/class-wc-rest-product-categories-controller.php
2019-04-23 16:19:41 -03:00
Peter Fabian
24a5c70b5b
Updated the meta_key for average rating when generating lookup tables.
2019-04-23 19:29:38 +02:00
Mike Jolley
04e51191c4
Pass $class
2019-04-23 18:06:09 +01:00
Mike Jolley
246596dec0
Put the post_class back to avoid breaking bw compat. Append core classes on top
2019-04-23 18:04:20 +01:00
Claudio Sanches
0fdf47294a
Fixed use of get_term_meta in REST API endpoints
...
Part of #23408
2019-04-23 12:48:03 -03:00
Ron Rennick
130ebf95cd
phpcs sniff fixes for class-wc-admin.php
2019-04-23 12:07:02 -03:00
Ron Rennick
d2d342f30e
disable export of scheduled action posts
2019-04-23 12:03:30 -03:00
Mike Jolley
57929f2b09
During initial lookup generation set option
2019-04-23 15:23:47 +01:00
Mike Jolley
f20a48b1e4
Merge pull request #23417 from szepeviktor/patch-1
...
get_total_refunded should return a float
2019-04-23 14:18:30 +01:00
Mike Jolley
867f6ce7ad
Merge pull request #23418 from szepeviktor/patch-2
...
Refunds are WC_Order_Refund
2019-04-23 12:24:20 +01:00
Mike Jolley
6c36c71a65
Remove red styling
2019-04-23 12:10:07 +01:00
Mike Jolley
6589c04dab
Merge branch 'update/update-notices' of https://github.com/woocommerce/woocommerce into update/update-notices
2019-04-23 12:01:18 +01:00
Mike Jolley
3cb3d5df4e
Prevent tab causing extra white space
2019-04-23 12:01:13 +01:00
Mike Jolley
5c07e38641
Array handling
2019-04-23 11:53:07 +01:00
Mike Jolley
49f79c9593
Wrap wc_terms_clauses query with brackets
2019-04-23 11:14:50 +01:00
Gerhard
0f00eb9a79
Fix product list table shipping class tax_query
2019-04-23 11:19:07 +02:00
Gerhard
53cabdf5fe
Include check for order type args when checking if webhook is valid resource.
2019-04-23 10:43:49 +02:00
Viktor Szépe
b1476ba497
Fix coding style
...
in class-wc-order-refund-data-store-cpt.php
2019-04-22 23:05:34 +02:00
Dovid Levine
3ad9fb32be
Add data-input-classes to state field
2019-04-22 19:18:48 +03:00
Rodrigo Primo
ac70d1e9b2
Fix copy and paste error in code documentation
2019-04-22 11:43:09 -03:00
Milan Dinić
9c8327bdaa
Do not use state for Serbia.
2019-04-21 22:43:47 +02:00
Viktor Szépe
babb5ab18e
Refunds are WC_Order_Refund
...
props. @phpstan
2019-04-21 21:55:13 +02:00
Viktor Szépe
4e4dad0581
get_total_refunded should return a float
...
props. @phpstan
2019-04-21 21:36:31 +02:00
Milan Dinić
67cf3062c0
Add address format for Serbia.
2019-04-21 20:28:58 +02:00
strelkov
63d6ded7aa
Fix for get categories endpoint
...
to get proper display mode, image and order
issue
https://github.com/woocommerce/woocommerce/issues/23407
2019-04-20 11:37:23 +02:00
Beka Rice
84d03d3bf9
Tweak: update paying customer information on payment complete
2019-04-19 14:21:17 -04:00
Kelly Dwan
60752fd68b
Build blocks from `@woocommerce/block-library`
2019-04-19 13:20:14 -04:00
oskosk
d6c8c2f389
Rely on the JETPACK__PLUGIN_DIR to load the Jetpack Tracks client file
2019-04-19 12:24:29 -03:00
Luis
99d85a2c02
Changing HTML string to template call
...
template/content-widget-price-filter.php
2019-04-19 00:18:24 -03:00
Mike Jolley
7ef1fd5ea6
More useful update notices
2019-04-18 20:06:17 +01:00
Mike Jolley
662af85bea
cleanup and docs
2019-04-18 19:33:48 +01:00
Mike Jolley
7737fc5928
remove post_class and implement woocommerce_post_class
2019-04-18 19:27:00 +01:00
Mike Jolley
d411f082d7
Added missing wp_unslash
2019-04-18 18:52:51 +01:00
Mike Jolley
3dc0fcb0c7
Merge pull request #23370 from woocommerce/fix/23368
...
Check isset rather than empty so cart title can be removed
2019-04-18 18:39:06 +01:00
Mike Jolley
f703c959e4
Merge pull request #23372 from woocommerce/fix/is_request_to_rest_api
...
is_request_to_rest_api check wc endpoints only
2019-04-18 18:36:48 +01:00
Mike Jolley
fbaaa319dd
Use global product if null
2019-04-18 17:25:13 +01:00
Mike Jolley
0738b332fc
Merge pull request #23349 from woocommerce/add/structured-data-offercount
...
Adds offerCount to variable product's structured data.
2019-04-18 14:29:57 +01:00
Mike Jolley
9206d6f4dd
Merge pull request #23363 from woocommerce/fix/23361
...
Better iconv support handling in wc_ascii_uasort_comparison
2019-04-18 14:27:46 +01:00
Mike Jolley
f0c30406a3
is_request_to_rest_api check wc endpoints only
2019-04-18 14:23:12 +01:00
Mike Jolley
1274136b32
Check isset rather than empty so cart title can be removed
2019-04-18 13:10:42 +01:00
Mike Jolley
f306d3fc11
Merge pull request #23266 from woocommerce/fix/23234
...
Switch to subquery for sale product query
2019-04-18 12:36:22 +01:00
Mike Jolley
b1ece1452c
Merge pull request #23365 from woocommerce/make-greece-state-optional
...
Make state/county optional for Greece
2019-04-18 12:17:44 +01:00
Mike Jolley
e1e13dee91
merge conflict
2019-04-18 12:06:13 +01:00
Mike Jolley
2033a231a4
Update from master
2019-04-18 12:05:23 +01:00
Mike Jolley
8d5d7b2463
Update from master
2019-04-18 11:56:47 +01:00
Mike Jolley
44d129e452
Merge pull request #23334 from woocommerce/fix/23328
...
Revert selectWoo escaping change
2019-04-18 11:51:11 +01:00
Mike Jolley
3aff19afe7
version bump
2019-04-18 11:47:07 +01:00
Mike Jolley
f66e523c5f
Merge pull request #23250 from Spreeuw/patch-7
...
Add $this parameter to email class filters
2019-04-18 11:35:51 +01:00
Mike Jolley
ccc45852fc
Merge pull request #23272 from franticpsyx/optimize-get-available-variations
...
Prime post caches to reduce queries needed to populate variations data
2019-04-18 11:34:20 +01:00
Mike Jolley
cafd81e6e5
Merge pull request #23329 from woocommerce/fix/23327
...
Non int value handling in wc_let_to_num
2019-04-18 11:30:57 +01:00
Mike Jolley
ceefe98bd0
Merge pull request #23297 from dkjensen/master
...
Remove tags from product titles when building PayPal request URL
2019-04-18 11:23:55 +01:00
Gerhard
c601d20b57
Fix alignment
2019-04-18 12:22:22 +02:00
Mike Jolley
5c91dac198
Merge pull request #23236 from woocommerce/fix/23219
...
Added is-active class to Orders when looking at individual order
2019-04-18 11:22:11 +01:00
Mike Jolley
2f850633a5
Merge pull request #23251 from woocommerce/fix/23239
...
CSV Import: Search for 'number' anywhere in cell, not just the end
2019-04-18 11:21:14 +01:00
thomas shellberg
6f4217e429
make state/county option for Greece
2019-04-18 12:21:06 +02:00
Gerhard
6026d2b9bf
Typecast is sufficient enough
2019-04-18 12:20:59 +02:00
Mike Jolley
442ce26591
Merge pull request #23270 from jenkoian/fix-network-orders-widget
...
Bug - Fix for network orders widget when WooCommerce is network active.
2019-04-18 11:20:06 +01:00
Mike Jolley
180a0aaf8d
Merge pull request #23238 from woocommerce/fix/23224
...
Updated back to link for attribute terms.
2019-04-18 11:13:20 +01:00
Mike Jolley
f0c5209f2b
Merge pull request #23249 from woocommerce/fix/23247
...
Avoid post update in `wc_update_product_stock`
2019-04-18 11:10:36 +01:00
Mike Jolley
e7a6c51e61
Merge pull request #23201 from woocommerce/fix/23168
...
Add check for VAT exemption inside `display_prices_including_tax`
2019-04-18 11:03:52 +01:00
Mike Jolley
b686150655
Merge pull request #23196 from woocommerce/fix/23195
...
Replace full stops before running through `parse_str`
2019-04-18 11:01:59 +01:00
Mike Jolley
19a1a7d7db
Merge pull request #23132 from woocommerce/fix/23127
...
Attribute renaming: Fix migration queries
2019-04-18 10:58:07 +01:00
Mike Jolley
262eef64f5
Merge pull request #23339 from woocommerce/fix/23337
...
Correctly handle images in v3 api
2019-04-18 10:55:24 +01:00
Mike Jolley
e64e927aab
Merge pull request #23356 from leonaves/patch-1
...
Fix security check on email template preview page.
2019-04-18 10:51:01 +01:00
Gerhard
f87df5c95a
Swap flag around to ensure it tries TRANSLIT first, also silence notices should they pop up for some reason
2019-04-18 09:51:14 +02:00
Gerhard
bedde9377c
Better iconv support checking
2019-04-18 09:37:01 +02:00
Gerhard
10acd7a290
Use //IGNORE instead of //TRANSLIT due to it relying on server config which would ignore the flag and throw notices.
2019-04-18 09:26:39 +02:00
Leon Aves
60148d7f8f
Fix security check on email template preview page.
...
The nonce generated on the previous page was not being verified properly due to mismatched brackets (the second argument to wp_verify_nonce was not being passed).
2019-04-18 00:08:00 +01:00
Mike Jolley
b697be51d4
Remove call to header_register_callback and revert to 3.5 cookie handling
2019-04-17 23:50:42 +01:00
Claudio Sanches
669542ed7d
Adds offerCount to variable product's structured data
2019-04-17 14:04:52 -03:00
Mike Jolley
33b1c4205b
Fix cart tests - move round so taxes are correct
2019-04-17 16:49:46 +01:00
Timmy Crawford
763d3aec33
Merge pull request #23332 from woocommerce/fix/tracks-cookie-save
...
Set tracks cookie on wp hook instead on when calling record event.
2019-04-17 06:20:24 -07:00
Gerhard
9ad8ef56da
Be sure to also print the wp script since the OBW does not include those by default in the footer.
2019-04-17 14:56:51 +02:00
Gerhard
fee86cd8cd
Move JS to woocommerce_setup_footer and do not output wp scripts.
2019-04-17 14:54:59 +02:00
Gerhard
5c7b069d17
Use wp_loaded for cookie set
2019-04-17 14:23:19 +02:00
Gerhard
f65f7a6d59
Remove wc_setcookie usage in WC_Tracks_Client::get_anon_id
2019-04-17 14:20:21 +02:00
Mike Jolley
111684ef32
Correctly handle images in v3 api
2019-04-17 13:18:33 +01:00
Mike Jolley
47eee0143f
Restore order note on exception
2019-04-17 13:07:52 +01:00
Mike Jolley
6e5f1e2059
Switched conditon by accident
2019-04-17 12:57:02 +01:00
Mike Jolley
e354bb90aa
Pass objects to new/update actions
2019-04-17 12:50:46 +01:00
Mike Jolley
a0d4f6174c
Consistent CRUD classes with before/after save hooks
2019-04-17 12:47:35 +01:00
Mike Jolley
f18542aa71
remove slash from currency code string
2019-04-17 12:06:57 +01:00
Mike Jolley
4e50a8f6dd
Escape strings passed to selectwoo
2019-04-17 12:02:20 +01:00
Gerhard
00e8aeef60
Use __CLASS__ instead of self
2019-04-17 11:51:07 +02:00
Gerhard
c74df4ca11
Set tracks cookie on wp hook instead on when calling record event.
2019-04-17 11:39:50 +02:00
Gerhard
8ca0bd7b4d
Add logic to wc_let_to_num to handle non int values, added unit tests to cover these scenarios
2019-04-17 10:30:49 +02:00
Claudio Sanches
0f9ff3d70b
[REST API] Stops order creating if returns any error
...
Prevents orders of been created if a WC_Data_Exception or a WC_REST_Exception was throwed.
2019-04-17 00:36:20 -03:00
Mike Jolley
9863362de3
Merge pull request #23315 from woocommerce/update/changes-from-3.5.8
...
Merge changes from 3.5.8
2019-04-16 14:57:50 +01:00
Mike Jolley
d959758abe
Merge pull request #23311 from woocommerce/replace-deprecated-function
...
Replace call to deprecated function delete_woocommerce_term_meta()
2019-04-16 14:57:05 +01:00
Mike Jolley
7efe831e72
Merge pull request #23308 from webdados/patch-2
...
Stop using update_woocommerce_term_meta on class-wc-rest-product-categories-controller.php
2019-04-16 14:55:52 +01:00
Rodrigo Primo
20e9701583
Bump selectWoo.full.js version
2019-04-16 14:33:31 +01:00
Gerhard
86ec50f359
Update all *_woocommerce_term_meta calls to *_term_meta calls
2019-04-16 12:14:51 +02:00
Rodrigo Primo
a18c44d76e
Replace call to deprecated function delete_woocommerce_term_meta()
...
This commit replaces a call to deprecated function `delete_woocommerce_term_meta()` with its replacement `delete_term_meta()`. `delete_woocommerce_term_meta()` was deprecated by 32ae0192e5
and all calls removed, but PR #22553 that was created about the same time added a new call to this function.
2019-04-15 15:33:27 -03:00
Timmy Crawford
bf151aee3e
Merge pull request #23303 from woocommerce/fix/23232
...
Refactor #23300
2019-04-15 11:21:00 -07:00
Timmy Crawford
08c7bee019
Merge pull request #23295 from woocommerce/fix/23291
...
Check `get_plugin_data` exists in `WC_REST_System_Status_V2_Controller`
2019-04-15 11:18:41 -07:00
Timmy Crawford
acc1600594
Merge pull request #23302 from woocommerce/remove/tracks-total-revenue
...
[3.6] Blocker - remove total revenue from Tracks events.
2019-04-15 11:17:51 -07:00
Timmy Crawford
e12e4aaa25
Merge pull request #23304 from woocommerce/fix/link-all-variations
...
[3.6] Fix logic in link all variations
2019-04-15 11:16:22 -07:00
Timmy Crawford
f735883c80
Merge pull request #23306 from JPry/issue_23305
...
Update Action Scheduler library to 2.2.4
2019-04-15 11:10:42 -07:00
Timmy Crawford
438d22762e
Merge pull request #23246 from franticpsyx/issue-23245
...
Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products
2019-04-15 11:08:32 -07:00
Marco Almeida
1a251c82ad
Stop using update_woocommerce_term_meta
...
Stop using the update_woocommerce_term_meta helper function as it has been deprecated on 3.6.0
2019-04-15 17:54:19 +01:00
Mike Jolley
aaca13ee3d
Map more fields, including special columns with custom data handling requirements
2019-04-15 16:05:29 +01:00
Mike Jolley
93535047fd
Ability to parse tags with space separators
2019-04-15 15:55:42 +01:00
Jeremy Pry
745ebffbdd
Merge commit '98433d8c3095fa393389988d16e56fe1d302af63' into issue_23305
...
Updates the Action Scheduler library to version 2.2.4.
* commit '98433d8c3095fa393389988d16e56fe1d302af63':
Squashed 'includes/libraries/action-scheduler/' changes from 4d221dc6d..f5643fe30
2019-04-15 10:47:01 -04:00
Mike Jolley
558e96fdb9
parse_tax_status_field
2019-04-15 15:08:25 +01:00
Mike Jolley
b5f89e35d1
Remove localisation
2019-04-15 14:26:49 +01:00
Mike Jolley
c5b7719697
Only map if this is looks like a Shopify export.
2019-04-15 14:24:56 +01:00
Mike Jolley
6c6785c844
Merge pull request #23269 from marcochiesi/patch-1
...
Added validation for Italian postcodes
2019-04-15 14:10:01 +01:00
Mike Jolley
1504f8af3e
Merge pull request #23011 from Tofandel/patch-2
...
Improve the speed of the admin dashboard by only updating transients once per class
2019-04-15 14:03:31 +01:00
Mike Jolley
58161c0ccc
Merge pull request #23122 from fpcuriosity/patch-1
...
Add taxonomy-specific classes to active filters widget
2019-04-15 13:31:35 +01:00
Mike Jolley
c7412415e5
Merge pull request #23092 from woocommerce/fix/23089
...
Use version_compare for determining max version number
2019-04-15 13:29:29 +01:00
Mike Jolley
2152642146
Merge pull request #23152 from uok/patch-1
...
Format empty cart message as information notice
2019-04-15 13:27:17 +01:00
Mike Jolley
30129f00ff
Fix issue in tests by disabling strict mode
2019-04-15 12:10:22 +01:00
Mike Jolley
d0c6c54989
Moved link/create code to data store with new unit test
...
This code was not testable within ajax code, so moved to the data stores.
2019-04-15 11:59:57 +01:00
Gerhard
134f9c9c8e
Fix PHPCS
2019-04-15 12:13:02 +02:00
Ralf
66540f1b5d
Moved accessibility labels for checkout after woocommerce_checkout_fields filter
2019-04-15 12:09:33 +02:00
Jeff Stieler
13e40cdee7
Remove total revenue from Tracks events.
...
Query to calculate is far too expensive and doesn’t seem to ever get cached with large datasets.
2019-04-15 09:37:34 +02:00
David Jensen
9b58e68e85
Remove html tags from product name in request to PayPal
2019-04-12 12:36:30 -07:00
Mike Jolley
4e8342be38
Check get_plugin_data exists
2019-04-12 15:34:52 +01:00
Manos Psychogyiopoulos
d4f8435106
Prime post caches before looping through variations
...
Should help when the AJAX variations threshold is set higher.
2019-04-11 10:59:34 +03:00
Ian Jenkins
fa3637c4f1
Bug - Fix for network orders widget when WooCommerce is network active.
...
Network orders makes most sense when WooCommerce is installed as a
network wide plugin. This change fixes the widget when it is network
active.
2019-04-10 22:58:51 +01:00
Marco Chiesi
e2dd7504d0
Added validation for Italian postcodes
2019-04-10 23:44:50 +02:00
Ewout Fernhout
794ba844b2
store tax rate percent in tax items
2019-04-10 17:35:43 +02:00
Ewout Fernhout
1ea6d7d3f8
separate getter for rate percent & percent value
2019-04-10 17:27:48 +02:00
Gerhard
96906d9efa
PHPCS Fixes
2019-04-10 14:53:03 +02:00
Mike Jolley
fe385c9f74
fix query by adding alias
2019-04-10 13:48:03 +01:00
Gerhard
8716c7451c
PHPCS fixes
2019-04-10 14:29:40 +02:00
Mike Jolley
2e24cc7b0c
Switch to subquery for sale product query
2019-04-10 12:43:22 +01:00
Mike Jolley
dfcc5e16e5
update wording
2019-04-10 11:51:41 +01:00
Mike Jolley
945ff7958f
Merge pull request #23101 from woocommerce/update/23090
...
Add table ENGINE to system status report
2019-04-10 11:32:51 +01:00
Mike Jolley
deaaa5d1d8
Remove two old moved-feature notices
2019-04-10 11:23:35 +01:00
Mike Jolley
91084f3e28
Add todo for legacy shipping notice
2019-04-10 11:23:04 +01:00
Mike Jolley
244156c0be
check if sku or id column exists when updating products from csv
2019-04-10 11:11:40 +01:00
David Wampamba
1e09a7cfb6
Errors fixed
2019-04-10 13:03:30 +03:00
haszari
7ede25add7
use admin_url to generate manage suggestions url (support multisite etc)
2019-04-10 12:16:49 +12:00
haszari
cd9101bb58
fix target url of 'Manage Suggestions', settings are now in 'Advanced'
2019-04-10 12:02:09 +12:00
John Coy
0bd52938ab
Mapping for default Shopify fields
...
Helps to improve assigning the default Shopify columns upon upload.
2019-04-09 14:09:09 -05:00
Timmy Crawford
8bccfcca1a
more phpcs fixes.
2019-04-09 11:34:34 -07:00
Timmy Crawford
81c679181c
PHPCS fixes.
2019-04-09 10:18:47 -07:00
Timmy Crawford
f2b55bf060
Move suggestions/tracks settings to new Advanced | WooCommerce.com page.
2019-04-09 09:38:26 -07:00
Mike Jolley
91e21644cf
Style descriptions after select2 boxes
2019-04-09 15:02:05 +01:00
Mike Jolley
cb27b40c67
Search for 'number' anywhere in cell, not just the end
2019-04-09 14:37:46 +01:00
Ewout Fernhout
ca00798dd1
add $this to invoice email filters
2019-04-09 15:24:17 +02:00
Ewout Fernhout
6e2f1736ce
add $this to refunded order email filters
2019-04-09 15:22:26 +02:00
Ewout Fernhout
fafc829c4d
Add $this parameter to email class hooks
...
see #23209
2019-04-09 15:19:21 +02:00
Mike Jolley
0cd429dad9
Avoid post update in wc_update_product_stock
2019-04-09 12:47:51 +01:00
David Wampamba
bc6cbfcadc
Spaces fixed
2019-04-09 13:59:49 +03:00
Manos Psychogyiopoulos
861d42f368
Fix IN type
2019-04-09 05:48:08 +03:00
Manos Psychogyiopoulos
b1d7b2c6d0
Refactor json_search_downloadable_products_and_variations
2019-04-09 05:41:49 +03:00
Manos Psychogyiopoulos
f6c560d684
Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products`
...
closes #23245
2019-04-09 05:33:50 +03:00
haszari
36f1dbf7fb
ensure no-suggestions state "manage" link triggers tracks event
2019-04-09 13:53:25 +12:00
Timmy Crawford
b35945c5f5
PHPCS fix.
2019-04-08 17:21:50 -07:00
Timmy Crawford
e4552c571d
Only show suggestions setting when current user can install_plugins
2019-04-08 16:27:32 -07:00
Timmy Crawford
ae66f195a5
Add link to manage suggestions in default/empty view
2019-04-08 16:24:52 -07:00
Timmy Crawford
4a2c706cc0
Add setting to control display of marketplace suggestions.
2019-04-08 16:24:52 -07:00
Timmy Crawford
616af5c28d
Merge pull request #23216 from woocommerce/update/tracks-opt-out
...
[3.6] Update opt-out usage tracking text.
2019-04-08 14:27:08 -07:00
Timmy Crawford
7ac179f7b8
Merge pull request #23229 from woocommerce/add/manage-suggestions-metabox-link
...
[3.6] Add manage suggestions link into browse-all metabox footer
2019-04-08 13:59:35 -07:00
Timmy Crawford
b4352c8b32
Merge pull request #23203 from woocommerce/update/23199
...
[3.6] Prevent removal of the wc- prefix from non core order statuses
2019-04-08 12:13:11 -07:00
Timmy Crawford
886d1acca5
Updates to usage tracking text per feedback.
2019-04-08 12:00:11 -07:00
Timmy Crawford
57de03a7d0
Merge pull request #23231 from woocommerce/fix/tracks-issues
...
[3.6]Tracks: various fixes
2019-04-08 11:09:38 -07:00
Timmy Crawford
06bec2e845
Merge pull request #23210 from woocommerce/update/fb-recommendation-end-date
...
[3.6] OBW: Display FB recommendation until removed
2019-04-08 10:32:32 -07:00
Timmy Crawford
ef4f0f0c0f
Merge pull request #23197 from woocommerce/fix/23182
...
[3.6] Fix backwards compatibility issues for wc_get_template function w/ tests
2019-04-08 10:19:16 -07:00
Peter Fabian
eb99d0f152
Updated back to link for attribute terms.
2019-04-08 18:37:23 +02:00
Peter Fabian
36d2c96faa
Added is-active class to Orders when looking at individual order under My Account.
2019-04-08 16:49:44 +02:00
Peter Fabian
f757c6c60d
PHPCS fixed.
2019-04-08 16:48:57 +02:00
Paul Sealock
1d7cd1722a
Tracks: various fixes
2019-04-08 15:58:03 +12:00
haszari
d2ff99189c
enqueue translatable string for `Manage suggestions` link
2019-04-08 15:45:41 +12:00
Mark Senff
0185795319
Update html-product-attribute.php
2019-04-07 09:42:27 -04:00
Timmy Crawford
72b9555706
Update opt-out usage tracking text.
2019-04-05 12:59:32 -07:00
Valerie
0d1c1ec7b6
OBW: Display FB recommendation until removed
...
Instead of ending the FB recommendation on
a specific date we'll remove it when needed.
2019-04-04 13:34:40 -04:00
Mike Jolley
7e3eec3ed6
Added parse_published_field
2019-04-04 12:21:38 +01:00
Mike Jolley
1cd2959087
unset rather than prevent the template being included.
2019-04-03 16:08:12 +01:00
Mike Jolley
274a471167
Merge pull request #23194 from woocommerce/fix/23171
...
[3.6] Fix results from wp_term_counts when sorting by menu_order
2019-04-03 15:46:01 +01:00
Mike Jolley
9ea63486e6
Add get_post_status helper method and ensure prefix gets added for most statuses
2019-04-03 14:21:38 +01:00
Mike Jolley
b1a811ca46
Replace spaces
2019-04-03 11:58:08 +01:00
Mike Jolley
11db10807d
Add check for VAT excemption inside display_prices_including_tax
2019-04-03 11:36:43 +01:00
Mike Jolley
5ed25e1734
Notice if args are attempted to replace
2019-04-02 15:17:52 +01:00
Mike Jolley
51b3e4f213
Use action_args rather than $template variable which could have been overwritten
...
Co-Authored-By: dinhtungdu <dinhtungdu@gmail.com>
2019-04-02 14:07:48 +01:00
Mike Jolley
a66adf0829
Replace full stops before parse_str
2019-04-02 13:58:37 +01:00
Mike Jolley
2f0b8cced5
Flip logic so counts ignore sorting rules
2019-04-02 11:56:47 +01:00
David Wampamba
5de3d4d18b
Merge branch 'master' into master
2019-04-02 13:40:27 +03:00
Paul Sealock
2d244a8047
Tracks: Status page events
2019-04-02 16:51:48 +13:00
Mike Jolley
b1e71074b2
Merge pull request #23174 from szepeviktor/patch-2
...
Fix stray char in PHPDoc of WC_Coupon
2019-04-01 12:46:28 +01:00
David Wampamba
96c53643bb
Update class-wc-countries.php
...
Uganda locale
2019-03-30 16:49:44 +03:00
David Wampamba
6588a67fa4
Update class-wc-countries.php
...
Line 422: Uganda(UG) address format
2019-03-30 16:45:54 +03:00
Iskander (Alex) Sharipov
00f5b24e33
fix strpos arguments order
...
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-03-30 03:39:50 +03:00
Viktor Szépe
9e7fc0a35d
Fix stray char in PHPDoc of WC_Coupon
...
`|`
2019-03-30 00:48:17 +01:00
Viktor Szépe
bd6a348af5
Fix PHPDoc in WC_Product_Importer
...
old stuff
2019-03-30 00:35:32 +01:00
Timmy Crawford
ae1841a82c
Merge pull request #23162 from thenbrent/fix/23121
...
Update Action Scheduler to v2.2.3
2019-03-28 07:42:55 -07:00
Brent Shepherd
f450c8d92a
Remove Action Scheduler development files
2019-03-28 15:33:41 +10:00
Brent Shepherd
fbfd91f6b9
Merge commit '2492f1e0ed366694059091f434743f52a6e5202d' as 'includes/libraries/action-scheduler'
2019-03-28 15:31:13 +10:00
Brent Shepherd
3e3d15e6cc
Remove non-subtree'd /action-scheduler/
2019-03-28 15:30:35 +10:00
Timmy Crawford
800ad318e3
OBW: Ensure tracker opt-in is always shown.
2019-03-27 15:29:55 -07:00
Timmy Crawford
4cad501098
Merge pull request #23146 from woocommerce/fix/22695
...
Update fallback download URL in helper
2019-03-27 15:01:10 -07:00
Timmy Crawford
0b113621a6
Merge pull request #23145 from woocommerce/fix/23107
...
Introduce `wc_create_new_customer_username` function
2019-03-27 14:59:24 -07:00
Timmy Crawford
9601bc64d1
Merge pull request #23138 from woocommerce/fix/23103
...
REST API: Adds future status to list of allowed statuses
2019-03-27 13:19:32 -07:00
Timmy Crawford
91d412f150
Merge pull request #23149 from woocommerce/update/23144
...
Update refund reason to make it clear refunding is manual
2019-03-27 13:18:53 -07:00
Timmy Crawford
eb106853c5
Merge pull request #23156 from woocommerce/fix/23121
...
5.2 fix from ActionScheduler
2019-03-27 13:18:14 -07:00
Rodrigo Primo
cbf6149cb9
Merge pull request #23069 from woocommerce/fix/23061
...
Variation stock status field handling (displaying/hiding when needed)
2019-03-27 14:51:26 -03:00
Rodrigo Primo
5d8ca32789
Merge pull request #23131 from woocommerce/fix/23118
...
`WC_Ajax::add_variation` force variable product type
2019-03-27 14:20:35 -03:00
Mike Jolley
0a61912a31
If orderby is used on static homepage, force page
2019-03-27 16:38:18 +00:00
Mike Jolley
4d5cda49c2
Hotfix for AS
...
Pulls in the fix from https://github.com/Prospress/action-scheduler/pull/268
2019-03-27 14:45:36 +00:00
Timmy Crawford
5a33e13432
Merge pull request #23151 from woocommerce/fix/emogrifier-conflict
...
Update Emogrifier class and usage
2019-03-27 07:27:14 -07:00
Mike Jolley
ad49085571
Append random number to reduce recusion
2019-03-27 12:22:15 +00:00
Mike Jolley
ded4f8bf3e
Use string to avoid 5.2 warning
2019-03-27 11:35:45 +00:00
Timmy Crawford
8b24528b16
Merge pull request #23102 from woocommerce/update/prevent-fatal-errors-when-extending-rest-api
...
If someone tries to load WC_REST class to early, throw notice
2019-03-26 17:19:06 -07:00
Ben S
c1a6cdb873
Format empty cart message as information notice
2019-03-26 18:35:21 +01:00
Mike Jolley
ea19f732fd
min/max functions instead of orderby
2019-03-26 14:41:27 +00:00
Mike Jolley
b09a5f8003
Update Emogrifier
2019-03-26 14:24:21 +00:00
Mike Jolley
a2576943a2
compare string
2019-03-26 14:08:14 +00:00
Mike Jolley
c79e3ad8f1
Detect all rest endpoints, not just wc/
2019-03-26 14:06:22 +00:00
Mike Jolley
8d3978e26b
wc_translate_user_roles
2019-03-26 13:56:06 +00:00
Mike Jolley
bdc009cfbf
Update refund reason to make it clear refunding is manual
2019-03-26 12:46:27 +00:00
Mike Jolley
3a8c3b3813
Update download URL in helper
2019-03-26 11:36:41 +00:00
Mike Jolley
2b8f8e38d1
wc_create_new_customer_username function
2019-03-26 11:09:37 +00:00
Mike Jolley
8aeff9bb2f
Adds future status to list of allowed statuses
2019-03-25 15:19:48 +00:00
Mike Jolley
eb45b94edb
Switch data_type
2019-03-25 15:10:56 +00:00
Mike Jolley
58651e8a2a
When moving data for lookup tables, avoid orderby
2019-03-25 14:23:36 +00:00
Mike Jolley
9907a25ff6
Append notice if variations are invalid
2019-03-25 13:30:04 +00:00
Mike Jolley
cb3134a563
phpcs
2019-03-25 12:45:38 +00:00
Mike Jolley
8e4807ac92
Correct keys when migrating attribute data
2019-03-25 12:27:18 +00:00
Mike Jolley
174ca94b79
WC_Ajax::add_variation - force variable product type
2019-03-25 11:56:48 +00:00
Francesco Pinto
69d4d9b221
Fixed Coding Standard
2019-03-23 20:58:36 +01:00
Francesco Pinto
d1df273f9e
Fixed Coding Standards
2019-03-23 20:28:58 +01:00
Francesco Pinto
c2bd9bcdf5
Add taxonomy-specific classes to active filters
2019-03-23 18:03:01 +01:00
Kelly Dwan
8c109f7925
Shortcut out if we see the feature plugin, v1.4 or below
2019-03-22 10:48:06 -04:00
Mike Jolley
a4ef8cccd2
Update persistent cart only when cart items are modified
2019-03-22 13:05:09 +00:00
Mike Jolley
921cc754b9
Improved usefulness of set_quantity
...
Due to the way set_quantity works there are multiple paths that can be taken and multiple hooks to monitor for updates. woocommerce_before_cart_item_quantity_zero for example was only fired when qty hits zero, however, there are other hooks to monitor which do the same thing (remove from cart) e.g. woocommerce_cart_item_removed.
This uses the `remove_cart_item` method so that hook is always fired, and zero hook is no longer needed.
Added woocommerce_after_cart_item_quantity_update action to capture the other cases (when qty is updated).
2019-03-22 13:04:47 +00:00
Mike Jolley
59c51fbebe
Only clear persistent cart if persistent cart is enabled
2019-03-22 11:44:27 +00:00
Mike Jolley
8ad8a4efa5
Deprecation functions should not output errors during REST requests.
2019-03-21 16:26:33 +00:00
Mike Jolley
3ff2c2f053
If someone tries to load WC_REST class to early, throw notice and include rest api classes
2019-03-21 15:38:29 +00:00
Mike Jolley
c5defa6a1e
Add engine to system status
2019-03-21 14:39:33 +00:00
Mike Jolley
db3b486442
Order by name and fix return value
2019-03-20 15:27:53 +00:00
Mike Jolley
f113d26e44
Update routine
2019-03-20 15:27:43 +00:00
Mike Jolley
d22ecd8fea
API should default to force
2019-03-20 15:27:31 +00:00
Mike Jolley
6944e73963
Update option definition
2019-03-20 15:27:19 +00:00
Mike Jolley
494c6ffdbd
Handle save
2019-03-20 15:27:07 +00:00
Mike Jolley
b387444136
Allow us to define a setting in API but not save as option
2019-03-20 15:26:38 +00:00
Mike Jolley
18266a6eb8
Use new helper functions in api classes
2019-03-20 14:21:39 +00:00
Mike Jolley
e900fa3b1e
Helper functions to get/delete/create tax classes in new table
2019-03-20 14:21:23 +00:00
Mike Jolley
a92a67dfca
Define table name in wpdb
2019-03-20 14:19:26 +00:00
Mike Jolley
5d1020300e
wc_tax_rate_classes table
2019-03-20 14:19:11 +00:00
Gerhard
778245bc43
Revert test
2019-03-20 16:06:11 +02:00
Gerhard
4edd63fedf
usort not uasort
2019-03-20 14:06:13 +02:00
Gerhard
fb0e2db448
Keep track of version numbers in seperate variable before sorting it
2019-03-20 14:05:12 +02:00
Gerhard
6234b7bd13
uasort does not return a value but instead works by reference.
2019-03-20 14:00:26 +02:00
Gerhard
b97e780b0b
Use version_compare for finding the latest version and not max as it is not string friendly.
2019-03-20 13:56:57 +02:00
Gerhard
fbe1bc7c1f
Move saving setting functionality to wp_loaded hook to avoid issues with menus loading before the setting is saved.
2019-03-20 13:34:02 +02:00
Mike Jolley
97f30e7f5c
Variation stock status handling
2019-03-18 12:56:49 +00:00
Mike Jolley
c19a39962a
Correct any handling
2019-03-18 12:09:37 +00:00
Mike Jolley
986375862e
Merge pull request #23057 from freer4/patch-1
...
Allow extension of WC_Breadcrumb class
2019-03-18 11:38:01 +00:00
Mike Jolley
4130f737fc
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-03-18 10:59:58 +00:00
Mike Jolley
4d975a6e62
Merge branch 'pr/23054'
2019-03-18 10:59:55 +00:00
Mike Jolley
cbb92ef86c
combine check
2019-03-18 10:59:43 +00:00
Mike Jolley
37bc893aba
Merge pull request #23039 from woocommerce/update/plugin-rating-notice-text
...
Update the rating request text in the footer to be friendlier for screen reader users
2019-03-18 10:38:53 +00:00
Gerhard
a7571c71c1
Fix typo in lookup table notice markup
2019-03-18 10:11:05 +02:00
freer4
701d92233c
Allow extension of WC_Breadcrumb class
...
Changing the private class methods to protected allows extending the class to work with the built-in functionality.
The desired effect - removing the "Shop" crumb - was not possible with the few filters available interspersed in this class.
After much hair-pulling over the simple task of excluding one breadcrumb and the stubborn refusal to copy-pasta the entire class into my theme, I choose to extend the WC_Breadcrumb class to override the already-public add_crumb method. Without access to the other methods on the class, this was futile.
There are several asks around the web for removing or updating the breadcrumbs. The accepted answer to these appears to be to "just hide it with CSS" which is a poor workaround.
2019-03-17 02:43:00 -04:00
Silicon Forks
19a7bb82a0
Fix image regeneration check when image is not cropped
...
Resolves #21800 .
2019-03-16 12:39:40 -03:00
Kelly Dwan
3f5aaad117
Update @woocommerce/block-library to 2.0.0-rc1
2019-03-15 13:06:38 -04:00
Lee Willis
3573beadc1
Allow matching of "any" attributes in find_matching_product_variation. Fixes #23042
2019-03-15 16:25:26 +00:00
Mike Jolley
6b82636e33
phpcs
2019-03-15 16:16:53 +00:00
Kelly Dwan
b066922c40
Update the rating request text in the footer to be friendlier for screen reader users
2019-03-15 12:05:27 -04:00
Mike Jolley
5ee5227dac
Hooks for all actitation and deactivation events
2019-03-15 16:02:55 +00:00
Mike Jolley
d6a38dce55
woocommerce_helper_subscription_deactivate_success
2019-03-15 15:45:50 +00:00
Mike Jolley
3f5f437b9e
woocommerce_helper_subscription_activate_success
2019-03-15 15:42:17 +00:00
Claudio Sanches
a425e92672
Removed legacy "Orders index" tool
2019-03-15 11:34:32 +00:00
Mike Jolley
ccc5805632
Use secure and http cookies
2019-03-15 11:34:10 +00:00
Mike Jolley
bd34e89314
Merge branch 'pr/23035'
2019-03-15 11:25:10 +00:00
Mike Jolley
0ae50509ce
code standards
2019-03-15 11:25:04 +00:00
Timmy Crawford
e1c09b4609
Merge pull request #22973 from woocommerce/update/22545
...
Revised sale start/end date save logic
2019-03-14 17:53:40 -07:00
Adrien Foulon
700d89f8ff
Fix missing parenthesis
2019-03-14 23:55:02 +01:00
Claudio Sanches
d365497a66
Fixed coding standards
2019-03-14 19:48:47 -03:00
Adrien Foulon
d53d6f6a7d
phpcs
2019-03-14 23:18:47 +01:00
Adrien Foulon
7a470fb117
Separating nocache and cache logic for clarity
2019-03-14 23:16:55 +01:00
Adrien Foulon
0391b11b20
Review
2019-03-14 23:05:54 +01:00
Timmy Crawford
ade88ffc31
Merge pull request #23031 from woocommerce/update/update-routine-lookup-table
...
Lookup table updates over CLI
2019-03-14 12:45:09 -07:00
Daniel Kudwien
7702f773b9
Fixed WooCommerce writes current_theme_supports_woocommerce option on every page view.
2019-03-14 20:09:43 +01:00
Adrien Foulon
7d77241ed2
Move variable definitions in class
2019-03-14 16:44:26 +01:00
Mike Jolley
1e83864667
Improve updates of onsale/virtual
2019-03-14 12:57:48 +00:00
Renovate Bot
b358278c62
Pin dependency wp-cli/wp-cli to 1.5.1
2019-03-14 11:52:54 +00:00
Mike Jolley
062d147b59
When using CLI, run queries without queue
2019-03-14 11:46:41 +00:00
Mike Jolley
520c517410
Merge pull request #23019 from woocommerce/update/onsale-lookup
...
onsale lookup table
2019-03-14 11:10:35 +00:00
Gerhard Potgieter
fbb18db896
Merge pull request #22971 from woocommerce/fix/22958
...
Reword cancelled email
2019-03-14 10:07:12 +02:00
Gerhard Potgieter
8c09e28be4
Merge pull request #22994 from woocommerce/try/product-metabox-no-suggestions-polish
...
Show linkout to Marketplace when there are no product metabox suggestions to display
2019-03-14 09:35:15 +02:00
Gerhard Potgieter
be926cd6ff
Merge pull request #23027 from dhavalgshah/feature/23026
...
Add $this context to woocommerce_email_styles filter.
2019-03-14 09:31:02 +02:00
Gerhard Potgieter
d8f32ff209
Merge pull request #23001 from woocommerce/fix/22993
...
After logging in, update session customer ID
2019-03-14 09:26:00 +02:00
mindmantra
8cb0e42551
Add $this context to woocommerce_email_styles filter.
...
see: #23026
2019-03-14 12:13:55 +05:30
haszari
9f11374edf
wrap button text label for translation
2019-03-14 14:56:35 +13:00
haszari
cfa6f58b8f
wrap no-suggestions strings for translation
2019-03-14 14:56:34 +13:00
haszari
a751e6a054
content & icon for no-suggestions state in product edit metabox
2019-03-14 14:56:33 +13:00
Adrien Foulon
005d7491cf
Cleanup
2019-03-13 22:28:09 +01:00
Adrien Foulon
55339a2870
Cache setter and getter wrapper
2019-03-13 22:21:09 +01:00
Adrien Foulon
8d866d9df7
Fix error wpdb global
2019-03-13 21:19:21 +01:00
Adrien Foulon
322eed0b2c
Fix error
2019-03-13 19:06:47 +01:00
Mike Jolley
6995e6ec84
Merge pull request #22981 from woocommerce/update/22976
...
Updating geolocation download to avoid wp_upload_dir and direct filesystem access
2019-03-13 17:41:54 +00:00
Mike Jolley
8d0ec76cea
Update the table on save
2019-03-13 17:33:44 +00:00
Adrien Foulon
11e8f087e8
Fix get cached query call
2019-03-13 18:18:59 +01:00
Mike Jolley
6de8a03f1a
Merge branch 'master' into update_action_scheduler_2_2_1
2019-03-13 17:18:36 +00:00
Mike Jolley
53896e3149
onsale lookup
2019-03-13 17:14:20 +00:00
Mike Jolley
337b6cdc60
Link had wrong styling - it does not dismiss
2019-03-13 17:07:33 +00:00
Adrien Foulon
99358e7763
Remove whitespaces on empty lines
2019-03-13 18:00:13 +01:00
Adrien Foulon
eefbaff3ea
Remove whitespaces on empty lines
2019-03-13 17:59:34 +01:00
Adrien Foulon
cc65b2d856
Apply code review
2019-03-13 17:54:13 +01:00
Adrien Foulon
80435d779f
Apply code review
2019-03-13 17:52:28 +01:00
Ron Rennick
340bf79fda
add 2 new files missed in original commit
2019-03-13 12:25:05 -03:00
Mike Jolley
e2e124f365
Merge pull request #22083 from woocommerce/feature/variation-search
...
Added storing attribute values as post_excerpt for variations.
2019-03-13 15:09:19 +00:00
Rodrigo Primo
f9cdab66eb
Merge pull request #22889 from woocommerce/fix/22817
...
Hide 'other' payment method from invoice
2019-03-13 12:01:56 -03:00
Mike Jolley
09d92875fa
Merge pull request #23010 from woocommerce/update/lookup-tables
...
Update stock reports to use lookup tables
2019-03-13 15:01:07 +00:00
Mike Jolley
16ff51ded3
Use lookup table ID
2019-03-13 15:00:12 +00:00
Mike Jolley
4b077a22e8
Remove customer name
2019-03-13 14:40:37 +00:00
Mike Jolley
a44cba5923
Update subject
2019-03-13 14:38:04 +00:00
Mike Jolley
1dfb38c0a9
Merge pull request #23014 from woocommerce/update/add-caching-tracks-blog-details
...
Add transient caching to tracks blog data collection.
2019-03-13 14:28:10 +00:00
Mike Jolley
39e5de3324
Merge pull request #23007 from woocommerce/add/wc-blocks-v1/docblock-updates
...
REST API: Add Private REST API docblock and response headers.
2019-03-13 14:26:13 +00:00
Mike Jolley
955e91c5ef
Use internal docblock comment
2019-03-13 14:24:11 +00:00
Ron Rennick
51afb3589b
update version in action scheduler plugin header
2019-03-13 11:01:11 -03:00
Mike Jolley
4b2f7aedd4
Trigger sync after updating meta
2019-03-13 13:53:58 +00:00
Mike Jolley
0002463c61
child_has_stock_status use lookup
2019-03-13 13:48:38 +00:00
Ron Rennick
74789834fe
update action scheduler to version 2.2.1
2019-03-13 10:45:39 -03:00
Mike Jolley
d17dc119bc
SKU lookup
2019-03-13 13:30:49 +00:00
Mike Jolley
df0c432de2
update_product_stock should sync lookup table
2019-03-13 13:30:31 +00:00
Mike Jolley
f6d9e7796f
is_existing_sku use lookup
2019-03-13 13:25:55 +00:00
Gerhard
e86fbf62cc
Add transient caching to the blog_details values tracks collects.
2019-03-13 15:12:07 +02:00
Adrien Foulon
fa9b08c9a4
Make the maybe_update_transients hook static so it's not constructor dependant
...
Because extended classes don't call the parent constructor and that would break BC
2019-03-13 13:47:00 +01:00
Mike Jolley
e6c60dd6c2
Show notice when regeneration is taking place with link to AS
2019-03-13 12:25:20 +00:00
Rodrigo Primo
5d14d30b8c
Remove outdated comment
...
Commit
be05eea5da (diff-133db5662c51f5686d87611121a05a3bL88)
changed how ajax events are stored and now an associative array is not used anymore for both private and non private events. Instead two different arrays are now used one for each type of event.
2019-03-13 09:21:29 -03:00
Rodrigo Primo
ab89222cfa
Fix typo
...
Typo added in be05eea5da (diff-133db5662c51f5686d87611121a05a3bR45)
2019-03-13 09:10:53 -03:00
Adrien Foulon
bc34c6e3eb
Fix php5.2 support
2019-03-13 12:11:49 +01:00
Mike Jolley
2c14a8ddfb
Merge pull request #23006 from woocommerce/fix/phpcs-error
...
Fix error introduced by commit be05eea5da
2019-03-13 10:59:17 +00:00
Adrien Foulon
a520cb5f44
Rename function
2019-03-13 11:55:18 +01:00
Adrien Foulon
b2ad443db5
phpcs
2019-03-13 11:51:48 +01:00
Adrien Foulon
95cbe5c969
phpcs
2019-03-13 11:51:24 +01:00
Mike Jolley
b4cfef95a2
Stop calling notice file
2019-03-13 10:40:38 +00:00
Mike Jolley
54fac746b3
Remove unused notice file
2019-03-13 10:40:11 +00:00
Mike Jolley
6f4eeef2fe
Move deprecated notices to bottom of class and add deprecated tag
2019-03-13 10:37:30 +00:00
Adrien Foulon
13b5a07383
Update class-wc-admin-report.php
2019-03-13 11:35:42 +01:00
Adrien Foulon
ee403d6000
Improve the speed of the admin dashboard by only updating transients once per class
...
While debugging the admin dashboard I found out that some transients where updated up to 5 times during the page load, reading is fast but writting is costy, so the query where adding a total of 200ms to the page load (because they are also huge transients)
I've rewritten the transient storage procedure so that per class a transient is only written once at the end of the request
I also found that a continue was changed for a break line 139 for php7.3 and the new warning it incurs, the problem is it was changed the wrong way, it should have been a "continue 2" to continue the foreach and not a break.
That makes me wonder if some others like this may have slipped in the code.
2019-03-13 11:33:03 +01:00
Mike Jolley
ef352c2b48
Outofstock lookup
2019-03-13 10:10:24 +00:00
Mike Jolley
b4aa0c3915
use found rows
2019-03-13 10:06:49 +00:00
Mike Jolley
f5bd3be2c2
most stocked lookup table
2019-03-13 09:59:14 +00:00
Timmy Crawford
f7b58862f0
Fix phpcs issues.
2019-03-12 17:10:48 -07:00
Timmy Crawford
6c22bfb96a
REST API: Add Private REST API docblock and response headers.
2019-03-12 16:26:10 -07:00
Rodrigo Primo
a41e29e05f
Fix error introduced by commit be05eea5da
...
Commit be05eea5da (diff-133db5662c51f5686d87611121a05a3bR1420)
fixed all the PHPCS violations in includes/class-wc-ajax.php, but it unintentionally changed that the logic of WC_Ajax::json_search_products(). This commit reverts the changes to the old logic while keeping the PHPCS fixes.
Before the modification mentioned above, `$_GET['term']` would be used only if `$term` was empty. After this modification, `$_GET['term']` is used whenever it is set and `$term` (the parameter passed to the method) stopped being used. This commit restores the original logic in that what is passed in the first parameter as `$term` is used by default, and `$_GET['term']` is only used if `$term` is empty.
2019-03-12 20:23:28 -03:00
Mike Jolley
ac21a4bc33
phpcs
2019-03-12 22:26:53 +00:00
Mike Jolley
3b98d2de8d
Switch low stock report to lookup table
...
Baseline page load time down from 60s to 0.7s
2019-03-12 22:26:46 +00:00
Mike Jolley
a6a035ec92
Fix low stock query to ref correct lookup table column
2019-03-12 22:16:42 +00:00
Mike Jolley
c52eac2871
check updated props for variables
2019-03-12 19:22:30 +00:00
Rodrigo Primo
47135c6a68
Merge pull request #22997 from woocommerce/fix/22992
...
Add stock to search results manually
2019-03-12 15:12:43 -03:00
Mike Jolley
203dba5a1f
After logging in, migrate session data
2019-03-12 16:36:15 +00:00
Mike Jolley
5b1814016b
Add stock with different function
2019-03-12 14:48:05 +00:00
Rodrigo Primo
c4d6f3dac3
Replace deprecated WPCS rule
...
This commit replaces all the instances where the WPCS rule `WordPress.VIP.SlowDBQuery` was used with `WordPress.DB.SlowDBQuery`. `WordPress.VIP.SlowDBQuery` was deprecated in WPCS 2.0 and `WordPress.DB.SlowDBQuery` was added as a replacement (see 5f27d8e3a4/CHANGELOG.md (L130)
).
2019-03-12 11:24:09 -03:00
Mike Jolley
f8dded8b49
merge refactor/22762 into master
2019-03-12 13:49:10 +00:00
Mike Jolley
20d7603dd6
Merge branch 'fix/21034'
2019-03-12 13:47:08 +00:00
Mike Jolley
4ab3cc2204
Merge branch 'update/21017'
2019-03-12 13:45:48 +00:00
Mike Jolley
561afbabbd
Merge pull request #22949 from woocommerce/update/22929
...
Update order discount display
2019-03-12 13:35:42 +00:00
Mike Jolley
925ef8a8f5
Merge pull request #22979 from woocommerce/fix/22952
...
Set reply-to address for all emails
2019-03-12 13:34:41 +00:00
Mike Jolley
c39f447ff4
Merge branch 'fix/22937'
2019-03-12 13:27:13 +00:00
Mike Jolley
a5e956e7bf
Merge pull request #22980 from woocommerce/fix/22968
...
Pass user ID when adding coupons via admin
2019-03-12 13:22:40 +00:00
Mike Jolley
638812cdd3
Merge pull request #22904 from woocommerce/update/20577
...
Updates - Docs and ActionScheduler implementation
2019-03-12 13:21:48 +00:00
Peter Fabian
fb0f112c6d
Update the db only once if both title and attributes got updated.
2019-03-12 12:55:15 +01:00
Gerhard
10557868dd
Missing space after !=
2019-03-12 12:04:26 +02:00
Mike Jolley
d8f665bb89
Merge pull request #22936 from woocommerce/fix/21814
...
Setup Wizard: Add keyboard events for custom input toggles
2019-03-12 09:28:37 +00:00
Mike Jolley
72870d808c
Merge pull request #22890 from woocommerce/fix/21785
...
Avoid changing tracking preferences when disconnecting helper
2019-03-11 17:04:29 +00:00
Mike Jolley
1d7059ec90
Add other check in order totals too
2019-03-11 16:59:38 +00:00
Mike Jolley
0211757e47
Merge pull request #22988 from woocommerce/fix/payment-custom-section-saving
...
Refactor WC_Settings_Payment_Gateways::save
2019-03-11 16:08:24 +00:00
Mike Jolley
dbfd06222a
tweak logic to only save ordering when section is empty
2019-03-11 16:06:53 +00:00
Mike Jolley
749493b4f4
Merge pull request #22867 from woocommerce/fix/22838
...
Refactor delete zone/delete zone method data store to remove settings
2019-03-11 15:55:53 +00:00
Mike Jolley
587f792868
Dupe line
2019-03-11 15:55:25 +00:00
Mike Jolley
0877e7d8f7
Merge pull request #22954 from woocommerce/add/blocks-rest-api
...
Merge blocks branch: add 8 product blocks and related API endpoints
2019-03-11 15:18:20 +00:00
Mike Jolley
fbda3a91d8
Merge feature/add-tracks into master
2019-03-11 15:15:50 +00:00
Mike Jolley
cd92c68476
fix offset check
2019-03-11 15:00:42 +00:00
Mike Jolley
b95bf94092
Merge pull request #22984 from woocommerce/fix/skip-order-count-query-when-filtered
...
Don’t query for an order count unnecessarily
2019-03-11 13:28:16 +00:00
Mike Jolley
de509ef041
Merge pull request #22982 from woocommerce/remove/blocks-notice
...
Remove Blocks Plugin Notif
2019-03-11 13:27:49 +00:00
Mike Jolley
e55bb84e8b
Merge pull request #22718 from woocommerce/experiment/product-sorting-index
...
Performance: product sorting lookup table
2019-03-11 13:27:10 +00:00
Mike Jolley
76bbc89c59
Merge pull request #22916 from woocommerce/update/22836
...
Add try catch block to pay_action
2019-03-11 13:25:22 +00:00
Peter Fabian
be292f0209
Removed superfluous filter.
2019-03-11 13:34:31 +01:00
Gerhard
f40692003b
Rework payment gateway settings save functionality so it falls back to saving the current section.
2019-03-11 13:27:17 +02:00
Mike Jolley
9bd38c496e
Delete method
2019-03-11 10:46:57 +00:00
Mike Jolley
b71a7ac4ee
Stray 1
2019-03-11 10:29:14 +00:00
Paul Sealock
6e2c67aef6
dont escape
2019-03-11 11:59:05 +13:00
Paul Sealock
60d478b642
wc_clean
2019-03-11 11:49:56 +13:00
Peter Fabian
d3dfee7353
Updated docs.
2019-03-09 12:09:50 +01:00
Peter Fabian
ec0767b3ce
Added attribute summary prop getters and setters.
2019-03-09 12:09:09 +01:00
Peter Fabian
5256daec07
PHPCS
2019-03-09 12:06:36 +01:00
Caleb Burks
afaf3482c4
Don’t query for an order count unnecessarily
2019-03-08 16:18:31 -06:00
Timmy Crawford
0ebefa53fd
Remove Blocks Plugin Notif
2019-03-08 11:09:15 -08:00
Mike Jolley
87bce1f4a2
Reduce inital delay for geo data
2019-03-08 18:20:31 +00:00
Mike Jolley
15f0d2566d
Use filesystem and hardcoded upload dir
2019-03-08 18:20:17 +00:00
Mike Jolley
143068332d
Pass user ID when adding coupons via admin
2019-03-08 16:14:49 +00:00
Mike Jolley
ff7a941235
Set reply-to address for all emails
2019-03-08 15:55:56 +00:00
Mike Jolley
ddb134fe45
Redirection improvements
2019-03-08 15:11:23 +00:00
Mike Jolley
bea53ebf4f
Handle date offsets on save
2019-03-08 13:36:55 +00:00
Mike Jolley
d9ab3b106e
Clean up date lookup
2019-03-08 13:36:22 +00:00
Mike Jolley
c56d3ede9f
Remove day offsets
2019-03-08 13:35:30 +00:00
Mike Jolley
0e1986df7a
Fix include
2019-03-08 13:11:30 +00:00
Mike Jolley
6f35239a26
Move activate/deactivate hooks to main WC class
2019-03-08 12:50:06 +00:00
Mike Jolley
fcf2a1d027
Move helper includes into helper class
2019-03-08 12:48:40 +00:00
Mike Jolley
574de2e90c
Move helper headers into wc_enable_wc_plugin_headers so they always exist.
2019-03-08 12:44:33 +00:00
Mike Jolley
30d3f1f49e
Filter get_available_payment_gateways for valid results
2019-03-08 11:37:47 +00:00
Mike Jolley
30c58b66cc
woocommerce_payment_gateways - ensure class is valid
2019-03-08 11:32:36 +00:00
Mike Jolley
3b8256414f
Merge pull request #22818 from woocommerce/fix/21800-edge-cases
...
Performance: Image regeneration edge cases
2019-03-08 11:01:30 +00:00
Mike Jolley
15ca2144d3
Merge pull request #22773 from woocommerce/performance/delete-empty-meta
...
Performance: delete empty meta
2019-03-08 10:22:31 +00:00
Mike Jolley
e7c8db0796
Merge pull request #22887 from woocommerce/update/22882-additional-system-status-values
...
Additional System Status Options
2019-03-08 10:15:45 +00:00
Mike Jolley
1e243b43dd
Merge pull request #22962 from woocommerce/update/format-phone-function
...
Phone number sanitize function
2019-03-08 10:08:02 +00:00
Mike Jolley
a3c2dcd8f2
Update from master
2019-03-08 09:50:56 +00:00
Paul Sealock
14d9678513
admin
2019-03-08 10:48:26 +13:00
Paul Sealock
ea4407de99
dione
2019-03-08 10:42:23 +13:00
Paul Sealock
09dec90831
getting there
2019-03-08 10:20:50 +13:00
Paul Sealock
9ee0912104
even more
2019-03-08 10:11:43 +13:00
Paul Sealock
712f06014d
moar
2019-03-08 10:08:34 +13:00
Paul Sealock
e9d02699c4
phpcs
2019-03-08 10:05:59 +13:00
Rodrigo Primo
9574762e8b
Merge pull request #22915 from woocommerce/fix/22894
...
Add woocommerce_get_product_subcategories_cache_key filter
2019-03-07 16:49:17 -03:00
Claudio Sanches
c892ed51a8
Better description
2019-03-07 14:15:10 -03:00
Claudio Sanches
e5e64d1618
Apply wc_sanitize_phone_number in WC_Gateway_Paypal_Request
2019-03-07 14:08:40 -03:00
Claudio Sanches
82aeb2a7f4
Introduced new wc_sanitize_phone_number function
2019-03-07 14:07:32 -03:00
Claudio Sanches
8c3ef28d07
Fixed coding standards
2019-03-07 14:07:14 -03:00
Mike Jolley
5492369fe9
Merge pull request #22857 from woocommerce/feature/marketplace-suggestions
...
Feature/marketplace suggestions
2019-03-07 16:39:14 +00:00
Mike Jolley
3e23010ad6
Merge pull request #22693 from woocommerce/fix/21110
...
Send calling code to PayPal
2019-03-07 16:36:19 +00:00
Mike Jolley
33c576a2fd
Merge pull request #22570 from woocommerce/performance/slow-term-queries
...
Improve slow term ordering queries
2019-03-07 16:33:01 +00:00
Mike Jolley
03863c3316
Merge pull request #22950 from woocommerce/fix/22947
...
Use day, not time, in status widget for caching
2019-03-07 16:31:02 +00:00
Mike Jolley
c0c520442c
Queue events in order
2019-03-07 16:24:52 +00:00
Mike Jolley
f0037ea643
split updates
2019-03-07 16:13:47 +00:00
Mike Jolley
663f724bdd
Cleanup methods
2019-03-07 15:08:22 +00:00
Mike Jolley
3173167e7e
Update indexes
2019-03-07 14:47:46 +00:00
Mike Jolley
dc635b9561
Update search_products to use lookup table
2019-03-07 14:46:01 +00:00
Mike Jolley
0782d39a55
Stock status
2019-03-07 14:32:20 +00:00
Mike Jolley
1ab455ec09
virtual and downloadable
2019-03-07 14:07:51 +00:00
Mike Jolley
94b19dc3ca
SKU and price sorting using lookup table in admin
2019-03-07 13:47:15 +00:00
Mike Jolley
91aa1b92e5
Tool to regen lookup tables
2019-03-07 13:40:12 +00:00
Mike Jolley
dfc539c051
SKU column
2019-03-07 13:34:28 +00:00
Mike Jolley
122eeda7ff
Avoid step rounding on query
2019-03-07 13:01:45 +00:00
Mike Jolley
f6c6c18242
Update from master
2019-03-07 12:50:38 +00:00
Mike Jolley
e7bb5a8f41
Merge branch 'master' into experiment/product-sorting-index
2019-03-07 12:49:25 +00:00
Mike Jolley
434c9b5815
Improve transient
2019-03-07 11:47:19 +00:00
Mike Jolley
236d9827ee
fix transient
2019-03-07 11:33:23 +00:00
Mike Jolley
bb7aa99d4b
Add transients to post tests
2019-03-07 11:21:42 +00:00
Mike Jolley
598ac86e95
Tests
2019-03-07 11:08:29 +00:00
Mike Jolley
89a4eba859
update from 22951
2019-03-07 10:58:14 +00:00
Mike Jolley
c78098c248
Version
2019-03-07 10:15:49 +00:00
Jeff Stieler
68573f6ed5
Increase Tracks performance (perhaps..) ( #22829 )
...
* Don’t block on Tracks requests and lower timeout to 1s.
* Where possible, render Tracks pixels in the page footer instead of making a blocking HTTP request from the server.
* Add direct API call fallback for Tracks event pixels.
2019-03-06 15:55:49 -07:00
Kelly Dwan
b360643582
Add average rating to the products API response
2019-03-06 17:32:31 -05:00
Kelly Dwan
fdefe5feac
Update with latest changes from block-library
2019-03-06 17:32:29 -05:00
Kelly Dwan
ea1b7d9730
Pull in changes from woo blocks PR
2019-03-06 17:28:51 -05:00
Kelly Dwan
5491d6ea55
Add note about source of file
2019-03-06 17:28:50 -05:00
Kelly Dwan
619527bb89
Fix phpcs issue
2019-03-06 17:28:49 -05:00
Kelly Dwan
148b605dbe
Update copying process, copy over minified files
2019-03-06 17:28:49 -05:00
Kelly Dwan
75b5e78561
Import file to register blocks
2019-03-06 17:28:48 -05:00
Kelly Dwan
2b5ab03a2d
Add the built files
2019-03-06 17:28:46 -05:00
Claudio Sanches
f38e877ee4
Updated sanitize callback and fixed coding standards
2019-03-06 17:26:19 -05:00
Timmy Crawford
85713c4c1a
Updates per feedback.
2019-03-06 17:26:18 -05:00
Timmy Crawford
da4867e755
Update text domain.
2019-03-06 17:26:17 -05:00
Timmy Crawford
2b59c5db64
REST API: Add Blocks Products Controller
2019-03-06 17:26:17 -05:00
Timmy Crawford
e17d835e66
REST API: Add wc-blocks/v1/products/categories
2019-03-06 17:26:16 -05:00
Timmy Crawford
f4e17ddcee
REST API: Add wc-blocks/v1/products/attributes controller.
2019-03-06 17:26:15 -05:00
Timmy Crawford
f2fa01d585
PHPCS fixes.
2019-03-06 17:26:15 -05:00
Timmy Crawford
c1313d433c
Updates per feedback.
2019-03-06 17:26:14 -05:00
Timmy Crawford
4311670956
REST API: wc-blocks/v1/products/attributes/%d/terms
2019-03-06 17:26:13 -05:00
Mike Jolley
56fbcfd8af
Include inactive plugins in system status
2019-03-06 18:29:44 +00:00
Mike Jolley
7aa82a1829
Use day, not time, in status widget for caching
2019-03-06 17:25:35 +00:00
Mike Jolley
6f983fb4eb
Merge pull request #22802 from woocommerce/fix/22643
...
Use taxable address when adding/removing coupons
2019-03-06 16:49:34 +00:00
Mike Jolley
95c5d145bb
Merge pull request #22540 from woocommerce/update/price-slider-improvements
...
Make the price filter widget tax aware redux
2019-03-06 16:47:21 +00:00
Mike Jolley
556bfd127f
Merge pull request #22909 from woocommerce/refactor/comment-rating-functions
...
Refactor comment/rating update functions
2019-03-06 16:46:33 +00:00
Mike Jolley
38816eb2ce
Update wording and presentation of discount amount
2019-03-06 16:39:28 +00:00
Mike Jolley
0f3be9fce4
phpcs
2019-03-06 16:17:33 +00:00
Mike Jolley
48a2660f8e
Queue based count population
2019-03-06 14:04:38 +00:00
Mike Jolley
a697c97472
Add rating_count to lookup table
2019-03-06 14:03:44 +00:00
Mike Jolley
b07f3e21db
Merge branch 'master' into experiment/product-sorting-index
2019-03-06 12:54:40 +00:00
Mike Jolley
b6e53d9109
PHP_INT_MAX
2019-03-06 12:46:58 +00:00
Mike Jolley
e1ff1bfae9
Update from master
2019-03-06 12:37:24 +00:00
Mike Jolley
55b27a2afc
Adjust calling code prefix logic in paypal
2019-03-06 12:33:46 +00:00
Mike Jolley
65c0169726
Merge branch 'master' into fix/21110
2019-03-06 12:25:12 +00:00
Mike Jolley
4330b2eb38
Update calling code handling
2019-03-06 12:25:06 +00:00
Mike Jolley
2bb39a4c79
Update from master
2019-03-06 12:08:07 +00:00
Mike Jolley
99455cfe34
update text
2019-03-06 12:00:54 +00:00
Mike Jolley
ea27a3e889
Merge branch 'master' into fix/22937
2019-03-06 11:46:37 +00:00
Mike Jolley
557530e43a
Use wc_format_coupon_code when handling posted values
2019-03-06 11:44:54 +00:00
Mike Jolley
e8aecdb824
Use wc_format_coupon_code when handling posted values
...
wc_clean and other functions strip characters - using wc_format_coupon_code keeps it consistent with post_title formatting.
2019-03-06 11:44:27 +00:00
Mike Jolley
96efb7a93b
Use wc_sanitize_coupon_code
2019-03-06 11:42:07 +00:00
Mike Jolley
315b79c5ac
phpcs
2019-03-06 11:41:58 +00:00
Mike Jolley
39bb476db2
Introduce wc_sanitize_coupon_code
2019-03-06 11:41:52 +00:00
Mike Jolley
cb9edfc9f9
Merge pull request #22751 from woocommerce/fix/21544
...
Fix cart widget in Safari when using browser back button
2019-03-06 11:40:23 +00:00
Joshua Flowers
795b571147
Add scripts to wc setup footer
2019-03-06 11:55:19 +13:00
haszari
1ed027bb09
snooze suggestions in product list (for 24 hours) after a suggestion is dismissed
2019-03-06 10:50:22 +13:00
Mike Jolley
16a0a3e27e
Update from master
2019-03-05 19:03:01 +00:00
Mike Jolley
cc6ca5bdbd
Add deprecated
2019-03-05 19:00:37 +00:00
Mike Jolley
8cb385e3db
Cleanup/test
2019-03-05 18:23:51 +00:00
Mike Jolley
aba2f4713c
Clear caches in api
2019-03-05 18:16:05 +00:00
Mike Jolley
0e943a38d7
Fix wc_get_attribute
2019-03-05 17:02:58 +00:00
Mike Jolley
a42bdf94d0
avoid query in wc_attribute_orderby
2019-03-05 16:53:58 +00:00
Mike Jolley
d03f5d4373
Index by ID and cache
2019-03-05 16:49:45 +00:00
Mike Jolley
ed6c02b8ec
wc_get_attribute caching
2019-03-05 16:21:10 +00:00
Mike Jolley
9452616a7f
wc_get_attribute_taxonomy_labels with cache
2019-03-05 16:19:00 +00:00
Mike Jolley
abc3b6ca47
Use cache helper for invalidation
2019-03-05 16:16:46 +00:00
Mike Jolley
b2a136bfb8
wc_get_attribute_taxonomy_ids function, with cache
2019-03-05 16:10:31 +00:00
Mike Jolley
46bdad07e9
Array init code was wrong
2019-03-05 14:51:58 +00:00
Mike Jolley
a5e72cfc02
Re-order elements and add tabindex
2019-03-05 14:22:59 +00:00
Mike Jolley
2c2891c17a
Merge pull request #22925 from woocommerce/fix/22896
...
Remove structured data from archives and include some recommended fields on single product pages
2019-03-05 14:02:07 +00:00
Mike Jolley
add1765234
Inline docs
2019-03-05 13:49:02 +00:00
Mike Jolley
6d5f5be164
sync_rating_count before average in deprecated method
2019-03-05 13:47:56 +00:00
Mike Jolley
f707eeda3e
Update from master
2019-03-05 13:31:14 +00:00
Mike Jolley
a49d4a04a1
Update throws tags
2019-03-05 13:05:55 +00:00
Mike Jolley
ac6763d0d0
Merge pull request #22820 from woocommerce/fix/22496
...
Make 'refund amount' read-only
2019-03-05 12:56:59 +00:00
Mike Jolley
2d394a2b26
Merge pull request #22888 from woocommerce/fix/22870
...
Add precision to tax in discount class
2019-03-05 12:54:11 +00:00
Gerhard
e36ffaa6f0
Use correct meta key _stock for updating lookup table stock.
2019-03-05 14:38:22 +02:00
Gerhard Potgieter
5a6cc36fce
Merge branch 'master' into experiment/product-sorting-index
2019-03-05 14:04:11 +02:00
Gerhard
0b6e8351d6
PHPCS fixes
2019-03-05 13:59:42 +02:00
Mike Jolley
545cbbb79c
Check for required fields or bail
2019-03-05 11:44:26 +00:00
Mike Jolley
bf11dbf76f
If there is no url on last breadcrumb trail, use current url
...
Fixes #22923
2019-03-05 11:38:53 +00:00
Jeff Stieler
7caba832f6
Refactor Tracks classes to remove singletons and static methods. ( #22930 )
2019-03-04 17:30:01 -07:00
haszari
6caaf80fa6
add a tooltip (Dismiss this suggestion) to clarify dismiss button
2019-03-05 12:20:13 +13:00
Jeff Stieler
c22c3aafa2
Track settings changes. ( #22810 )
...
* Track settings changes.
2019-03-04 15:37:59 -07:00
Paul Sealock
d968b95b53
Add opt in/out to settings page
2019-03-05 11:06:45 +13:00
Mike Jolley
5b07ded976
Update from master
2019-03-04 18:00:14 +00:00
Jeff Stieler
1072d1a275
Tracks: Use wp_doing_ajax() instead of checking constant.
2019-03-04 10:04:48 -07:00
Jeff Stieler
262afba502
Add direct API call fallback for Tracks event pixels.
...
Handles cases where wp_redirect() is called.
2019-03-04 09:59:49 -07:00
Mike Jolley
17a4c6e28a
Set all default content values
2019-03-04 16:56:40 +00:00
Mike Jolley
6f3181ccfb
Settings in admin emails
2019-03-04 16:39:49 +00:00
Mike Jolley
9fd785baa2
Pass additonal content to content functions
2019-03-04 16:38:18 +00:00
Mike Jolley
3463f37f49
Add additonal content setting to each email
2019-03-04 16:33:05 +00:00
Jeff Stieler
22c20b0d32
Where possible, render Tracks pixels in the page footer instead of making a blocking HTTP request from the server.
2019-03-04 08:59:21 -07:00
Jeff Stieler
2e2b3b9bba
Don’t block on Tracks requests and lower timeout to 1s.
2019-03-04 08:59:21 -07:00
Mike Jolley
5d41d753b3
Added additional_content to invoice email
2019-03-04 15:40:20 +00:00
Mike Jolley
64bc5c2e99
Define commonly used placeholders in main class
2019-03-04 15:30:56 +00:00
Mike Jolley
2f6bcb2a6d
I cannot spell
2019-03-04 14:57:49 +00:00
Mike Jolley
003a5bd188
Better placeholder replacement for footer
2019-03-04 14:53:19 +00:00
Mike Jolley
8147b82b88
Feedback
2019-03-04 14:17:11 +00:00
Mike Jolley
f18f4082b2
Merge pull request #22906 from woocommerce/add/downloadable_product_permissions_index
...
get_downloads_for_customer performance improvement via index
2019-03-04 14:15:11 +00:00
Mike Jolley
76fabc9b7e
Merge pull request #22771 from martinsnajdr/flatrate-shipping-cost-filters
...
Shipping method get_option function filters
2019-03-04 13:49:22 +00:00
Mike Jolley
857c5cbc5e
Merge pull request #22855 from woocommerce/fix/22772
...
shop_messages shortcode requires wc_print_notices
2019-03-04 13:44:25 +00:00
Mike Jolley
5937625b5e
Include priceValidUntil
2019-03-04 13:17:27 +00:00
Peter Fabian
224ea5d8af
Merge pull request #22776 from woocommerce/fix/orders-statuses-param-description
...
[REST API] Better description for order's status collection param
2019-03-04 14:14:04 +01:00
Mike Jolley
246c78db73
Add a review to product schema
2019-03-04 13:05:29 +00:00
Mike Jolley
d104bb7d3f
Add SKU with ID fallback
2019-03-04 12:47:40 +00:00
Mike Jolley
52533d9da6
Add URL field
2019-03-04 12:47:31 +00:00
Mike Jolley
6caa0fab61
Tidy data
2019-03-04 12:47:24 +00:00
Mike Jolley
60d8a10bcf
Remove woocommerce_structured_data_product_limit
...
With the removal of generation on archives, the filters `woocommerce_structured_data_product_limit` and `woocommerce_structured_data_product_limited` have no context nor purpose. This commit removes them so full schema is generated when used.
2019-03-04 11:44:52 +00:00
Tim Howe
41de832580
#22912
2019-03-04 11:11:04 +00:00
Joshua Flowers
10826c7bf0
Change wc_ prefix to woocommerce_
2019-03-04 14:16:05 +08:00
Joshua T Flowers
17b786e500
Tracks: Move tracking script to make available on page load ( #22914 )
...
* Filter wc queued js to add tracking script outside of jQuery
* Add tracking script directly to footer
* Move empty tracking function to admin footer hook
2019-03-04 14:16:05 +08:00
Joshua Flowers
9e6836e3a0
Use get_current_step() inside step tracking method
2019-03-04 14:14:45 +08:00
Joshua Flowers
919785bce8
Whitelist specific footer scripts
2019-03-04 14:14:45 +08:00
Joshua Flowers
123940b2ac
Only add marketing tracking on next_step step of OBW
2019-03-04 14:14:45 +08:00
Joshua Flowers
3ab791843d
Track marketing signup on form submission
2019-03-04 14:14:45 +08:00
Joshua Flowers
9128e8c4f5
Add scripts to wc setup footer
2019-03-04 14:14:45 +08:00
Paul Sealock
37d3fff3d6
Merge pull request #22807 from woocommerce/add/tracks-gross-revenue
...
Add gross revenue to Tracks base data.
2019-03-04 09:35:37 +13:00
Claudio Sanches
e131ba5358
Updated per feedback
2019-03-01 20:01:03 -03:00
Mike Jolley
b12f549533
Add try catch block to pay_action
2019-03-01 11:25:31 +00:00
Mike Jolley
7c9932da6d
woocommerce_get_product_subcategories_cache_key filter
2019-03-01 10:55:11 +00:00
Mike Jolley
5af9d968e5
Update from master
2019-03-01 10:29:17 +00:00
Mike Jolley
32417e1017
Unused result vars
2019-03-01 10:28:30 +00:00
Mike Jolley
b08842d45c
Update cache key to handle arrays
2019-03-01 10:22:27 +00:00
Mike Jolley
51dbbac32d
Update from master
2019-03-01 10:19:40 +00:00
Mike Jolley
e845d6ced9
Merge pull request #22885 from yaroslawww/patch-1
...
Update class-wc-regenerate-images.php
2019-03-01 10:17:55 +00:00
Mike Jolley
efb8704f05
If both dimensions are smaller, do not scale
2019-03-01 10:15:01 +00:00
Mike Jolley
c655c2e38a
Merge pull request #22846 from teloconf/master
...
[ADD] Do Action before cart is emptied
2019-03-01 10:04:25 +00:00
Joshua T Flowers
e53724832d
Tracks: Add tracking event when OBW is started ( #22877 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track when the OBW has started
* Rename Jetpack activation tracking method
* Remove duplicate tracking optin check
* Track when option to track is udpated in OBW
* Check if tracking is actively being opted into in is_tracking_enabled()
* Move tracking start check into WC_Admin_Setup_Wizard_Tracking
* Clean up tracking opt-in check logic
2019-03-01 11:12:30 +08:00
Joshua T Flowers
234f3a1bb9
Tracks: Add tracking event for skipped step in OBW ( #22879 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Add ability to get steps from setup wizard
* Track last completed step in options
* Track skipped step name if bypassing the save process
* Track skipped step prior to current instead of step after last completed step
2019-03-01 10:58:11 +08:00
haszari
023579cc17
localise default CTA text + code-style improvements:
...
- else style, fix stale/presumptuous variable names
- localise default CTA text
- use `Learn More` for default, more in line with our latest content
- switch CTA default to button - link style is less common
2019-03-01 14:22:02 +13:00
Gabriel
e442f46db3
Update class-wc-cart.php
2019-02-28 21:56:43 +01:00
Rodrigo Primo
dc40e8e062
Merge pull request #22908 from woocommerce/fix/obsolete-code
...
remove some obsolete code
2019-02-28 14:01:03 -03:00
Mike Jolley
caf3ff61e7
Merge pull request #22218 from woocommerce/add/fb-in-obw
...
Add Facebook to Recommended Step in OBW
2019-02-28 16:45:41 +00:00
Mike Jolley
f9567583a7
Merge pull request #22901 from mihaigrigori/master
...
Change exception string to facilitate translating
2019-02-28 16:13:28 +00:00
Mike Jolley
81767385d6
Tidy up deprecated methods
2019-02-28 14:54:23 +00:00
Mike Jolley
55c49b661e
Missing cache flush when updating sales
2019-02-28 14:51:55 +00:00
yaroslawww
5f9225a1cb
Update class-wc-regenerate-images.php
...
Fix coding styles and naming error
2019-02-28 16:48:18 +02:00
Mike Jolley
a2606a3f1f
Avoid updates on read - this is for legacy where meta was missing and shouldn't be ran for all products
2019-02-28 14:47:06 +00:00
Mike Jolley
4f7941b174
fix method name
2019-02-28 14:46:56 +00:00
Mike Jolley
1c7c6246e9
Comment rating functions should not update the object themselves
2019-02-28 14:46:11 +00:00
Mike Jolley
b7f59b4596
wc_ln_count_ no longer exists
2019-02-28 14:41:07 +00:00
Mike Jolley
04b333484a
These transient no longer exist
2019-02-28 14:38:40 +00:00
Mike Jolley
611bf3b1dd
Price filter + stock widget requires lookup table
2019-02-28 14:24:05 +00:00
Mike Jolley
d407581618
Update types of decimal fields
2019-02-28 14:01:13 +00:00
Gerhard
36f0041673
PHPCS fixes
2019-02-28 15:37:37 +02:00
Gerhard
b8a5a9ec55
Add update routine to add user_order_remaining_expires index and hook it up to the installer for 3.6.0
2019-02-28 15:36:55 +02:00
Gerhard
207a5ef4b3
Add user_order_remaining_expires index to woocommerce_downloadable_product_permissions create table statement.
2019-02-28 15:30:17 +02:00
Mike Jolley
9948c63185
Revise index
2019-02-28 13:12:12 +00:00
Mike Jolley
25117aa77b
Merge pull request #22892 from woocommerce/fix/22886
...
PayPal: Add meta data, before changing order status
2019-02-28 12:10:03 +00:00
Mike Jolley
b903086251
Fix callbacks and remove logging
2019-02-28 11:52:56 +00:00
Mike Jolley
71afa5e590
Update notice wording
2019-02-28 11:16:09 +00:00
Mike Jolley
d59b1c39d7
Remove force link - it can be done in AS
2019-02-28 11:15:58 +00:00
Mike Jolley
dbcfd7dcdc
Update functions may re-run - handle in CLI
2019-02-28 11:11:25 +00:00
Mike Jolley
d990b5192f
Switch to action scheduler
2019-02-28 11:11:08 +00:00
Mike Jolley
f81791dab9
Update notice text + docs links
2019-02-28 10:45:38 +00:00
Joshua T Flowers
64b565465f
Tracks: Add tracking for Jetpack activation in OBW ( #22875 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track when Jetpack is activated
2019-02-28 14:33:00 +08:00
Joshua T Flowers
53f1f5c095
Tracks: Add selected recommended plugins in OBW ( #22874 )
...
* Add tracking to store setup OBW
* Check if current step matches event before firing
* Move step check to switch statement
* Track selected plugins recommended for install
2019-02-28 14:27:05 +08:00
Joshua T Flowers
f48ec6deec
Tracks: Add tracking for shipping units and labels ( #22873 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track shipping units and labels
2019-02-28 14:22:13 +08:00
Mihai Grigori
8cf31c3c3d
Change exception string to facilitate translating
2019-02-28 07:07:26 +02:00
Joshua T Flowers
a91adfa087
Tracks: Add selected payment gateways in OBW ( #22872 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track payment gateways in OBW
* Combine arrays into comma separate strings
2019-02-28 11:58:08 +08:00
Joshua T Flowers
9f1b111692
Tracks: Add store setup event in OBW ( #22860 )
...
* Add tracking to store setup OBW
* Check if current step matches event before firing
* Move step check to switch statement
* Extract save events into separate method
2019-02-28 11:28:07 +08:00
Mike Jolley
9749f5a2a9
Add progress bar to CLI command
2019-02-27 16:46:53 +00:00
Martin Šnajdr
4f9d47ea25
PR requested changes: shipping instance option filter moved to get_instance_option function, filters renamed.
2019-02-27 17:31:51 +01:00
Mike Jolley
dc49afc251
Update group by clause
2019-02-27 15:45:05 +00:00
Mike Jolley
2e4bcebfb8
Ignore specific rules
2019-02-27 15:33:51 +00:00
Mike Jolley
a89caf0b89
Add wrapper for is_plugin_active
2019-02-27 15:25:27 +00:00
Mike Jolley
49065c0d1a
Add meta data, before changing order status
2019-02-27 14:50:37 +00:00
Mike Jolley
0b3a57c96f
Avoid changing tracking preferences when disconnecting helper
2019-02-27 14:04:50 +00:00
Mike Jolley
fd3173f63a
Hide 'other' payment method from invoice
2019-02-27 13:56:15 +00:00
Mike Jolley
0469bbe8b0
Merge pull request #22884 from woocommerce/fix/22861
...
Remember tracking setting when going through the OWB again
2019-02-27 13:46:31 +00:00
Mike Jolley
807878692b
Add precision to tax
2019-02-27 13:43:01 +00:00
Gerhard
5cfa6fc3db
PHPCS fixes
2019-02-27 15:24:50 +02:00
Gerhard
497d082b03
Refine Dropin and MU Plugin report functionality a bit. Added option to show if connected to WooCommerce.com.
2019-02-27 15:19:12 +02:00
Mike Jolley
1908daf2b4
Merge pull request #22774 from sasagar/fixing-order-of-jp-address
...
Fixing order of JP address.
2019-02-27 12:59:02 +00:00
Mike Jolley
cc8e516f7a
Merge pull request #22786 from woocommerce/improve/user-registration
...
Improve user's display_name generation during checkout
2019-02-27 12:55:56 +00:00
Mike Jolley
c3033247ba
Merge pull request #22783 from woocommerce/fix/22765
...
Only set user first and last names when those fields are empty
2019-02-27 12:37:42 +00:00
Mike Jolley
504e457c31
Merge pull request #22852 from woocommerce/fix/22842
...
Prevent a few structured data warnings on product catalog
2019-02-27 12:32:28 +00:00
Gerhard
70f4935236
Fix logic to avoid setting to no again
2019-02-27 14:30:00 +02:00
Gerhard
bf57a037c6
First go at adding dropins and mu plugins to system status report
2019-02-27 14:27:53 +02:00
Mike Jolley
7369ffdf42
Merge pull request #22853 from Dartui/fix-select2-tooltip
...
Remove whitespace characters from Select2 option title
2019-02-27 12:25:10 +00:00
Mike Jolley
2d5e834cf2
Merge branch 'pr/22822'
2019-02-27 11:56:08 +00:00
Mike Jolley
c854e74471
Spacing
2019-02-27 11:56:00 +00:00
yaroslawww
bb8bf5f749
Update class-wc-regenerate-images.php
...
Sometimes imagedata has not $imagedata['sizes']['full'] params. In my case, due to the fact that I am loading the SVG picture.
Therefore, an error is visible *Undefined index: height in class-wc-regenerate-images.php on line 222*
Therefore, a check for the emptiness of these parameters is added.
2019-02-27 13:53:32 +02:00
Gerhard
72ea7b05e7
Move tracking check to the if statement to avoid writing to the DB when it already has a value stored.
2019-02-27 13:38:36 +02:00
Mike Jolley
f90daea1d5
Merge pull request #22799 from woocommerce/remove/cron-plugin-theme-installer
...
Remove old plugin/theme background installer hooks
2019-02-27 11:38:32 +00:00
Gerhard
a1c3048318
Keep tracking enabled if already enabled when saving the wizard.
2019-02-27 12:55:49 +02:00
Konstantin Kovshenin
9447afbc47
Update Marketplace suggestions endpoint URL
2019-02-27 12:26:14 +03:00
haszari
d5287b3f07
switch in WCCOM new (versioned) suggestions host/URL
2019-02-27 16:12:38 +13:00
Paul Sealock
e2697629b9
Merge pull request #22794 from woocommerce/add/tracks-orders_edit_status_change
...
Tracks: Orders edit status change
2019-02-27 12:43:02 +13:00
Claudio Sanches
f95f0f519e
Fixed coding standards
2019-02-26 19:59:04 -03:00
haszari
0dcc87110b
Merge branch feature/marketplace-suggestions into add/product-edit-suggestions
...
# Conflicts:
#assets/css/admin-rtl.css
#assets/css/admin.css
#assets/css/marketplace-suggestions-rtl.css
#assets/css/marketplace-suggestions.css
#assets/css/marketplace-suggestions.scss
#assets/js/admin/marketplace-suggestions.js
#includes/admin/class-wc-admin-assets.php
#includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
2019-02-27 10:56:13 +13:00
haszari
8dbda1b9c9
revert suggestion-related changes in helper:
...
- no longer required, now using active plugins for suggestions
- get_local_woo_plugins needs to not be cached
- left plugin `slug` in get_local_woo_plugins values, may be useful
2019-02-27 10:19:56 +13:00
haszari
69e3856188
show/hide suggestions based on which extensions are active:
...
- was previously based on folder names of installed plugins
2019-02-27 10:13:48 +13:00
Mike Jolley
d5ab20d1a5
get ID before running actions
2019-02-26 20:29:17 +00:00
Mike Jolley
937e0f22f0
Refactor delete zone/delete zone method data store to remove settings
2019-02-26 16:53:52 +00:00
Gerhard Potgieter
8722317956
Merge pull request #22775 from woocommerce/update/22525
...
Set no-transform cache header to opt out of weblight
2019-02-26 18:22:57 +02:00
Gerhard Potgieter
cc857be201
Merge pull request #22811 from woocommerce/add/orders-list-suggestions
...
Show marketplace suggestions in orders list empty state
2019-02-26 18:22:02 +02:00
Gerhard Potgieter
dbe93b96c4
Merge pull request #22865 from woocommerce/fix/22863
...
Add alt text to gallery thumbnail
2019-02-26 18:20:35 +02:00
Gerhard Potgieter
3455b2c1cb
Merge pull request #22830 from woocommerce/add/marketplace-updater-wc-queue
...
Update Marketplace suggestions data using WC_Queue
2019-02-26 17:55:33 +02:00
Mike Jolley
017f0e5e0d
Merge pull request #22834 from nishitlangaliya/issue-22757
...
feat: wc_product_stock_status_options filter added for stock status options
2019-02-26 14:06:02 +00:00
Mike Jolley
20eb503128
Add alt text to gallery thumbnail
2019-02-26 14:03:25 +00:00
Naveen giri
913b8e84bf
Fix wpcs error and avoid unnecessary checks
2019-02-26 18:31:34 +05:30
Gerhard
3dde01570a
Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore.
2019-02-26 12:44:27 +02:00
Gerhard
1e21ebe367
Remove the callbacks only
2019-02-26 12:25:12 +02:00
Mike Jolley
176965d139
Merge pull request #22825 from thatwasnotme/fix/data-stores-docs-param-type
...
Correct invalid param type from id to int
2019-02-26 10:24:58 +00:00
Gerhard
ccbb8313b6
Revert "Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron."
...
This reverts commit 0f771bf4fe
.
2019-02-26 12:24:56 +02:00
Mike Jolley
68c1ec6763
Merge pull request #22826 from woocommerce/fix/22708
...
Calculate shipping before totals during checkout update
2019-02-26 10:24:02 +00:00
Peter Fabian
4e177d264d
Corrected comment.
2019-02-26 11:15:16 +01:00
Peter Fabian
06118db3d5
Added lazy-update of post_excerpt for variations to avoid the need for db update routine.
2019-02-26 11:11:45 +01:00
Paul Sealock
260481522e
better return comment
2019-02-26 16:34:43 +13:00
Jeff Stieler
fe841ecc0b
Add gross revenue to Tracks base data.
2019-02-26 16:31:26 +13:00
Mike Jolley
6c35df1551
Return string
2019-02-25 22:01:22 +00:00
Mike Jolley
8792b53ecb
shop_messages shortcode requires wc_print_notices
2019-02-25 22:01:07 +00:00
haszari
c45a39676c
use safe get for API request, linter fixes, doc comments
2019-02-26 10:07:42 +13:00
Krzysztof Grabania
946b1e2469
Remove whitespace characters from Select2 option title
2019-02-25 20:12:54 +01:00
Paul Sealock
bf2561270a
remove check
2019-02-26 07:59:12 +13:00
Paul Sealock
0763edaeea
Change prefix to wcadmin
2019-02-26 07:57:44 +13:00
Claudio Sanches
80aee99fee
Prevent a few structured data warnings
...
This prevents warnings about 'image', 'description' and 'sku'.
'brand' included as empty fields just to register.
Note that warnings still comes for empty fields like 'sku' or 'brand'.
This is the message that should throw from Google Console:
> The brand field is recommended. Please provide a value if available.
Since is recommended, this PR should solve the max warnings as possible.
Fixes #22842
2019-02-25 15:49:14 -03:00
nishitlangaliya
ee621eec8a
fix: filter prefix changed and unit test added for fn:wc_get_product_stock_status_options
2019-02-25 19:03:57 +05:30
Gabriel
8a9990f98d
[ADD] Do Action before cart is emptied
2019-02-25 06:01:38 +01:00
haszari
97524aab16
Merge branch 'feature/marketplace-suggestions' into add/product-edit-suggestions
...
# Conflicts:
# includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
+ fix linter errors / warnings
2019-02-25 16:12:24 +13:00
haszari
1aff17f0b9
Merge branch 'feature/marketplace-suggestions' into add/orders-list-suggestions
2019-02-25 16:05:04 +13:00
haszari
556bd1b372
remove hard-coded test suggestion data
2019-02-25 13:34:59 +13:00
Jeff Stieler
41e79ace80
Add Tracks events for product import start and finish.
2019-02-25 11:36:39 +13:00
haszari
764926f30c
rename product edit suggestions contexts for consistency
2019-02-25 10:21:22 +13:00
Valerie
8a796138ef
OBW: Add Facebook to recommended step
...
The end date for the Facebook recommendation
is October 8, 2019.
When the option is checked, this will install the extension
'Facebook for WooCommerce' on the user's site.
2019-02-23 17:40:37 -05:00
haszari
041068a705
use full path when including container template, rename folder 'views'
2019-02-24 09:37:33 +13:00
nishitlangaliya
53b5be7e83
feat: wc_product_stock_status_options filter added for stock status options for variable product
2019-02-23 11:10:22 +05:30
Valerie
ca316d8933
OBW: Remove customized blurb on recommended step
2019-02-22 21:14:22 -05:00
Konstantin Kovshenin
1dad53d5e0
Update Marketplace suggestions data using WC_Queue
...
Schedules an update task to run as soon as possible to fetch the
suggestions data, and cache it for a week. Failures are cached for
a day.
2019-02-22 22:34:18 +03:00
Konstantin Kovshenin
a0af355a45
Change marketplace suggestions label to "Get more options"
2019-02-22 21:16:13 +03:00
Claudio Sanches
14fa222347
Merge pull request #22676 from woocommerce/add/woo-identity
...
Tracks: add Woo identity
2019-02-22 15:10:22 -03:00
Claudio Sanches
8ae61b75e3
Clean up
2019-02-22 15:08:23 -03:00
Claudio Sanches
9250ff0df5
Better check for Jetpack
2019-02-22 15:01:13 -03:00
Claudio Sanches
bad7860e7e
Check if file exists before loading
2019-02-22 15:00:33 -03:00
Mike Jolley
e21912294a
calc shipping before totals
2019-02-22 16:43:42 +00:00
Tarik Causevic
5f87fa49e1
Correct invalid param type from id to int
2019-02-22 17:39:58 +01:00
Naveen giri
f741d507ba
Bugfix/#22821: Add Fix for Warning and Notices on save attribute button click
2019-02-22 19:27:16 +05:30
Mike Jolley
27ac2e1577
phpcs
2019-02-22 13:33:41 +00:00
Mike Jolley
d07d1cf0b0
If taxes are enabled, make the refund box readonly
2019-02-22 13:30:49 +00:00
Mike Jolley
0c2bc16bc1
Improved ratio and size matching code to prevent false positives
2019-02-22 12:10:54 +00:00
Mike Jolley
d31fbb5bf3
Helper to get full size dimensions
2019-02-22 12:10:28 +00:00
Mike Jolley
4a383fa832
When resizing, avoid extra checks via our filter
2019-02-22 12:10:16 +00:00
Mike Jolley
21f98555dc
Image downsize without filters
2019-02-22 12:09:59 +00:00
Konstantin Kovshenin
86d8065f3b
Remove debug code
2019-02-22 12:11:54 +03:00
Konstantin Kovshenin
25a72cc5f3
Add missing HTML template that renders the product data panel content
2019-02-22 12:03:58 +03:00
Konstantin Kovshenin
559409bccb
Remove hard-coded JSON test data
2019-02-22 11:55:56 +03:00
Konstantin Kovshenin
901d41bdfa
Marketplace suggestions in Edit Product screen
...
Adds a new tab to Woo's product data metabox and renders the
appropriate containers for JS to inject some Marketplace
suggestions.
2019-02-22 11:52:17 +03:00
haszari
4af4ce5783
allow suggestions on orders list + move logic into suggestions class
2019-02-22 10:55:37 +03:00
haszari
07a1ac7868
(temporary) add hard-coded fake orders-list suggestion data
2019-02-22 10:55:19 +03:00
haszari
3fcdc65283
style orders list suggestions + remove debug code
2019-02-22 20:55:03 +13:00
haszari
4e42021578
render suggestions containers (& unstyled suggestions) in orders list
2019-02-22 16:13:37 +13:00
haszari
24bbb9267e
allow suggestions on orders list + move logic into suggestions class
2019-02-22 16:11:34 +13:00
haszari
124e1a7b4a
(temporary) add hard-coded fake orders-list suggestion data
2019-02-22 16:06:18 +13:00
Jeff Stieler
04a1b7d79d
Track when product categories are created. ( #22790 )
...
* Track when product categories are created.
* Product category tracking: rename page property and include parent category ID.
* Fix PHPCS issues with product category tracking event.
2019-02-21 18:38:50 -07:00
Jeff Stieler
88fdbae5da
Track when a product is published. ( #22788 )
2019-02-21 18:34:06 -07:00
haszari
37578aa5d4
Merge branch master into feature/marketplace-suggestions
...
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
haszari
163af89ab3
MIA suggestions data should be cached as a real array, not text
2019-02-22 12:34:43 +13:00
haszari
62d4b5e395
Improve clarity and logic for disabling suggestions:
...
- Use a filter rather than option
- Use return-early style in function for clarity
- Ensure user has 'install_plugins' capability
2019-02-22 12:31:02 +13:00
Jeff Stieler
e41b0985f3
Track Subscriptions connection actions ( #22805 )
...
* Track when the Helper connection process is started.
* Track when the Helper connection process is cancelled.
* Track when the Helper connection process has completed successfully.
* Track when the Helper has been disconnected.
* Track when the Helper refreshes subscriptions.
2019-02-21 16:28:15 -07:00
Paul Sealock
24c324ae4a
remove phpcs ignore
2019-02-22 12:24:31 +13:00
Paul Sealock
158cf33ded
add sanitize_text_field
2019-02-22 12:23:37 +13:00
haszari
48946b3cc6
Cache local woo plugins info rather than slugs-only subset:
...
- cache woo_plugins object for more general use
- streamline get_local_woo_plugin_slugs using pluck
2019-02-22 12:17:38 +13:00
haszari
20c039d946
removed redundant `get_plugin_slug`
2019-02-22 12:04:22 +13:00
haszari
9a07c70cfc
only enqueue marketplace suggestions styles if they are enabled
2019-02-22 12:02:17 +13:00
Paul Sealock
3f8b3bc1fd
_woocommerce_tracks_anon_id to customere data store
2019-02-22 11:49:14 +13:00
Paul Sealock
851a2557f6
Tracks: Add a PHP client
2019-02-22 11:48:17 +13:00
Jeff Stieler
5c414507f9
Add Tracks events for product import start and finish. ( #22787 )
...
* Add Tracks events for product import start and finish.
* Move tracks event firing code into classes grouped by category/kind.
* Fix PHPCS warnings/errors with product and importer event tracking.
* Include products count in base Tracks data. (#22791 )
* Add extensions page view tracking. (#22803 )
* Add extensions page view tracking.
* Add tracking for extension searches. (#22804 )
2019-02-21 15:45:43 -07:00
Claudio Sanches
9ca8f97de3
Merge pull request #22792 from woocommerce/fix/product_edit-name
...
Fixt product_edit to match the event in the spreadsheet
2019-02-21 19:37:15 -03:00
haszari
a7dd094b3a
frontload suggestion data as script data, remove ajax request
2019-02-22 11:23:09 +13:00
Paul Sealock
49f601cc75
Tracks: Add a PHP client
2019-02-22 10:11:39 +13:00
Mike Jolley
e982e4027a
unused variables
2019-02-21 17:37:16 +00:00
Mike Jolley
78ebe9496f
Move caching
2019-02-21 17:35:41 +00:00
Mike Jolley
a4ac312854
Correct docblock
2019-02-21 17:15:37 +00:00
Mike Jolley
d7c2aaaadb
Avoid get post
2019-02-21 17:15:24 +00:00
Mike Jolley
54c1ef8615
Avoid trying to resize small images
2019-02-21 16:58:40 +00:00
Mike Jolley
287d65ab65
Add caching to get image size
2019-02-21 16:58:28 +00:00
Mike Jolley
e830bd739a
Use taxable address when adding/removing coupons
2019-02-21 16:23:20 +00:00
Gerhard
0f771bf4fe
Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron.
2019-02-21 12:50:12 +02:00
haszari
f2deef861e
prefix AJAX actions to reduce chance of collision
2019-02-21 15:56:26 +13:00
haszari
950b873583
only display suggestions for Englishish locales
2019-02-21 15:20:16 +13:00
haszari
ea5d3870ba
support global opt-out of suggestions via user option 'woocommerce_allow_marketplace_suggestions'
2019-02-21 15:04:38 +13:00
haszari
a9b7bfc513
move products list suggestions container render into module behind hook + move template near module, don't use wc_get_template to render
2019-02-21 14:38:04 +13:00
Paul Sealock
e4cf8a632b
Fixt product_edit to match the event in the spreadsheet
2019-02-21 14:05:35 +13:00
haszari
4c8436122f
move suggestions class into admin/ and require from admin::includes
2019-02-21 12:44:21 +13:00
haszari
71250c30a2
tidy up main marketplace suggestions module, make it a real class +
...
+ require it for admin only
+ fix issue with retrieving dismissed suggestions user meta value
2019-02-21 12:37:10 +13:00
haszari
5c1e20c7d1
store dismissed suggestions in user meta, don't manually json-encode
2019-02-21 11:50:03 +13:00
haszari
e53f92ae0d
move woo-plugin slugs into a helper routine + cache installed woo plugins in a transient
2019-02-21 11:27:53 +13:00
haszari
9986c4482c
remove some extra whitespace
2019-02-21 10:21:23 +13:00
haszari
dd27bf278b
cache empty suggestions if API fails, to reduce congestion/thrashing +
...
+ don't use wp_remote_safe_get – overkill
+ use wp_send_json_success to streamline/simplify API data ajax handler
2019-02-21 10:20:58 +13:00
Claudio Sanches
79847ccb93
Fixed coding standards
2019-02-20 16:30:46 -03:00
Claudio Sanches
5302434057
Fill user first and last name during checkout
2019-02-20 16:29:34 -03:00
Claudio Sanches
8b8498a37a
Included extra argument into wc_create_new_customer
...
Allows passing extra arguments to wp_insert_user() function
2019-02-20 16:18:43 -03:00
Claudio Sanches
efaa723a5b
Only set user first and last names when those fields are empty
2019-02-20 13:55:51 -03:00
Mike Jolley
9529d6eee7
Use total, not amount, when calculating fees
2019-02-20 16:22:20 +00:00
Martin Snajdr
1c678372d4
Shipping cost filters removed & added two additional parameters get_option function filters
2019-02-20 15:59:40 +01:00
Mike Jolley
b65f93c756
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-20 12:45:34 +00:00
Mike Jolley
6b41041883
Merge pull request #22777 from woocommerce/fix/22730
...
check low_stock for empty string vs isset
2019-02-20 12:44:17 +00:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Mike Jolley
ffa230de90
Escape html entities before passing to WP/photoswipe
2019-02-20 11:49:55 +00:00
Martin Snajdr
89016f1e70
WP coding standards fix.
2019-02-20 11:57:03 +01:00
Martin Snajdr
dfd4f4ea6d
Filters added to shipping method function get_option
2019-02-20 11:54:59 +01:00
haszari
6b8366eef9
pull real suggestions data from S3, remove hard-coded test data
2019-02-20 20:24:05 +13:00
haszari
4c1caf9171
display icon images in suggestions + styling tweaks for header/footer
2019-02-20 11:46:06 +13:00
Paul Sealock
1b62228faf
Tracks: Add a PHP client
2019-02-20 11:15:33 +13:00
Ron Rennick
e9a98ce4ae
fixes from review
2019-02-19 15:37:45 -04:00
Ron Rennick
4c7f61e123
phpcs except for ignore use of $_POST
2019-02-19 13:41:14 -04:00
Claudio Sanches
8c18367e57
[REST API] Better description for order's status collection param
2019-02-19 14:17:16 -03:00
Mike Jolley
b5219aac31
Add extra cache headers
2019-02-19 16:35:26 +00:00
SASAGAWA, Kiyoshi
3b6bbd2f3d
Fixing order of JP address.
...
JP address must be ordered as 'Postal Code' -> 'State (Prefecture)' -> 'City' -> 'address'.
Changing the priority.
2019-02-20 01:20:02 +09:00
Mike Jolley
d45734b6f3
Tweak indexes tests to test shipping indexes correctly
2019-02-19 15:35:28 +00:00
Mike Jolley
5749369ba5
Update coupons and orders to use update_or_delete_post_meta
2019-02-19 15:35:05 +00:00
Ron Rennick
a2abe8783e
check low_stock for empty string vs isset
2019-02-19 11:08:14 -04:00
Martin Snajdr
a6499d83ab
Flat rate shipping cost / class cost filters added.
...
Allows to tweak flatrate shipping cost / class cost before it gets
calculated and applied to shipping. Very useful for multicurrency
plugins, because you can add field for fixed shipping cost in another
currency and use this value instead of the default value from cost
field.
2019-02-19 15:49:35 +01:00
Mike Jolley
ea22b1cf47
Wrong var name
2019-02-19 13:24:29 +00:00
Mike Jolley
c6871bb107
Use update_or_delete_post_meta - exclude _tax_class which may be empty
2019-02-19 13:23:24 +00:00
Mike Jolley
8c82333034
update_or_delete_post_meta method which does what it says
2019-02-19 13:23:09 +00:00
Mike Jolley
5397e4ec1a
Merge pull request #22329 from woocommerce/enhancement-manual-stock-changes/21754
...
Product stock adjustments with manual order line item changes
2019-02-19 10:00:49 +00:00
Mike Jolley
07eadfeb72
Merge pull request #22760 from woocommerce/performance/webhook-loading
...
Performance: webhook loading
2019-02-19 09:58:06 +00:00
Mike Jolley
15bcef85e9
Merge pull request #21090 from woocommerce/fix/20937-v0.1
...
Added test if request is a REST API request so that cart is not loaded.
2019-02-19 09:54:48 +00:00
Mike Jolley
bdf77f5648
Merge pull request #22423 from woocommerce/performance/find-matching-variations
...
Performance - Finding matching variations
2019-02-19 09:53:34 +00:00
Mike Jolley
1e74b2567f
Merge pull request #22357 from woocommerce/pr/22125
...
State and country field handling improvements
2019-02-19 09:52:34 +00:00
Mike Jolley
2529cd60cd
Merge pull request #22731 from woocommerce/update/21952
...
Prevent webhooks for drafts and correct create vs updated for manual orders
2019-02-19 09:50:51 +00:00
Mike Jolley
de642211d0
Merge pull request #22735 from woocommerce/fix/maybe_set_date_paid
...
If date paid is not set but payment complete status has passed, set it
2019-02-19 09:49:33 +00:00
Mike Jolley
9076fde5b0
Merge pull request #22740 from woocommerce/fix/22403
...
Check for decoded taxonomy name when unsetting terms
2019-02-19 09:47:20 +00:00
Mike Jolley
dab6fcd43d
Merge pull request #22737 from woocommerce/fix/22733
...
Fix save logic by moving setter into loop grabbing the value
2019-02-19 09:46:34 +00:00
Mike Jolley
55bd0e7937
Merge pull request #22736 from woocommerce/fix/22703
...
Importer - Variations cannot be drafts - set to private.
2019-02-19 09:45:17 +00:00
Mike Jolley
004a0d7c03
Merge pull request #22692 from woocommerce/fix/22686
...
Update CA address format
2019-02-19 09:44:50 +00:00
Mike Jolley
7306bf6382
Merge pull request #22763 from woocommerce/fix/paypal-bn-code
...
Move PayPal BN partner ID
2019-02-19 09:42:05 +00:00
haszari
cc51dd4376
style products empty header/footer + support link style:
...
- added link-text to trigger link style for suggestion CTA, button is now opt-in
- made suggestion rendering more generic, should display something sensible if there are missing attribs
- all CTA links/buttons open in new tab via target attr
2019-02-19 12:22:06 +13:00
haszari
9cd81c371e
add header & footer to products empty suggestions box
2019-02-19 11:54:58 +13:00
Peter Fabian
d405c28bb7
Added back check for empty REQUEST_URI to authentication function, as it's still needed, the value is used further down.
2019-02-18 22:53:58 +01:00
Peter Fabian
989fad5a7e
Perhaps it does not make much sense to filter empty URI if it's REST request or not.
2019-02-18 22:52:39 +01:00
haszari
c7b630b1f8
update products list empty state (incl. suggestions) to latest designs
2019-02-19 10:46:44 +13:00
Claudio Sanches
8388325985
PHPCS ignore only what is necessary
2019-02-18 18:45:07 -03:00
Claudio Sanches
096e92554b
Only disable WordPress.DB.SlowDBQuery.slow_db_query_tax_query
2019-02-18 18:42:11 -03:00
Claudio Sanches
88984da13a
Merge branch 'master' into performance/find-matching-variations
2019-02-18 18:41:17 -03:00
Claudio Sanches
4d5c6b9042
Use short cuts for wpdb properties
2019-02-18 18:38:29 -03:00
Claudio Sanches
ff614f4f99
Catch WC_Data_Exception to avoid black screen
...
Also incldued a check to avoid duplicated messages about invalid billing
address emails.
2019-02-18 17:25:25 -03:00
Claudio Sanches
02ee0f21bb
Fixed coding standards
2019-02-18 16:48:01 -03:00
Peter Fabian
42855592e4
Updated call to reflect function change.
2019-02-18 18:59:37 +01:00
Peter Fabian
ba12cf723c
Renamed filter and reused the function in auth code.
2019-02-18 18:54:56 +01:00
Mike Jolley
b9e871060c
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-18 17:20:54 +00:00
Mike Jolley
8abe75f36d
Merge branch 'fix/21463'
2019-02-18 17:20:48 +00:00
Mike Jolley
acd933a7dd
Merge pull request #22729 from woocommerce/fix/22489
...
Check for _reduced_stock meta when restocking refunded items
2019-02-18 17:01:15 +00:00
Mike Jolley
dc883012b8
Missed null check in wc_load_webhooks
2019-02-18 16:58:16 +00:00
Mike Jolley
5bb5ae6265
Update from master
2019-02-18 16:54:24 +00:00
Mike Jolley
ad12ddd2c2
wc_maybe_adjust_line_item_product_stock should return false if nothing happens
2019-02-18 16:45:55 +00:00
Mike Jolley
624431d875
Merge pull request #22741 from woocommerce/fix/22701
...
Put back status parameter after extra processing.
2019-02-18 16:41:20 +00:00
Mike Jolley
3ededc2a07
Move BN partner ID
2019-02-18 16:29:29 +00:00
Peter Fabian
6f9ec2c7de
Removed db upgrade routines.
2019-02-18 17:22:50 +01:00
Peter Fabian
baccb21bad
PHPCS fix.
2019-02-18 17:22:29 +01:00
Peter Fabian
618355bcab
Merge branch 'master' into feature/variation-search
...
# Conflicts:
# includes/class-wc-install.php
# includes/wc-update-functions.php
2019-02-18 17:18:44 +01:00
Mike Jolley
4fd2a9f77e
Update from master
2019-02-18 15:04:58 +00:00
Mike Jolley
71d3121872
Performance: Support pagination to avoid double queries to search webhooks
2019-02-18 14:58:32 +00:00
Mike Jolley
4b3c1660f1
Dedicated count method
2019-02-18 13:41:14 +00:00
Mike Jolley
14149e4d54
phpcs
2019-02-18 13:41:06 +00:00
Mike Jolley
d787c34206
get_webhooks_ids escaping
2019-02-18 13:34:13 +00:00
Mike Jolley
3a4ef0a1d8
Avoid getting all webhook ids
2019-02-18 13:19:12 +00:00
Mike Jolley
d0438264ff
Add limit to wc_load_webhooks
2019-02-18 13:15:32 +00:00
Mike Jolley
0c53145f2b
Removed limit option from get_webhooks_ids - since transient stores all ids anyway, this logic makes more sense elsewhere
2019-02-18 13:13:59 +00:00
Mike Jolley
30db8a8d9c
version comment
2019-02-18 13:07:57 +00:00
Mike Jolley
1d46294ee8
Update versions
2019-02-18 13:07:04 +00:00
Mike Jolley
a662934355
phpcs
2019-02-18 12:53:59 +00:00
Mike Jolley
d2682170fd
Set woocommerce_load_webhooks_limit to no limit
2019-02-18 12:49:07 +00:00
Mike Jolley
fa97d1a791
Update reduced stock amount under some circumstances
2019-02-18 12:27:08 +00:00
Mike Jolley
fdd8a354e0
Merge pull request #22536 from woocommerce/update/21524
...
Delay `woocommerce_loaded` hook until all plugins are loaded.
2019-02-18 11:57:20 +00:00
Mike Jolley
afe219d854
Select an option vs state
2019-02-18 11:49:46 +00:00
Mike Jolley
4672a47d67
Update from master
2019-02-18 11:41:05 +00:00
haszari
012da5da24
support dismissing empty-state suggestions + polish dismiss styling:\n- hover style for x\n- disable border/underline active state inherited from <a>\n- layout styling for empty-state suggestions, button on right\n- make test data more like mockup (no category recommendation in list)
2019-02-18 15:55:26 +13:00
haszari
4ea4e6591a
ensure suggestion dismiss API / nonce is provided to js (missed in last commit)
2019-02-18 11:46:22 +13:00
Chris Kreidl
63492aa98b
added IDs to other input fields for consistency
2019-02-16 22:59:33 -05:00
Mike Jolley
3abe162bd6
Error handling in wc_ajax_headers
2019-02-15 17:23:34 +00:00
Mike Jolley
be05eea5da
phpcs all the things
2019-02-15 17:09:45 +00:00
Mike Jolley
3d8c58e110
status_widget_stock_rows lookups
2019-02-15 13:37:51 +00:00
Mike Jolley
35d2161fa9
Stock lookup
2019-02-15 13:05:46 +00:00
Mike Jolley
3309276e82
Renamed table to wc_product_meta_lookup
2019-02-15 12:37:45 +00:00
Mike Jolley
08e8c76eab
Update tests
2019-02-15 12:16:59 +00:00
Mike Jolley
048f33935c
fix method name
2019-02-15 11:50:26 +00:00
haszari
bf9f14c0b6
ajax api for dismissing specific marketplace suggestions (first cut)
2019-02-15 14:52:24 +13:00
haszari
5737a1a388
pull suggestion data from (proposed) S3 endpoint:
...
- leave hard-coded data in place until endpoint is available
2019-02-15 12:04:12 +13:00
Peter Fabian
6e24b85c6b
Put back status parameter after extra processing.
...
This allows correct further processing of $request, e.g. for next/previous links, etc.
2019-02-14 17:03:53 +01:00
Mike Jolley
46d5a4c596
Revert debug code
2019-02-14 15:58:53 +00:00
Mike Jolley
2a0ba812a3
Check for decoded taxonomy name when unsetting
2019-02-14 15:58:12 +00:00
Mike Jolley
c62c1e1d05
Fix save logic by moving setter into loop grabbing the value
...
Broken by https://github.com/woocommerce/woocommerce/pull/22650 phpcs changes
2019-02-14 15:22:36 +00:00
Mike Jolley
8c2e305823
phpcs
2019-02-14 15:05:56 +00:00
Mike Jolley
621229b894
Variations cannot be drafts - set to private.
2019-02-14 15:05:10 +00:00
Mike Jolley
39d9e4bd6f
If date paid is not set but payment complete status has passed, set it anyway Ref: #22688
2019-02-14 14:45:26 +00:00
haszari
4ad413ea83
move hard-coded suggestion data to woo API (WCCOM api coming soon)
2019-02-14 15:47:32 +13:00
haszari
1fdc013525
products blank state - OBW style suggestions (missed in previous commit)
2019-02-14 15:44:28 +13:00
Mike Jolley
588b5903f7
Ignore old pre-crud actions
2019-02-13 17:55:47 +00:00
Mike Jolley
13612ef3f1
Update CRUD update hook based on status transition
2019-02-13 17:55:30 +00:00
Mike Jolley
ae17d6f3bd
Avoid handling wc-auto-draft
...
WC was erroneously adding wc- prefix to the core WP auto-draft status.
#22380 registered it formally but we don't need it.
I've reverted #22380 and handled the prefix correctly.
2019-02-13 17:52:28 +00:00
Mike Jolley
311449e943
Create is_valid_resource method to check for invalid statuses
2019-02-13 16:46:49 +00:00
Mike Jolley
cf0e9f925c
Refactor should_deliver logic into managable chunks
2019-02-13 16:20:09 +00:00
Mike Jolley
d0abd6f09b
Check for _reduced_stock meta when restocking refunded items
2019-02-13 15:05:20 +00:00
Mike Jolley
377d79e175
Merge branch 'fix/21830'
2019-02-13 14:45:00 +00:00
Mike Jolley
fb5f9c1ecb
Merge pull request #22690 from Tofandel/patch-1
...
The "for" attribute of a label for a radio input is invalid
2019-02-13 14:40:52 +00:00
Mike Jolley
895948021c
Merge pull request #22717 from yratof/yratof-patch-1
...
Added filter for product title classes within product loop
2019-02-13 14:34:18 +00:00
Mike Jolley
fe853e5d02
Merge pull request #22672 from Chouby/update_stock_filter
...
Allow to filter the direct sql query to update the product stock
2019-02-13 14:32:43 +00:00
Mike Jolley
2abf39c6ae
Merge pull request #22704 from woocommerce/fix/22696
...
Custom payment sections not loading fields due to logic error.
2019-02-13 14:22:39 +00:00
Mike Jolley
569a41e58b
Merge pull request #22711 from woocommerce/fix/22656
...
Calculation issues on single product sales by product graph/report
2019-02-13 14:17:29 +00:00
Mike Jolley
595715b882
Merge pull request #22705 from woocommerce/fix/22699
...
Archive breadcrubs should use plural name not singular
2019-02-13 14:08:59 +00:00
Andrew Lazarus
11c16f35ab
Updated product loop title filter with esc_attr()
2019-02-13 15:07:07 +01:00
Mike Jolley
1451f6101d
Merge pull request #22721 from woocommerce/fix/webhooks-payload
...
Load REST API endpoints before generate webhook payload
2019-02-13 13:59:55 +00:00
haszari
42852d7b67
in-product discovery - enqueue styles as separate module
2019-02-13 12:18:39 +13:00
haszari
8b22f4b040
register underscore dependency for marketplace script
2019-02-13 11:30:43 +13:00
haszari
5671a6f7ca
in-product discovery - don't promote extensions that are already installed:
...
- + move suggestions client code to a module, enqueued only on relevant pages
2019-02-13 10:39:27 +13:00
Claudio Sanches
00651bbc76
Fix special chars on webhook secret
...
By default some values are encoded before saved into the database, so it's required to decode those chars before generate the webhook signature.
Fixes #22500
2019-02-12 16:21:29 -02:00
Claudio Sanches
2f13a048d9
Load REST API endpoints before generate webhook payload
2019-02-12 16:08:03 -02:00
Mike Jolley
b8921f9fba
Merge pull request #22420 from woocommerce/refactor/tax-rounding-methods
...
Refactor tax rounding methods for consistency
2019-02-12 16:13:58 +00:00
Mike Jolley
cd7959b59c
Merge pull request #22653 from woocommerce/update/22568
...
Added `woocommerce_paypal_force_one_line_item` filter
2019-02-12 16:12:29 +00:00
Mike Jolley
1fe8af6af6
Merge pull request #22663 from woocommerce/fix/22559
...
Switch span to paragraph in user profile view
2019-02-12 16:11:47 +00:00
Mike Jolley
d0a218db86
Merge pull request #22681 from woocommerce/fix/22678
...
Added check for POST variable existence.
2019-02-12 16:10:04 +00:00
Mike Jolley
4dd5cef7b9
Unused key variable
2019-02-12 14:19:37 +00:00
Mike Jolley
7f3816dfe7
Correct props to watch
2019-02-12 14:16:48 +00:00
Mike Jolley
7b6558e1df
Correct table names and updater
2019-02-12 14:04:22 +00:00
Mike Jolley
ac51d1f1df
Update routines
2019-02-12 13:27:30 +00:00
Mike Jolley
64df8a2934
update lookup tables handlers and actions
2019-02-12 13:23:47 +00:00
Mike Jolley
eae9f73bd2
update_lookup_table helper
2019-02-12 13:22:51 +00:00
Mike Jolley
10988fa08a
Missing transient update
2019-02-12 13:22:25 +00:00
Andrew Lazarus
aee5cf2bff
Added filter for product title classes within product loop
2019-02-12 13:37:02 +01:00
Mike Jolley
c2411b59c0
Tidy up deprecated methods
2019-02-12 12:15:33 +00:00
Mike Jolley
a0e05f972e
These transient no longer exist
2019-02-12 11:57:56 +00:00
Mike Jolley
6d78218f97
wc_ln_count_ no longer exists
2019-02-12 11:55:35 +00:00
Mike Jolley
2ebfe73524
Avoid updates on read - this is for legacy where meta was missing and shouldn't be ran for all products
2019-02-12 11:46:55 +00:00
Mike Jolley
d557a4c58e
Comment rating functions should not update the object themselves
2019-02-12 11:44:55 +00:00
haszari
792e32056c
in-product discovery - render container for product-list suggestions
2019-02-12 16:10:21 +13:00
Ron Rennick
b92cfc51a5
update product table to correctly calculate net product sales
2019-02-11 16:34:28 -04:00
Mike Jolley
95369b98a6
Price filter with new table
2019-02-11 15:45:30 +00:00
Mike Jolley
47a5c39ea1
deprecate wc_get_min_max_price_meta_query
2019-02-11 15:45:09 +00:00
Mike Jolley
1727485322
Indexes for sorting
2019-02-11 15:05:12 +00:00
Mike Jolley
fed9631a1e
Rating and sales sorting on new table
2019-02-11 15:04:05 +00:00
Mike Jolley
47b37c7104
Queries
2019-02-11 14:42:54 +00:00
Mike Jolley
5429770992
Sample update function and price sorting
2019-02-11 14:42:11 +00:00
Mike Jolley
f970458a33
Table schema
2019-02-11 14:41:24 +00:00
Gerhard
cd36919265
PHPCS fixes
2019-02-11 10:22:30 +02:00
Gerhard
2d746a99bb
Use name instead of singular_name for archive pages breadcrumbs. singular_name should only be used on single pages.
2019-02-11 10:21:17 +02:00
Gerhard
f6b1208a32
Custom payment sections not loading fields due to logic error.
2019-02-11 09:42:31 +02:00
Mike Jolley
6b58960660
deprecated functions
2019-02-08 13:16:05 +00:00
Mike Jolley
4233cd778c
@deprecated 3.6.0
2019-02-08 13:11:58 +00:00
Mike Jolley
0d901a2eca
Merge pull request #22608 from woocommerce/performance/remove-external-ip-lookup
...
Performance: Remove external lookup of ips on localhost
2019-02-08 13:09:31 +00:00
Mike Jolley
1efe7747a8
merge conflict
2019-02-08 13:08:55 +00:00
Mike Jolley
1743c13225
Merge pull request #22631 from woocommerce/fix/21677
...
WC Endpoint 404s
2019-02-08 13:05:49 +00:00
Mike Jolley
8404b644da
Merge pull request #22645 from woocommerce/update/21963
...
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Mike Jolley
cab45fafb3
Merge pull request #22650 from woocommerce/update/20995
...
Registration success notices
2019-02-08 13:04:36 +00:00
Mike Jolley
f0675781c8
Include calling code in pp request
2019-02-08 11:10:26 +00:00
Mike Jolley
8a1a1d3e73
get_calling_code_for_country
2019-02-08 11:09:42 +00:00
Mike Jolley
73f283bf4a
Update CA address format
2019-02-08 10:35:01 +00:00
Adrien Foulon
8dc9a46c17
The "for" attribute of a label for a radio input is invalid
...
The main label of a radio supposedly targeting the first value of the radios contains only the value instead of theId_theValue which is the id of the radio
2019-02-08 02:02:44 +01:00
Mike Jolley
dca47d5d14
Use mb functions for limiting string length
2019-02-07 19:09:41 +00:00
Mike Jolley
dbd324abc3
phpcs
2019-02-07 14:55:56 +00:00
Mike Jolley
b2c33b8e34
Merge branch 'master' into performance/slow-term-queries
2019-02-07 13:49:48 +00:00
Mike Jolley
0d41625ffe
Remove deprecated tag
2019-02-07 13:49:19 +00:00
Mike Jolley
113534a882
Set fallback false
2019-02-07 13:40:50 +00:00
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