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
Mike Jolley
133d108bd8
Merge pull request #22269 from Prospress/fix/22247
...
convert user creation GMT datestamp to local datetime in API
2019-01-31 12:56:40 +00:00
Mike Jolley
808c90b5df
Merge pull request #22605 from woocommerce/add/22579
...
Filter for modifying the user queries on customer reports
2019-01-31 12:49:28 +00:00
Mike Jolley
c5b28e49be
Merge pull request #22602 from 10by/patch-1
...
Updating Peruvian currency
2019-01-31 12:42:50 +00:00
Gregory Karpinsky
17a59c5004
Typo in class-wc-log-levels.php
2019-01-30 23:31:39 -05:00
Mike Jolley
dd981be615
We need auth early
2019-01-30 18:12:33 +00:00
Mike Jolley
cd4039e078
Only do includes on rest requests
2019-01-30 17:38:41 +00:00
Mike Jolley
5b57cb5356
Layered nav should use base link
2019-01-30 16:29:01 +00:00
Mike Jolley
77eba86818
Get rid of reflection method to speed up set_props
2019-01-30 16:21:06 +00:00
Mike Jolley
9a8d11e9f6
phpcs
2019-01-30 16:20:49 +00:00
Mike Jolley
7eda1bb412
Only use WP Error when needed
2019-01-30 16:20:41 +00:00
Mike Jolley
a16c677baf
Missing _price
2019-01-30 16:20:23 +00:00
Mike Jolley
8e51ab2fcd
Set props using one get_post_meta call
2019-01-30 16:20:17 +00:00
Mike Jolley
e129d18c00
get_current_page_url should not persist
2019-01-30 16:18:56 +00:00
Mike Jolley
23b0fdbc1f
Fix id usage
2019-01-30 16:11:44 +00:00
Mike Jolley
8fc7e2be99
prefix tax cache key
2019-01-30 16:11:37 +00:00
Mike Jolley
57ccde6643
get_product_type cache
2019-01-30 16:11:29 +00:00
Mike Jolley
cb1c579262
Cache tax class slugs
2019-01-30 16:11:19 +00:00
Mike Jolley
874f4830a6
cache_value cleanup
2019-01-30 16:11:11 +00:00
Mike Jolley
4622af890a
wc_attribute_taxonomy_slug cache
2019-01-30 16:11:04 +00:00
Mike Jolley
a5bc236c66
get_current_page_url cache set
2019-01-30 16:10:56 +00:00
Mike Jolley
fa58f3bb9f
Lax the kses here - link and name is already escaped.
2019-01-30 16:10:48 +00:00
Mike Jolley
536d71a5f6
cache get_current_page_url
2019-01-30 16:09:16 +00:00
Mike Jolley
d167cb0a95
Add caching for template names to avoid multiple lookups
2019-01-30 16:09:08 +00:00
Mike Jolley
6fa7995f3a
Only check file exists if filtered
2019-01-30 16:09:01 +00:00
Mike Jolley
35819ccb6e
Small refactor for clarity
2019-01-30 16:08:53 +00:00
Mike Jolley
4eb0080605
apply_filters_deprecated to avoid conflict with wp profile
2019-01-30 16:06:51 +00:00
Mike Jolley
0dd7cd2b8b
Improved post_class generation to avoid loading more product objects
2019-01-30 16:02:22 +00:00
Mike Jolley
bd076d42da
Refactor wc_get_product_class to avoid $post object
2019-01-30 16:02:00 +00:00
Mike Jolley
59e0867afe
Add missing post_password prop
2019-01-30 16:01:54 +00:00
Mike Jolley
1ba0194685
Remove external lookup of ips on localhost
2019-01-30 15:59:02 +00:00
Gerhard
a2e4ca70b6
PHPCS fixes
2019-01-30 11:33:51 +02:00
Gerhard
429f515704
Introduce woocommerce_admin_report_customers_user_query_args and woocommerce_admin_report_customer_list_user_query_args filters to altering the queries running when retrieving users for reports.
2019-01-30 11:19:34 +02:00
Toby Robles
7fa1bd78c9
Updating Peruvian currency
...
Since 2015, the government ordered that the "Nuevo Sol (S /.)" be renamed simply "Sol (S/)", also suppressing the use of the point (S/.) in the monetary sign (S/)
2019-01-29 20:01:04 -05:00
Job
185041da87
Removed title case
...
As requested here by https://github.com/woocommerce/woocommerce/pull/22584#pullrequestreview-197707971
2019-01-29 20:40:59 +01:00
Boost
d9c971ee20
Update class-wc-structured-data.php. Line 214, changed wpautop to wp_filter_nohtml_kses
2019-01-29 13:27:05 +00:00
Gerhard
69baf175c1
After some testing using area-hidden seems to deliver the best results for not producing the hissing sound on reviews.
2019-01-29 13:48:47 +02:00
Gerhard
94f64f3851
PHPCS fixes
2019-01-29 13:36:16 +02:00
Gerhard
e74f0acc19
Add a screen reader label to the star rating div to avoid screen readers trying to read the text of the star font.
2019-01-29 13:34:04 +02:00
Gerhard
25e562400e
Put reload checkout in variable before unsetting it and then calling it again after it was unset.
2019-01-29 13:05:02 +02:00
Ron Rennick
a663f56306
two more sniffs in wc-template-functions.php
2019-01-28 14:36:39 -04:00
Rodrigo Primo
c798ea9ea8
Fix phpcs errors
2019-01-28 15:20:22 -02:00
Ron Rennick
8e18d05634
phpcs sniff fixes for class-wc-breadcrumb.php
2019-01-28 11:30:11 -04:00
Ron Rennick
475c35ed7a
phpcs sniff fixes for wc-template-functions.php
2019-01-28 11:25:45 -04:00
Ron Rennick
db2bc48849
don't force shop loop display mode to products when query page >1
2019-01-28 11:23:25 -04:00
Mike Jolley
7c0273fa12
Prime caches when reading variations
2019-01-28 15:00:48 +00:00
Peter Fabian
dda4cab70c
Updated todo to use the common format.
2019-01-28 13:13:12 +01:00
Job
2174937f4f
Translatable
2019-01-28 12:28:48 +01:00
Job
b0aa198d4c
Updated system status report
...
Two changes:
* Followed the WP core order of mentioning wordpress URL and site URL
* Followed the WP core naming of these two URLs - confusingly the home URL in core is described be "Site Address ()"
![http://cld.wthms.co/xo5xtL ](http://cld.wthms.co/xo5xtL+ )
Link to image here: http://cld.wthms.co/xo5xtL .
2019-01-28 12:24:57 +01:00
Ron Rennick
a93418b826
phpcs sniff fixes for class-wc-report-sales-by-product.php
2019-01-27 19:27:30 -04:00
Ron Rennick
f42c42066b
include refunded orders in top sellers, earners in sales by product report
2019-01-27 19:24:08 -04:00
Ron Rennick
3f24ad8d4c
phpcs sniff fixes for abstract-wc-order.php
2019-01-27 11:38:08 -04:00
Ron Rennick
d32f189f27
recalculate coupons after adding to order
2019-01-26 23:57:32 -04:00
Galen Wright-Watson
65bb805cbb
Fix: #22572-can't access settings ("The link you followed has expired"). Cause: if anything adds to `$_POST`, this triggers WooCommerce to try to save settings; if there's no nonce, authorization fails, resulting in the message. Soln: check for specific element ('save') in `$_POST` to determine whether to save elements, rather than testing that `$_POST` is non-empty.
2019-01-25 18:08:00 -08:00
Mike Jolley
b38ff764b4
Correct syntax err
2019-01-25 20:48:39 +00:00
Mike Jolley
32ae0192e5
Use WP term meta functions
2019-01-25 20:47:54 +00:00
Mike Jolley
8823559880
get rid of old term meta table
2019-01-25 20:44:25 +00:00
Mike Jolley
d8fe798825
Revise meta ordering system to take care of default sorting
2019-01-25 20:39:55 +00:00
Mike Jolley
8127610afe
Remove menu_order - not needed
2019-01-25 20:01:20 +00:00
Mike Jolley
7f4444ef7c
direct meta sort
2019-01-25 19:57:06 +00:00
Mike Jolley
05ab331ea8
No need for default sorting
2019-01-25 19:56:12 +00:00
Mike Jolley
a38add7ac8
No need for default sorting
2019-01-25 19:55:25 +00:00
Mike Jolley
8675f3195d
Avoid inline sort
2019-01-25 19:51:45 +00:00
Ian Jenkins
d7e32e1c77
Remove possibe superfluous wp_attachment_is_image() filter.
...
The reason to remove this is that this function uses get_post() under
the hood which always assumes the attachment is on the same site, where
as if you're using a plugin such as
https://github.com/humanmade/network-media-library it might not be.
I'm not sure if there's any adverse affects of not doing this filtering,
from my testing, it still seems to work in the same way.
2019-01-25 15:11:58 +00:00
Mike Jolley
9fc78634f9
Update routine
2019-01-25 13:56:15 +00:00
Ron Rennick
60a6895eee
php sniff fixes for class-wc-rest-product-categories-controller.php
2019-01-25 09:53:37 -04:00
Peter Fabian
33584e767f
Renamed function
...
As legacy REST API will be removed soon anyway.
2019-01-25 10:07:32 +01:00
claudiulodro
78e5189334
Better @id generation for product structured data
2019-01-24 11:49:44 -08:00
Ron Rennick
e73eabf679
use `name` for POST/PUT category image name for consistency in api V3
2019-01-24 15:38:45 -04:00
claudiulodro
8078e6bfc2
Simplified title check that works on all wc widgets
2019-01-24 10:47:05 -08:00
Prince Ahmed
78e4ef5f38
Fix test get request
...
During test Remote GET Request,
in the error checking area used $post_response instead of using $get_response.
2019-01-24 21:59:09 +06:00
Peter Fabian
d390528d79
Updated check to only cover non-legacy REST API requests.
...
Updated filter name.
2019-01-24 12:06:47 +01:00
Peter Fabian
2d5fc8ef7d
Merge branch 'master' into fix/20937-v0.1
2019-01-24 11:19:46 +01:00
Mike Jolley
00a93ae8f0
Merge pull request #22112 from Prospress/fix/22101
...
Introduce wc_attribute_taxonomy_slug()
2019-01-23 21:57:07 +00:00
Mike Jolley
5b40f24adc
Merge pull request #22526 from woocommerce/fix/21299
...
Sort terms by parent and work back from bottommost term
2019-01-23 21:36:55 +00:00
Mike Jolley
e171718534
Merge pull request #22529 from james-allan/custom_coupon_usage_limit
...
Keep count of the number of times custom coupons apply
2019-01-23 21:36:19 +00:00
Mike Jolley
9b655c0ba7
Use hasSelectiveRefresh
2019-01-23 21:29:55 +00:00
Mike Jolley
624700267b
Merge branch 'master' into pr/20830
2019-01-23 20:56:35 +00:00
Mike Jolley
20330b01bd
Merge pull request #22531 from rellect/fix_ssl_check
...
Fix ssl check in case shop page no longer exists
2019-01-23 20:18:43 +00:00
Mike Jolley
467681c788
Merge pull request #22537 from woocommerce/fix/22450
...
round variation percentage price adjustments to decimal setting
2019-01-23 20:15:12 +00:00
Mike Jolley
407a5954dc
Merge pull request #22464 from woocommerce/fix/22245
...
include tax in subtotals when validating coupon minimum and maximum
2019-01-23 19:54:12 +00:00
Mike Jolley
536c933612
correctly handle steps
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 19:39:59 +00:00
Mike Jolley
b8e60e44c0
Handle tax in price filter specific query
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 19:39:46 +00:00
Mike Jolley
08a14b4ce9
Move out tax logic
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 19:39:28 +00:00
Gerhard
31263f2a4c
Tax calc for price filter
...
Co-Authored-By: Gerhard Potgieter <kloon@users.noreply.github.com>
2019-01-23 18:39:45 +00:00
Mike Jolley
3a94fc6d00
Introduce steps and cleanup variable names for clarity
2019-01-23 18:29:33 +00:00
Ron Rennick
6709049cbc
round variation percentage price adjustments to decimal setting
2019-01-23 14:04:04 -04:00
Mike Jolley
b9de20ed27
Exclude paged from price slider
2019-01-23 17:34:58 +00:00
Mike Jolley
01696d92b0
Add comments and round to 10
2019-01-23 17:34:51 +00:00
Mike Jolley
e9f0490829
Merge pull request #21719 from vyskoczilova/master
...
Custom settings on shipping section (#13463 , #13461 )
2019-01-23 17:07:13 +00:00
Mike Jolley
6a89a76c11
Merge 17796
2019-01-23 16:39:21 +00:00
Mike Jolley
59c97539b3
Trigger loaded hook once plugins are loaded.
2019-01-23 16:20:26 +00:00
Mike Jolley
613a095362
Exclude paged from price slider
2019-01-23 15:31:26 +00:00
Mike Jolley
9cdcc3f1e5
Merge pull request #21817 from woocommerce/feature/pages-gutenberg-support
...
Use shortcode block for WooCommerce default pages
2019-01-23 15:25:28 +00:00
Mike Jolley
f96d59ac2b
Merge branch 'pr/21043'
2019-01-23 15:16:50 +00:00
Mike Jolley
987a24afdc
Timeout param
2019-01-23 15:16:40 +00:00
Ron Rennick
a6b1c45740
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2019-01-23 11:13:25 -04:00
Gerhard Potgieter
f77e2d7316
Handle full refunds in the taxes by code report ( #21843 )
...
* Add full refund support to the taxes by code report.
* Some PHPCS fixes
* Do not include refund in initial tax lookup for report.
* Correct logic which loops orders
* match date report
2019-01-23 15:12:58 +00:00
Ron Rennick
8709351994
update function name to `wc_attribute_taxonomy_slug`
2019-01-23 11:11:27 -04:00
Ron Rennick
b868b484f7
fix merge conflicts
2019-01-23 10:53:42 -04:00
Refael Iliaguyev
8f0f22c11b
Fix ssl check in case shop page does not exists.
2019-01-23 16:08:13 +02:00
Luigi
548b00c660
Improve the way we do queries ( #22043 )
...
* Improve the way we do queries
* PHP legacy compatible
* Update aproach to filter queries with empty values
* Fixing Unit Tests
* Moving Unit Test to its the correct test function
* Filter missing the new param, allow_empty, also simplifiying unit test.
* Helper function to create counpon does not support empty coupon codes
* Helper function does not need to allot empty search
* Wrong code standard
* Fixing Code Standard Unit Test
2019-01-23 13:46:32 +00:00
Mike Jolley
e8710e4ad6
Merge pull request #22530 from treibalen/master
...
Change footer wording for WooCommerce emails
2019-01-23 13:28:31 +00:00
Mike Jolley
99f663ad5c
Merge pull request #22131 from willgorham/improve-shipping-zone-continents
...
Improve shipping zone continents [Fixes #22130 ]
2019-01-23 13:27:16 +00:00
Mike Jolley
57ae0bec9d
Merge pull request #22073 from bekarice/fix/partial-refund-webhooks
...
Send webhooks for partial refund creation
2019-01-23 13:02:44 +00:00
treibalen
178c7a7a9c
Change wording for WooCommerce emails
...
Change emails footer from "Powered by WooCommerce" to "Built with WooCommerce"
2019-01-23 13:50:08 +05:30
James Allan
767abb3a8a
Keep count of the number of times custom coupons apply
2019-01-23 16:47:52 +10:00
Ron Rennick
8e12f9607d
use WP standard datetime format for installs where timezone_string setting is not set
2019-01-22 15:47:56 -04:00
Mike Jolley
7cd20021e0
Sort terms by parent and work back from bottommost term
...
Fixes the issue described in #21299 by sorting terms by parent ID.
Remove the extra get_term call because we already have a term object.
Since we support 4.7+, also removed function exists for wp_list_sort function.
2019-01-22 19:06:58 +00:00
Will Gorham
45e7f344b1
Use shipping countries instead of selling countries
2019-01-22 13:51:35 -05:00
Mike Jolley
2a2863c5ba
Merge pull request #21648 from EmranAhmed/master
...
Add 3rd param on `woocommerce_product_option_terms` action to use custom attribute types on product attribute create
2019-01-22 18:28:24 +00:00
Mike Jolley
9b2866a310
Merge branch 'pr/21722'
2019-01-22 18:20:45 +00:00
Ron Rennick
343a217939
move add order tax to get_object_subtotal()
2019-01-22 13:42:37 -04:00
Mike Jolley
43ba62dc86
Merge pull request #22067 from Prospress/fix/22046
...
populate default variation attributes when it is the first variation
2019-01-22 17:29:54 +00:00
Mike Jolley
ed95fe2cd3
Merge pull request #22066 from Prospress/fix/22065
...
add is_array check to catalog ordering orderby
2019-01-22 16:25:20 +00:00
Mike Jolley
c99495488b
Merge pull request #22458 from woocommerce/fix/22456
...
Set order vat exempt status to that of customer on checkout.
2019-01-22 16:13:36 +00:00
Mike Jolley
581d3c3195
Merge branch 'pr/22290'
2019-01-22 16:05:56 +00:00
Mike Jolley
11b172d583
phpcs
2019-01-22 16:04:16 +00:00
Mike Jolley
9b6694341f
Fix code and improve indenting
2019-01-22 16:01:17 +00:00
Mike Jolley
e3a1c1c3c0
Merge pull request #22475 from woocommerce/add/22474
...
Add stock qty increase/decrease option to bulk edit
2019-01-22 15:20:44 +00:00
Mike Jolley
380201be33
Merge pull request #22417 from woocommerce/fix/21175
...
Sort countries using new ascii comparison function
2019-01-22 14:47:41 +00:00
Mike Jolley
34a3d77080
Merge pull request #22303 from Prospress/fix/22063
...
only hide price filter widget when archive has no products
2019-01-22 14:44:48 +00:00
Mike Jolley
10518228aa
Merge pull request #22318 from Prospress/fix/21202
...
Only include the network orders widget on the main site dashboard
2019-01-22 14:38:46 +00:00
Mike Jolley
d7f768f779
Merge pull request #21069 from tomaskavalek/patch-1
...
Added missing HTML filter for quantity
2019-01-22 14:36:20 +00:00
Mike Jolley
1a18297aa2
Merge pull request #22398 from Prospress/fix/22382
...
update default attribute slug when attribute term slug is changed
2019-01-22 14:32:56 +00:00
Gerhard
4fa2856d86
Renamed vars so need to used the new vars.
2019-01-22 15:39:17 +02:00
Mike Jolley
084dab4553
Merge pull request #22476 from woocommerce/fix/22470
...
Hide ratings when reviews are disabled
2019-01-22 13:32:22 +00:00
Mike Jolley
7ac26ce893
Merge pull request #22518 from Prospress/fix/21779_redux
...
Fix/21779 redux
2019-01-22 13:29:40 +00:00
Gerhard
1664181a63
Wrap iconv usage in function_exists for compatibility.
2019-01-22 15:26:40 +02:00
Gerhard
0beadb3bab
Upate function @since to 3.6.0
2019-01-22 15:22:14 +02:00
Gerhard
bfda9c0ac8
Use wc_update_product_stock instead of manually adding and subtracting.
2019-01-22 15:14:41 +02:00
Mike Jolley
afbdd06e83
Merge branch 'pr/22409'
2019-01-22 13:12:34 +00:00
Mike Jolley
892ec24fed
correct version
2019-01-22 13:12:26 +00:00
Mike Jolley
ebac35e2c5
Merge pull request #22324 from Prospress/fix/21380
...
update variation guid with the id after creation
2019-01-22 13:07:42 +00:00
Mike Jolley
ee158ae044
Merge pull request #22411 from Gator92/order_item_meta_filter
...
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-22 13:04:02 +00:00
Mike Jolley
83aa070654
Merge pull request #22412 from woocommerce/fix-minor-issues-in-webhook-class
...
Fix minor issues in WC_Webhook_Data_Store class
2019-01-22 12:51:42 +00:00
Mike Jolley
4d4d34a2d1
Merge pull request #22514 from woocommerce/update/mailchimp-branding-setup-wizard
...
Updates Mailchimp branding in setup wizard
2019-01-22 12:39:24 +00:00
Mike Jolley
5cb60b840c
Merge pull request #21859 from ChromeOrange/master
...
Add filter to save_payment_method_checkbox
2019-01-22 12:05:42 +00:00
Mike Jolley
4c28ba612c
Merge pull request #21884 from woocommerce/add/wc-admin-taxonomy-instance/21883
...
Add WC_Admin_Taxonomies instance method
2019-01-22 12:01:33 +00:00
Ron Rennick
c3879f0d63
only deduct refunded shipping, taxes once from gross to get net sales by date CSV
2019-01-21 15:44:53 -04:00
Ron Rennick
aa9961695f
phpcs sniff fixes for class-wc-report-orders-by-date.php
2019-01-21 15:36:29 -04:00
Mike Jolley
e5af25e994
Merge pull request #21341 from kinging123/patch-2
...
Added action 'woocommerce_variation_header' after actions in variations list
2019-01-21 16:59:48 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Mike Jolley
759424a5fb
Merge pull request #22394 from fitimvata/master
...
Add filters for mail callback in WC_Email::send method.
2019-01-21 16:00:10 +00:00
Alessandro Morelli
be0f4b45e3
Fix coding standard violations
2019-01-21 16:54:49 +01:00
Mike Jolley
d096d17d25
Merge branch 'pr/22488'
2019-01-21 15:39:00 +00:00
Mike Jolley
2d14315f3d
woocommerce_cart_totals_get_item_tax_rates
2019-01-21 15:38:48 +00:00
Mike Jolley
0c9de00b74
Merge pull request #22425 from helgatheviking/issue-21845-b
...
switch woocommerce_ordered_again hook to ref_array
2019-01-21 15:15:54 +00:00
Mike Jolley
c830d429ef
Merge pull request #22435 from zJesusJavier/patch-2
...
Updating Venezuelan Currency
2019-01-21 15:01:18 +00:00
Mike Jolley
944ece0fad
Merge pull request #22414 from woocommerce/update/22406
...
Add a fallback to cURL version check in system status
2019-01-21 15:00:35 +00:00
Mike Jolley
7433dfe6f3
Merge pull request #22424 from Prospress/fix/22422
...
return coupon error messages as text message for alert()
2019-01-21 14:57:34 +00:00
Mike Jolley
120add0bff
Merge pull request #22487 from woocommerce/fix/22485
...
Made municipality address field optional for Latvia.
2019-01-21 14:54:05 +00:00
Gareth Allison
2dcc823e46
Updates mentions of "MailChimp"
...
Updates mentions of "MailChimp" to "Mailchimp" as per their branding guidelines: https://mailchimp.com/about/brand-assets/
2019-01-21 16:34:31 +02:00
Mike Jolley
e91f3b88f5
Merge pull request #22448 from woocommerce/fix/21580
...
Multisite - Load customer data for logged in users regardless of being member of sub-site
2019-01-21 14:21:21 +00:00
Mike Jolley
0c70945bcb
Merge branch 'fix/21580' of https://github.com/woocommerce/woocommerce into fix/21580
2019-01-21 14:05:50 +00:00
Mike Jolley
7db783d7a1
revert admin bar change
2019-01-21 14:05:48 +00:00
Mike Jolley
dc01d1de76
Deprecate delete_version_transients
2019-01-21 13:08:01 +00:00
Mike Jolley
d3ac50d47f
Remove heavy queries from transient cleanup function
...
Remove heavy queries from transient cleanup function
Removes unneccessary loops and heavy queries.
There is a parent update and cache clear which was added in #17141 . This cleanup is handled in `update_attributes` so doing it again here should be unneccessary.
Finally, the layered nav cleanup here can be moved. #22029 notes that this was needed in case of a stock change affecting product visibility. If we move to the data store, we can avoid getting the product here which is slower.
2019-01-21 13:02:31 +00:00
Mike Jolley
7744879326
wc_delete_product_transients for parent
2019-01-21 13:01:18 +00:00
Mike Jolley
8ede6bcb74
Added helpers to clean transients during shutdown and clean layered nav counts
2019-01-21 13:00:21 +00:00
Mike Jolley
c5da2dbcde
Remove unrelated transient
...
wc_count_comments is completely unrelated to products. This can be moved to the transient cleanup tool, because code already exists to clear this cache when needed in WC_Comments.
2019-01-21 12:59:39 +00:00
Rodrigo Primo
eea4810c49
Revert change to defer transient cleanup
...
This commit reverts commits 2f8a3eae49
and 17e97c2580
that were created to defer transient cleanup (see #20537 ) and avoid deadlocks on the wp_options table (see #20528 and #17632 ). The problem is that deferring transient cleanup to a cron job created an issue when creating or importing multiple products at once (see #21100 and https://github.com/woocommerce/wc-smooth-generator/issues/14#issuecomment-413342136 ) and has the potential to impact the checkout as well if we start using more versioned transients for orders.
This problem is happening because when importing or creating multiple products at once, for each product that is created or imported, WooCommerce core enqueues a few 'delete_version_transients' cron events. Events are enqueued faster than they are executed and after a few hundred products are generated, the size of the cron queue, which is stored in a single wp_options entry, starts to impact WordPress performance in general.
To reduce the chance of deadlocks happening again after this change, I already created another PR to optimize the query used to delete transients (#21274 ) by avoiding an unnecessary filesort, and I'm planning, on a subsequent commit, to improve it further by prefixing the transient name with its version instead of suffixing it as it is currently done. But the ultimate solution for high traffic stores is to use a persistent cache plugin.
2019-01-21 12:58:19 +00:00
Mike Jolley
08d7e319b6
Version handling for var prices
2019-01-21 12:56:55 +00:00
Mike Jolley
eabc30be5e
wc_customer_bought_product - move version within transient
2019-01-21 12:38:40 +00:00
Mike Jolley
452bb5b5e7
Include version within transient
2019-01-21 12:31:48 +00:00
Mike Jolley
0cf82b8937
Use fixed transient naming in wc_get_shipping_method_count
2019-01-21 12:05:58 +00:00
Mike Jolley
5280ceb8d9
Improve inline docs in calculate_shipping_for_package
2019-01-21 11:49:44 +00:00
Ron Rennick
b774968c81
set refund prices_include_tax meta to be the same as the order receiving the refund
2019-01-18 23:38:36 -04:00
Ron Rennick
d826aba858
phpcs sniff fixes for wc-order-functions.php
2019-01-18 23:36:46 -04:00
Claudiu Lodromanean
7f78cc3acc
Merge pull request #22334 from Prospress/fix/22326
...
add gutenberg block preprocessor filter to shop page content
2019-01-18 09:29:28 -08:00
Brent Shepherd
2ed2572afe
Clear webhook transients when status changes
...
Background discussion: https://github.com/woocommerce/woocommerce/pull/21427#discussion_r246881785
2019-01-18 14:30:35 +10:00
Brent Shepherd
28ca9f1ec4
Remove unused $wpdb
2019-01-18 14:30:35 +10:00
Brent Shepherd
21d724c65d
PHPCS fixes
...
Add fixes required for Travis to pass the PR, but which aren't
related to the PR diff.
2019-01-18 14:30:35 +10:00
Brent Shepherd
0708c738b9
Only load 100 webhooks per request
...
To avoid slowing down page loads on sites with a large numbers of
webhooks.
2019-01-18 14:30:35 +10:00
Brent Shepherd
9fdbb124ae
Add $limit param to wc_load_webhooks()
...
And the corresponding data stores. Defaults to null, meaning do not
limit, for backward compatibility.
2019-01-18 14:30:35 +10:00
Brent Shepherd
e7a5a2ab2f
Only load active webhooks on each request
...
To avoid slowing down page loads on sites with a large number of
disabled or paused webhooks, which do not need to be loaded or
enqueued.
2019-01-18 14:29:35 +10:00
Brent Shepherd
f86b738db3
Use search_webhooks()
...
To avoid duplicate SQL
2019-01-18 14:29:34 +10:00
Brent Shepherd
67bf101aaf
Add $status param to wc_load_webhooks()
...
And the corresponding data stores. Defaults to '', meaning do not
load only webhooks with a specific status. This maintains backward
compatibility. However, the call to wc_load_webhooks() within
WooCommerce::load_webhooks() can now only load active webhooks, as
they are the only ones that should be enqueued.
2019-01-18 14:29:34 +10:00
Ron Rennick
dad1ffb4c9
use function_exists instead of version_compare
2019-01-17 16:14:53 -04:00
Claudiu Lodromanean
3bb5d2ee79
Merge pull request #22446 from woocommerce/fix/22285
...
Hide 0 costs for local pickup
2019-01-17 12:10:37 -08:00
Rodrigo Primo
29ff0b9b88
fix phpcs errors
2019-01-17 14:55:24 -02:00
Mike Jolley
fa6e2536db
Tweak cost display logic
2019-01-17 13:56:11 +00:00
RobertoDonPedro
3a2b3d10ad
Filter get_item_tax_rates in class-wc-cart-totals.php
...
Adds filter on the return value of function 'get_item_tax_rates' to prevent the mandatory caching of tax rates, described in https://github.com/woocommerce/woocommerce/issues/21855
2019-01-17 13:57:31 +01:00
Peter Fabian
ede86d8307
Made municipality address field optional for Latvia.
2019-01-17 13:18:31 +01:00
Gerhard
98948a2faf
PHPCS fixes
2019-01-17 08:32:42 +02:00
Gerhard
f3d9eeeef3
Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly.
2019-01-17 08:04:57 +02:00
Gerhard
8a685c3303
is_vat_exempt check on orders expect a yes/no and not a bool, save values as string.
2019-01-17 07:46:45 +02:00
Jesús Ramirez
4c8662c7f1
Update wc-core-functions.php
2019-01-16 16:51:07 -04:00
Claudiu Lodromanean
3dee72eddc
Merge pull request #22452 from woocommerce/fix/21700
...
[REST API] Variations endpoint - Removed extra inherited filters from product endpoint
2019-01-16 09:41:40 -08:00
Claudiu Lodromanean
6540e89425
Merge pull request #22445 from woocommerce/fix/21996
...
Change priority of notices on the account page
2019-01-16 09:40:51 -08:00
Claudiu Lodromanean
c2c7cbeccb
Merge pull request #22444 from woocommerce/fix/22119
...
Fix checkout field locales on first load
2019-01-16 09:39:42 -08:00
Claudiu Lodromanean
df2cd4b232
Merge pull request #22439 from woocommerce/fix/22430
...
Make sure WC active before running queries for MS widget
2019-01-16 09:38:24 -08:00
Claudiu Lodromanean
f4d1587652
Merge pull request #22419 from woocommerce/fix/22010
...
Remove on-hold orders from tax reports
2019-01-16 09:37:09 -08:00
Claudiu Lodromanean
989865469e
Merge pull request #22416 from woocommerce/fix/21871
...
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
Claudiu Lodromanean
86f05bbd7a
Merge pull request #22320 from Prospress/fix/22197
...
use slug sanitization on product export category slugs
2019-01-16 09:31:43 -08:00
Ron Rennick
9337ca51e4
add WP version check for short description block filter
2019-01-16 12:49:25 -04:00
Mike Jolley
ca3623fa41
Merge pull request #22461 from woocommerce/fix/21761
...
Bail if getimagesize fails in filter_image_sizes_to_only_missing_thumbnails
2019-01-16 16:37:09 +00:00
Mike Jolley
78ca5c0290
Merge pull request #22277 from johnrom/fix/22276
...
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields
2019-01-16 16:31:18 +00:00
John Rom
741435d816
Switch user meta permissions filter from user data to user id
2019-01-16 11:20:42 -05:00
John Rom
130a36107c
Added filter to the save method so it is not bypassable
2019-01-16 11:00:46 -05:00
John Rom
186a1d5b7e
Combine permission conditions into a single filter provided the default value
2019-01-16 10:56:26 -05:00
plexus admin
9acc7ced5d
Add function wc_get_is_pending_statuses
2019-01-16 09:54:02 -06:00
Mike Jolley
4fc197c67d
Merge pull request #21003 from Chunkford/patch-2
...
Giving the ability to add custom pricing data - read_price_data()
2019-01-16 15:22:40 +00:00
Mike Jolley
1125a5d76d
Merge pull request #22380 from Prospress/fix/22261
...
register order auto drafts post status
2019-01-16 15:11:48 +00:00
Mike Jolley
c70bef3e9c
Merge branch 'pr/22350'
2019-01-16 14:48:14 +00:00
Mike Jolley
2d44e90542
CS
2019-01-16 14:47:59 +00:00
Ron Rennick
bc33f19630
add order draft status filter to allow resuming editing
2019-01-16 09:52:18 -04:00
Mike Jolley
213ba99664
Merge pull request #21961 from sebastianpisula/patch-1
...
New params for woocommerce_shipping_zone_*_methods_table actions
2019-01-16 13:01:45 +00:00
Jesús Ramirez
7e1ef44b02
Update wc-core-functions.php
2019-01-16 08:49:17 -04:00
Mike Jolley
2ea7e4fb6a
woocommerce_display_product_attributes filter
2019-01-16 12:25:19 +00:00
Mike Jolley
766dea1125
Merge pull request #22316 from ictbeheer/master
...
Support for Dutch postcodes
2019-01-16 11:38:21 +00:00
Mike Jolley
50a86a1a33
Merge pull request #21562 from terence1990/feature/rest-api-crud-params-filter
...
Add a filter to WC_REST_CRUD_Controller::get_collection_params method to allow developers to change params
2019-01-16 11:32:03 +00:00
Gerhard
683111b4a5
PHPCS fixes
2019-01-16 11:32:00 +02:00
Gerhard
6b211ab25b
Add increase and decrease stock qty option to bulk product edit.
2019-01-16 11:22:11 +02:00
Gerhard
26f9aad65c
add_meta_data not add_meta
2019-01-16 09:18:54 +02:00
Mike Jolley
f68a547f53
Don't mix session and customer data
2019-01-15 16:49:01 +00:00
Ron Rennick
0f94bed1ec
only add tax when comparing coupon against order
2019-01-15 11:33:44 -04:00
Mike Jolley
d3d1864b4e
Select an option vs state
2019-01-15 15:24:17 +00:00
Ron Rennick
d654107cb0
include taxes in subtotal when validating tax inclusive coupon maximum as well
2019-01-15 10:33:57 -04:00
Ron Rennick
acf46fa28d
phpcs sniff fixes for class-wc-discounts.php
2019-01-15 10:21:21 -04:00
Ron Rennick
5f2bc29e3d
include taxes in subtotal when coupon price includes taxes
2019-01-15 10:17:31 -04:00
Gerhard
6e428e6c58
PHPCS fixes
2019-01-15 15:24:53 +02:00
Gerhard
3e06d94115
If getimagesize fails for some reason, ie plugin using offsite images, just return the original image sizes.
2019-01-15 15:22:12 +02:00
Gerhard
f11613c5e9
Set order vat exempt status to that of customer on checkout.
2019-01-15 13:20:07 +02:00
Claudio Sanches
fbcbd55bf7
[REST API] Removed extra inherited filters from product endpoint
...
Closes #21700
2019-01-14 17:15:23 -02:00
Rodrigo Primo
507f67cb38
Merge pull request #22029 from woocommerce/fix/21429
...
FIx: Delete wc_layered_nav_counts_* transients whenever a product is updated
2019-01-14 15:26:15 -02:00
Mike Jolley
696d042c0e
Merge pull request #22255 from aelia-co/Tweak-wc_get_min_max_price_meta_query-filter
...
Added new filter "woocommerce_get_min_max_price_meta_query"
2019-01-14 17:04:59 +00:00
Mike Jolley
4dbee72c65
Merge pull request #22165 from woocommerce/fix/22089
...
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
2019-01-14 17:02:51 +00:00
Mike Jolley
1f63d59244
Merge pull request #22257 from manchumahara/patch-1
...
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
2019-01-14 17:00:37 +00:00
Mike Jolley
4f4d7e6c9c
API - Rather than error, add users to blog like the checkout does
2019-01-14 16:31:52 +00:00
Mike Jolley
668c078bcf
This check is not needed - super admin should see it only
2019-01-14 16:31:05 +00:00
Mike Jolley
1b337dea64
Load customer data regardless of current blog
2019-01-14 16:30:47 +00:00
Mike Jolley
bd611172c2
Hide 0 costs for local pickup
2019-01-14 15:14:44 +00:00
Mike Jolley
47bd97862a
Change priority of notices on the account page so they appear above forms/content
2019-01-14 15:09:07 +00:00
Mike Jolley
9799301b0a
Add script dep
2019-01-14 14:43:53 +00:00
Mike Jolley
1e563aea29
Use wp_get_attachment_image if we have an attachment based placeholder
2019-01-14 13:55:12 +00:00
Mike Jolley
198fdce1bf
Larger placeholder to allow more resizing
2019-01-14 13:54:01 +00:00
Mike Jolley
549a0f01c0
Placeholders need srcset and sizes
2019-01-14 12:54:54 +00:00
Mike Jolley
510ed70d1e
Fix check during install to create placeholder image.
2019-01-14 11:32:57 +00:00
Gerhard
dc0f8fb696
PHPCS fixes
2019-01-14 09:41:24 +02:00
Gerhard
9d3053ce9a
Check if WooCommerce is active on blog before running WooCommerce queries for the MS widget.
2019-01-14 09:40:04 +02:00
Gerhard
6220399163
Switch to use v3 of the API for network orders.
2019-01-14 09:15:20 +02:00
Jesús Ramirez
88335691cd
Updating Venezuelan Currency
...
The new Venezuelan currency is Bs S
2019-01-13 10:01:37 -04:00
Kathy Daring
1e51bf3e69
switch ordered_again hook to ref_array
2019-01-11 12:14:29 -05:00
Ron Rennick
6b1341138f
phpcs sniff fixes for class-wc-ajax.php
2019-01-11 12:57:33 -04:00
Mike Jolley
5016e4c858
Removed unused query
2019-01-11 16:56:51 +00:00
Mike Jolley
938992cbae
Exit early, add back fallback code
2019-01-11 16:52:57 +00:00
Ron Rennick
641884b71b
return coupon error messages as text message for alert()
2019-01-11 12:50:44 -04:00
Mike Jolley
da80c154fc
Query tweaks
2019-01-11 16:48:05 +00:00
Mike Jolley
4bda1c9cad
Code style improvements
2019-01-11 15:52:43 +00:00
Matthew Rochow
7c50a29d2d
Update class-wc-product-data-store-cpt.php
2019-01-11 14:47:41 +00:00
Matthew Rochow
07b2bcc726
Update class-wc-product-data-store-cpt.php
2019-01-11 14:47:41 +00:00
Matthew Rochow
01d7eaf92f
Update class-wc-product-data-store-cpt.php
...
Updating find_matching_product_variation() function to be faster
2019-01-11 14:47:41 +00:00
Mike Jolley
12a73d4f8d
Clarify how discount is applied
2019-01-11 14:43:32 +00:00
Mike Jolley
940ba59ab5
Merge branch 'fix/21871' into refactor/tax-rounding-methods
2019-01-11 14:09:03 +00:00
Mike Jolley
14b0e87301
Fixes edge case due to orders screen expecting unrounded values.
2019-01-11 14:07:41 +00:00
Mike Jolley
22ce8aa8b8
Order items respect wc_round_tax_total
2019-01-11 13:20:57 +00:00
Mike Jolley
42f77950bd
Make total recalc use unrounded tax values to fix test WC_Tests_Order_Coupons::test_add_coupon_to_order
2019-01-11 13:17:06 +00:00
Mike Jolley
28ac24d870
update_taxes can safely round all values, as lines would already be rounded if applicable
2019-01-11 13:12:31 +00:00
Mike Jolley
50ca24e5d9
set_coupon_discount_amounts should support woocommerce_tax_round_at_subtotal
2019-01-11 13:09:20 +00:00
Mike Jolley
caffa319f4
set_item_discount_amounts should support woocommerce_tax_round_at_subtotal
2019-01-11 13:06:26 +00:00
Mike Jolley
50af71b9bd
Calculated items_subtotal_tax using rounded tax subtotals.
2019-01-11 12:59:23 +00:00
Gerhard
cf38ed4aba
Remove on-hold orders from tax reports as they are not paid yet. Tax reports should only contain paid orders.
2019-01-11 14:44:09 +02:00
Mike Jolley
dabfe66464
Correct use of rounding functions in cart class
2019-01-11 12:41:06 +00:00
Mike Jolley
af3707d75a
Always round to precision. Negate need to call get_tax_total to handle rounding. Instead it just sums.
2019-01-11 12:38:05 +00:00
Gerhard
4c6da744fe
PHPCS fixes
2019-01-11 14:30:13 +02:00
Gerhard
77537d2cd3
Update copy for processing order emails to not mention payment as some stores take payment after orders are placed.
2019-01-11 14:29:21 +02:00
Mike Jolley
11d14b30a4
PHPCS fixes
2019-01-11 12:28:52 +00:00
Mike Jolley
96603720ca
Item subtotal rounding must match cart calc class
...
Fixes #21871
2019-01-11 11:41:22 +00:00
Gerhard
0a5d3b1675
Sort countries based on wc_ascii_uasort_comparison
2019-01-11 13:40:38 +02:00
Gerhard
f8dfac9f48
Add wc_ascii_uasort_comparison function to compare values based on ascii values
2019-01-11 13:18:59 +02:00
Gerhard
11b9f49d18
Add a fallback to cURL version check in system status so it still shows if cURL is installed when the version function is disabled by the host.
2019-01-11 10:38:21 +02:00
Ron Rennick
7657783409
use DateTime function instead of implicit toString
2019-01-10 16:21:43 -04:00
Rodrigo Primo
c15d622dd2
WC_Data::get_id() does not take any parameters
...
This commit removes a parameter from a call to WC_Data::get_id() as this method does not take any parameters
2019-01-10 17:10:13 -02:00
Rodrigo Primo
609430a8f1
Remove unused parameter from WC_Webhook_Data_Store::delete()
2019-01-10 17:08:41 -02:00
Rodrigo Primo
3cf945d5d9
Fix PHPCS errors automatically using phpcbf
2019-01-10 17:07:53 -02:00
Rodrigo Primo
a7463c5535
Merge branch 'master' of github.com:woocommerce/woocommerce
2019-01-10 16:39:22 -02:00
Rodrigo Primo
3b3da24546
Fix typo in inline comment
2019-01-10 16:38:58 -02:00
Rodrigo Primo
c2b49dc6e3
fix phpcs violation
2019-01-10 16:38:26 -02:00
Rodrigo Primo
c82346b095
Restore code to delete wc_layered_nav_counts_* transients
...
Commit a9994feeea
removed the code to delete wc_layered_nav_counts_* transients whenever a product attribute is updated and moved it to wc_delete_product_transients(). This was done to make sure those transients are deleted whenever a product is updated and not only when a product attribute changes. But, as Claudiu pointed out (https://github.com/woocommerce/woocommerce/pull/22029#issuecomment-451473512 ), this change introduced a bug as if you remove an attribute from a product, by the time the code reaches wc_delete_product_transients() the changes have been applied already to the product, the attribute doesn't belong to it anymore, and thus the layered nav counts transient for that attribute is not deleted.
To work around this problem, this commit restores the code that deletes wc_layered_nav_counts_* transients inside WC_Product_Data_Store_CPT::update_attributes(). Now, in most cases, WC will try to delete the same transient twice, but I can't see any other way to implement a solution for the problem above without doing this.
2019-01-10 14:19:03 -02:00
Ron Rennick
6618d1e626
fix merge conflict
2019-01-10 11:22:31 -04:00
Ron Rennick
951b68be48
phpcs sniff fixes for class-wc-widget-price-filter.php
2019-01-10 11:13:50 -04:00
Ron Rennick
1033217860
only hide price filter widget when archive has no products
2019-01-10 11:12:09 -04:00
Mike Jolley
96ba549b2b
Remove type hint
2019-01-10 13:23:49 +00:00
Mike Jolley
f67ab4e447
correct version
2019-01-10 13:20:02 +00:00
Mike Jolley
1815928208
Merge branch 'master' into pr/21217
2019-01-10 13:10:11 +00:00
Mike Jolley
f4ed56a894
Merge pull request #21153 from jamesckemp/patch-12
...
`woocommerce_variation_option_name` Parameters
2019-01-10 12:28:21 +00:00
Gator92
a240623f47
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-10 07:21:34 -05:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
Ron Rennick
0d0f004c66
update default attribute slug when atribute term slug is changed
2019-01-09 15:10:24 -04:00
Rodrigo Primo
519886838c
Merge pull request #21969 from woocommerce/add/21964
...
Add woocommerce_valid_location_types filter
2019-01-09 17:02:20 -02:00
Will Gorham
56fa520b8e
Tests for get_shipping_continents()
2019-01-09 13:31:30 -05:00
Will Gorham
1fc4ef6c59
Clean up docblocks and unused vars
2019-01-09 12:54:37 -05:00
Will Gorham
da6f425488
phpcs
2019-01-09 12:49:11 -05:00
Will Gorham
8051a0b0fc
Only show available shipping continents in zone regions
2019-01-09 12:48:18 -05:00
Mike Jolley
bf5ea249b5
Merge pull request #21991 from johnbillion/21989/user-switching-support
...
User Switching support
2019-01-09 17:01:47 +00:00
Mike Jolley
fe02144d0a
Merge pull request #21927 from woocommerce/add/21925
...
Make links in order notes clickable.
2019-01-09 16:52:37 +00:00
Ron Rennick
1d05cf3d91
phpcs sniff fixes for class-wc-product-csv-exporter.php
2019-01-09 10:21:24 -04:00
Ron Rennick
74c9f16377
use slug sanitization on product export category slugs
2019-01-09 10:17:55 -04:00
Mike Jolley
b4427e0c25
Merge branch 'pr/22298'
2019-01-09 13:51:30 +00:00
Mike Jolley
06b5480f2d
Merge pull request #22071 from Prospress/fix/22060
...
don't html escape sku used in product lookup
2019-01-09 13:07:04 +00:00
Mike Jolley
5820faba78
Merge pull request #21986 from JPry/wc_customer_has_capability_return_doc
...
Use proper return value for wc_customer_has_capability() docblock
2019-01-09 12:10:34 +00:00
Mike Jolley
21d8f74cb3
Merge pull request #22389 from woocommerce/renovate/wp-cli-wp-cli-2.x
...
Update dependency wp-cli/wp-cli to v2
2019-01-09 11:54:11 +00:00
Mike Jolley
8edadae4df
Merge pull request #22123 from helgatheviking/additional-args-for-woocommerce_add_to_cart_redirect
...
Add param for woommerce_add_to_cart_redirect filter
2019-01-09 11:53:26 +00:00
Fitim
a50f279816
Add filters for mail callback and mail callback params in WC_Email::send method
2019-01-09 12:28:32 +01:00
Mike Jolley
2dbdc9d356
Load address from stored customer data for first time, not session.
2019-01-09 11:14:57 +00:00
Renovate Bot
d74ccb991f
Update dependency wp-cli/wp-cli to v2
2019-01-09 02:46:18 +00:00
Ron Rennick
e5b39f12c6
register order auto drafts post status
2019-01-08 16:35:54 -04:00
Ron Rennick
95af4c87f8
phpcs sniff fixes for class-wc-post-types.php
2019-01-08 16:34:24 -04:00
Claudiu Lodromanean
c3050db67c
Merge pull request #22337 from woocommerce/fix/22048
...
Restore non-cart notice printing opportunity during checkout
2019-01-08 12:16:20 -08:00
Mike Jolley
15979d975a
phpcs
2019-01-08 16:56:23 +00:00
pierrebuet
9ca3ae3453
Check for customer before checking for VAT excemption
...
In the actual form, the check done in the function is_taxable() of a shipping method can only be done in the frontend, since WC()->customer must be defined. Checking for a customer before checking the excemption would make the function also callable in the backend for different pre-calculation. If a customer is not defined, an exemption can not exists.
2019-01-08 15:57:21 +00:00
Mike Jolley
ade1021eff
Merge pull request #22205 from woocommerce/fix/22200
...
Introduce wc_is_webhook_valid_status
2019-01-08 15:32:57 +00:00
Mike Jolley
6e5a4201cf
Merge branch 'pr/21635'
2019-01-08 15:30:31 +00:00
Mike Jolley
eef05fafe9
update from master
2019-01-08 15:00:23 +00:00
Mike Jolley
9644241cef
update from master
2019-01-08 14:51:05 +00:00
Mike Jolley
868e7841e6
Merge pull request #21860 from rellect/wc_case
...
Rename wc() to WC() for consistency
2019-01-08 14:29:59 +00:00
Mike Jolley
a69ce0bfcb
Merge pull request #21764 from leewillis77/wc_get_template_filter
...
Allow plugins to filter located template location before failing
2019-01-08 14:23:58 +00:00
Mike Jolley
e31b35597a
Slash meta values to preserve slashes on save
2019-01-08 13:28:26 +00:00
Mike Jolley
a0aa663f29
Attribute post data needs stripslashes
2019-01-08 13:25:27 +00:00
Mike Jolley
b7e5c1b047
Merge pull request #21679 from amielucha/master
...
Fixes typos in class comments.
2019-01-08 11:11:42 +00:00
renovate[bot]
82397c2f7f
Pin dependencies ( #21842 )
2019-01-08 11:07:32 +00:00
claudiulodro
f9b4cced41
Correct number of items added logic in notif
2019-01-07 11:44:13 -08:00
Claudiu Lodromanean
9649759c04
Merge pull request #22331 from woocommerce/fix/22099
...
Check stock status when repopulating items in the cart from an order
2019-01-07 11:41:51 -08:00
Claudiu Lodromanean
2e1e77f6f0
Merge pull request #22330 from woocommerce/fix/21708
...
Add special button style for connect button
2019-01-07 11:40:31 -08:00
Claudiu Lodromanean
3b14bfb90b
Merge pull request #22270 from Prospress/fix/22149
...
strip slashes from tax classes on save
2019-01-07 11:39:35 -08:00
Mike Jolley
00a8972b68
Merge pull request #22230 from Prospress/fix/22129
...
add out of stock criteria to tax_query array instead of replacing it
2019-01-07 16:35:32 +00:00
Mike Jolley
7f71e0abe6
Add missing placeholder
2019-01-07 16:05:35 +00:00
Mike Jolley
04d7e54d42
Set country value when loading fields rather than in template files
2019-01-07 16:04:01 +00:00
Mike Jolley
ce2473e09f
Whenn loading address fields, enforce valid address
2019-01-07 16:03:23 +00:00
Mike Jolley
cb95d31066
Remove repetition from wc_get_customer_default_location and add validity check
2019-01-07 15:01:46 +00:00
Mike Jolley
864e0237c7
Merge remote-tracking branch 'origin' into pr/22125
2019-01-07 14:14:50 +00:00
Mike Jolley
9ce3f408a6
Merge pull request #22344 from woocommerce/fix/breadcrumbdata
...
Product structured data tweak to show both BreadcrumbList and Product structured data.
2019-01-07 13:49:54 +00:00
Mike Jolley
ba5c4c4fbd
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-01-07 13:36:13 +00:00
Mike Jolley
217c039262
Merge branch 'pr/21465'
2019-01-07 13:29:40 +00:00
Mike Jolley
f4dbd5a723
Define consistently
2019-01-07 13:29:09 +00:00
Mike Jolley
848eecf6a6
Merge pull request #21537 from jespervnielsen/patch-2
...
allow-filtering-on-wiget-get_current_page_url
2019-01-07 13:12:43 +00:00
Mike Jolley
6ccf385f8b
Merge pull request #22005 from woocommerce/add/21992
...
Add woocommerce_gallery_image_html_attachment_image_params filter
2019-01-07 13:05:53 +00:00
Mike Jolley
9e1f1f2255
Merge pull request #22160 from bordoni/lib-action-scheduler-php-52
...
Lib Action Scheduler PHP 5.2 Compatible
2019-01-07 12:56:10 +00:00
Mike Jolley
241cf4dece
Merge pull request #21442 from danielbitzer/master
...
Add coupon object param to get coupon data filter
2019-01-07 12:53:04 +00:00
Mike Jolley
4d0306b977
Merge pull request #21402 from xlplugins/master
...
Added new filter to modify order status during orders using cheque as a gateway.
2019-01-07 12:50:35 +00:00
Mike Jolley
0da7f9f06f
Merge pull request #21896 from jespervnielsen/patch-3
...
Add dependency to WC_Product_CSV_Importer_Controller
2019-01-07 12:48:45 +00:00
Mike Jolley
fb9847bcca
Merge pull request #21853 from rellect/incorrect_call
...
Remove non existent parameter
2019-01-07 12:47:40 +00:00
Mike Jolley
6dba8f3b05
Merge pull request #21498 from liquidweb/feature/sanitize-order-id-tests
...
Add tests for wc_sanitize_order_id()
2019-01-07 12:46:11 +00:00
Mike Jolley
83f46aca15
Merge pull request #21887 from hannahswain/patch-1
...
Update external/affiliate URL placeholder from http to https
2019-01-07 12:44:45 +00:00
Mike Jolley
05de936932
Merge pull request #21581 from codemascot/161018-131105-class-wc-ajax.php
...
Removed unnecessary variable.
2019-01-07 12:43:40 +00:00
Mike Jolley
981ddcfe34
Merge pull request #22167 from Prospress/fix/22161
...
Apply email usage restriction comparison to entire string
2019-01-07 12:31:12 +00:00
Mike Jolley
71ab4c78ed
Merge pull request #22168 from woocommerce/fix/rest-api-orderby-slug
...
[REST API] Fixed orderby slug
2019-01-07 12:19:35 +00:00
Mike Jolley
63bd02022f
Merge pull request #22084 from Prospress/fix/22075
...
Remove the stock data type on low stock threshold input which can be empty
2019-01-07 11:41:17 +00:00
Mike Jolley
8ad3491b99
Add option to control if remove personal data bulk action is allowed
2019-01-07 11:22:29 +00:00
Mike Jolley
9245687f6a
Merge remote-tracking branch 'origin/master' into enhancement/erasure-setting-22055
2019-01-07 11:07:12 +00:00
Miguel Pinto
0537145113
Add filter to hash location to change hash format
...
Ability to define a cache version only based on country, and not a region, city, etc.
Improve website performance by decreasing the number of different versions.
In my case, i was able to define v=[country_code] which is more URL friendly.
2019-01-06 13:58:12 +13:00
Claudiu Lodromanean
1612d2a230
Merge pull request #22074 from Prospress/fix/22068
...
ensure product parent exists before getting its image
2019-01-04 09:37:03 -08:00
Claudiu Lodromanean
99da8f4aa4
Merge pull request #22026 from Prospress/fix/21743
...
fix `0` value attribute permalink, property in REST api
2019-01-04 09:35:34 -08:00
Mike Jolley
82365fd6d2
Tweak tax handling when exempt of VAT and woocommerce_adjust_non_base_location_prices is off
2019-01-04 16:46:52 +00:00
Allen Snook
9efd543f73
Correct coding standard violations in pre-existing code
2019-01-04 08:39:57 -08:00
Mike Jolley
0c76db4093
Get instance setting defaults so it shows in customiser before save
2019-01-04 16:11:36 +00:00
claudiulodro
5a005d9ee9
Product structured data tweak
2019-01-04 07:51:22 -08:00
Mike Jolley
2edf517b2e
Update Emogrifier
2019-01-04 14:47:49 +00:00
Brent Shepherd
0593450ed3
Make webhooks scheduled actions unique
...
Fixes #22087
2019-01-04 14:27:08 +00:00
Brent Shepherd
b924e36f11
Fix WC_Action_Queue::get_next() return value
2019-01-04 14:27:01 +00:00
Mike Jolley
502a25a2fa
Merge pull request #22096 from woocommerce/fix/formatted_address_upper
...
Use wc_strtoupper on formatted address
2019-01-04 13:04:08 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Mike Jolley
f1afbcf03a
Single state file to avoid loops and reading multiple files on page load.
2019-01-04 12:04:47 +00:00
Mike Jolley
64aafeca27
phpcs alignment
2019-01-04 11:08:01 +00:00
Mike Jolley
0e43ad40f3
Load all states rather than just from allowed countries
...
Doesn't appear to cause much of a perf issue and doesn't appear to break the UI in any way. If anything, may expose states where not previously seen in some cases but since you can search this shouldn't be problematic.
2019-01-04 11:07:23 +00:00
Mike Jolley
da32fe3b8a
Include country name alongside states so selectwoo can search properly
...
Seems 'alt' was there in the hope select2 would search that but it's not possible without custom matchers. This instead will show state and country like this: `New York, United States.` This lets you find NY by searching for US
2019-01-04 11:05:29 +00:00
Mike Jolley
ff3a852b7f
Zones should use shipping countries, not allowed countries
2019-01-04 11:04:17 +00:00
Mike Jolley
c4e071480a
phpcs
2019-01-04 11:04:12 +00:00
Allen Snook
21441cc441
Restore non-cart notice printing opportunity during checkout
2019-01-03 15:52:45 -08:00
Ron Rennick
0be3c5c690
add gutenberg block preprocessor filter to shop page content
2019-01-03 16:22:55 -04:00
Mike Jolley
6e7e96c624
Check stock status before repopulating cart
2019-01-03 15:30:26 +00:00
Mike Jolley
6c9f9ea424
phpcs
2019-01-03 15:30:21 +00:00
Mike Jolley
58c3731030
Add special button style for connect button
2019-01-03 14:41:09 +00:00
Mike Jolley
cbee6af449
Use helper and return notes.
2019-01-03 13:40:48 +00:00
Mike Jolley
db0850a420
wc_maybe_adjust_line_item_product_stock helper
2019-01-03 13:40:22 +00:00
Mike Jolley
5ef45f51f6
Stock handling in ajax class only
2019-01-03 12:23:49 +00:00
Mike Jolley
5b8f95ea3c
Revert "Add adjust stock handling when deleting items"
...
This reverts commit 0a5c77d93d
.
2019-01-03 11:50:39 +00:00
Mike Jolley
999f744d83
Allow notes to be updated after other order screen events
2019-01-03 11:46:43 +00:00
Mike Jolley
282edab5d6
Revert "Add adjust stock option to order class when adding items"
...
This reverts commit 4a0447a150
.
2019-01-03 11:16:06 +00:00
claudiulodro
3c3894b676
Bump wc_version since 3.6 development has begun
2019-01-02 12:11:35 -08:00
Claudiu Lodromanean
89740f9583
Merge pull request #22204 from woocommerce/fix/22201
...
Restore empty schema support for register_rest_field
2019-01-02 12:03:41 -08:00
Claudiu Lodromanean
87a03b2331
Merge pull request #22189 from Prospress/fix/22186
...
Allow sale price to 23:59:59 on last sale date
2019-01-02 12:02:52 -08:00
Claudiu Lodromanean
34f472fdf2
Merge pull request #22185 from woocommerce/fix/21735
...
Don't wrap layered nav wp_json_encode string in quotes
2019-01-02 12:01:21 -08:00
Claudiu Lodromanean
d1964d5cb5
Merge pull request #22183 from codemascot/fix/22182
...
Fix for issue #22182
2019-01-02 12:00:35 -08:00
Claudiu Lodromanean
2f82039869
Merge pull request #21938 from Prospress/fix/21935
...
Unescape imported escaped CSV formulas in product attributes
2019-01-02 11:59:39 -08:00
Ron Rennick
1a02e9f64a
update variation guid with the id after creation
2019-01-02 14:26:08 -04:00
Mike Jolley
184b121eb8
Use adjust stock handling
2019-01-02 17:09:45 +00:00
Mike Jolley
0a5c77d93d
Add adjust stock handling when deleting items
2019-01-02 17:09:20 +00:00
Mike Jolley
4a0447a150
Add adjust stock option to order class when adding items
2019-01-02 17:04:51 +00:00
Ron Rennick
89855b749d
Only include the network orders widget on the main site dashboard
2019-01-01 16:15:28 -04:00
Ron Rennick
4b44156882
phpcs sniff fixes excluding DB queries
2019-01-01 16:14:02 -04:00
ICT beheer
8eb9393e62
Support for Dutch postcodes
2018-12-30 20:02:59 +01:00
Ron Rennick
3083f05a0c
missed phpcs sniffs
2018-12-27 11:45:12 -04:00
Ron Rennick
9b200b213d
convert newlines to/from \n on export/import
2018-12-26 15:30:40 -04:00
Ron Rennick
c1cb73c00f
phpcs sniff fixes in class-wc-product-csv-exporter.php
2018-12-26 14:54:46 -04:00
Ron Rennick
0e9494ba50
phpcs sniff fixes in class-wc-product-csv-importer.php
2018-12-26 11:22:52 -04:00
Alessandro Morelli
a4c5a34e99
Add a new integration hook to allow removal of cart items when the cart is loaded from the session without triggering preset notices.
2018-12-22 10:25:37 +01:00
John Rom
1055d79301
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields, to bypass manage_woocommerce when editing customer meta fields
2018-12-20 11:06:33 -05:00
Rodrigo Primo
ff74ecec86
Fix orders list in the admin
...
WP 5.0.2, which was released yesterday, sets `$query_vars['post_status']` to an empty string instead of leaving it unset (https://core.trac.wordpress.org/ticket/45719 and https://core.trac.wordpress.org/changeset/44185 ). This change broke the WC orders list in the admin when listing orders of all post statuses as we were checking if `$query_vars['post_status']` was not set to add all order statuses to this variable (125eaaf241/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L799)
).
To workaround this problem, this commit changes the check to verify if `$query_vars['post_status']` is empty instead of verifying if it is not set.
2018-12-20 09:56:02 -02:00
Rodrigo Primo
948a1dc300
Fix PHPCS violations automatically using PHPCBF
2018-12-20 09:48:14 -02:00
Ron Rennick
292c5c5dcc
strip slashes from tax classes on save
2018-12-19 15:22:04 -04:00
Ron Rennick
d1d2c89ca9
convert user creation GMT datestamp to local datetime in API
2018-12-19 13:20:15 -04:00
Rodrigo Primo
125eaaf241
Merge branch 'master' of github.com:woocommerce/woocommerce
2018-12-19 13:31:34 -02:00
Rodrigo Primo
941217719e
phpcs fixes using phpcbf
2018-12-19 13:31:11 -02:00
Rodrigo Primo
cb0c23d6ab
Merge pull request #22244 from faisal-alvi/fix-22234
...
Fix-22234
2018-12-19 12:42:48 -02:00
Rodrigo Primo
0cb992925d
phpcs fix using phpcbf
2018-12-19 12:40:02 -02:00
Sabuj Kundu
f329cb2d75
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
...
Filter woocommerce_get_catalog_ordering_args has only one single argument $args, anyone filter this needs to detect the $orderby and $order value again which is already coded in the method where this filter returns. I hope adding two extra param $orderby and $order will make developer's life easier to hook this filter.
2018-12-18 11:07:18 +06:00
Diego
5970c9d0f5
Added new filter "woocommerce_get_min_max_price_meta_query"
2018-12-17 22:42:35 +00:00
Faisal Alvi
cbafb8e006
Fix-22234
2018-12-17 15:01:05 +05:30
Ron Rennick
771a615328
add out of stock criteria to tax_query array instead of replacing it
2018-12-14 14:52:26 -04:00
Ron Rennick
32ae40ffb0
phpcs sniff fixes for class-wc-widget-products.php
2018-12-14 14:50:58 -04:00
Gerhard
4daafd28e4
v2 API should also use wc_get_webhook_statuses for the enum in the schema status
2018-12-14 08:08:56 +02:00
Ron Rennick
aba43ae6de
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2018-12-13 16:04:53 -04:00
Ron Rennick
50b36e549f
phpcsw sniff fixes for class-wc-product-variable-data-store-cpt.php
2018-12-13 14:35:24 -04:00
Ron Rennick
36c220f0d6
fix merge conflicts, add missing wpdb::prepare
2018-12-13 14:21:25 -04:00
Gerhard
ac9b588147
Remove status check from schema, do checks when updating. Define status schema enum using the wc_get_webhook_statuses method.
2018-12-13 13:05:50 +02:00
Gerhard
189f346c2e
Add unit tests for wc_is_webhook_valid_status
2018-12-12 10:33:52 +02:00
Gerhard
1ac267992d
Add new wc_is_webhook_valid_status and use that for the schema check in the API.
2018-12-12 10:21:59 +02:00
Gerhard
5d22d42c9b
PHPCS fixes
2018-12-12 10:05:03 +02:00
Gerhard
38391f7bbf
Update WC_REST_Controller to apply WP 5.0 fix as per https://core.trac.wordpress.org/attachment/ticket/45220/45220.2.diff
2018-12-12 10:03:22 +02:00
Claudiu Lodromanean
c4ae48597c
Merge pull request #21904 from Prospress/fix/21196
...
allow limited html in `woocommerce_rating_filter_count` filter
2018-12-11 11:18:19 -08:00
Claudiu Lodromanean
c3334302bd
Merge pull request #22108 from woocommerce/fix/meta-queries-REST-API
...
Fixed support for multiple query parameters translated to meta queries via REST API requests
2018-12-11 11:12:56 -08:00
Claudiu Lodromanean
6e457799b3
Merge pull request #21943 from woocommerce/fix/21516
...
Match array keys on lowercase keys before calling set_props
2018-12-11 11:12:22 -08:00
Claudiu Lodromanean
b70fed6868
Merge pull request #21669 from woocommerce/fix/helper-not-able-to-detect-local-woo-plugin
...
Add File Headers filter at 'plugins_loaded' hook so that WooCommerce Helper can detect all locally installed Woo plugins
2018-12-11 11:08:49 -08:00
Claudiu Lodromanean
f6c3766cf0
Merge pull request #22139 from aslamshekh/fixed-wordpress-standard-1
...
Fixed Wordpress standard as per given suggestion on #22122
2018-12-10 14:12:07 -08:00
Claudiu Lodromanean
d1e71994dc
Merge pull request #22170 from faisal-alvi/master
...
`abstract-wc-widget.php` - coding standard fixes
2018-12-10 14:06:38 -08:00
Ron Rennick
b6c614c2af
allow sale price to 23:59:59 on last sale date
2018-12-10 10:37:13 -06:00
Ron Rennick
b8d635a29c
phpcs sniffs in abstract-wc-product.php
2018-12-10 10:34:12 -06:00
Gerhard
7074b0933c
Don't wrap wp_json_encode string in quotes, it already does it for us.
2018-12-10 10:14:56 +02:00
Khan M Rashedun-Naby
50bb510c93
Fix for issue #22182
2018-12-10 00:47:49 +06:00
Ron Rennick
52f13f8708
fix phpcs sniffs in class-wc-widget-rating-filter.php
2018-12-07 09:27:56 -06:00
Rodrigo Primo
0b413351a2
Merge pull request #22031 from Prospress/fix/22027
...
fix PHP 5.2 sniffs in class-wc-install.php
2018-12-07 11:43:46 -02:00
Faisal Alvi
8dbb795610
abs-wc-widget-coding-stds
...
Few coding standard fixes in the file abstract-wc-widget.php
2018-12-07 18:57:03 +05:30
Rodrigo Primo
5da1b72464
Merge pull request #21913 from Prospress/fix/21909
...
Capitalize dashboard widget titles
2018-12-07 11:24:25 -02:00
Claudio Sanches
7cbcaf04e8
Merge pull request #22121 from woocommerce/fix/update-settings-controller
...
Fix updating settings via the API
2018-12-06 16:49:44 -02:00
Ron Rennick
2b74017200
apply usage restriction compare to entire string
2018-12-06 12:32:04 -06:00
Ron Rennick
8c852780ea
phpcs sniff fixes for class-wc-cart.php
2018-12-06 12:31:21 -06:00
Claudio Sanches
fb35324c4f
[REST API] Fixed orderby slug
2018-12-06 16:17:58 -02:00
Rodrigo Primo
522f992bfe
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
...
This commits adds a filter to WC_Product_Data_Store_CPT::search_products() to let third-party code define custom ways to search for products.
2018-12-06 16:08:10 -02:00
Rodrigo Primo
99b633d1e5
Merge pull request #22028 from woocommerce/phpcs-wp-db
...
Update WPCS sniff names
2018-12-06 15:56:12 -02:00
Peter Fabian
dc39d265fd
Merge branch 'master' into fix/update-settings-controller
2018-12-06 16:28:46 +01:00
Gustavo Bordoni
31aded7091
Remove one more PHP 52 incomaptible \
2018-12-06 09:48:18 -05:00
Gustavo Bordoni
98d6a715a2
PHP 5.2 Compatibility
2018-12-06 09:45:09 -05:00
Rodrigo Primo
164758a5f0
Merge pull request #22110 from stromhalm/patch-1
...
Properly close option tag in customer search
2018-12-06 12:18:54 -02:00
Rodrigo Primo
e7296aec03
Merge pull request #22081 from rvdsteege/patch-1
...
Fix incorrect return type documentation for product factory `get_product()`.
2018-12-06 12:09:52 -02:00
Aslam Shekh
0611204238
Fixed Wordpress standard as per given suggestion on here:- https://github.com/woocommerce/woocommerce/pull/22122#issuecomment-444207375
2018-12-05 08:12:57 -08:00
Will Gorham
329d415cfd
When selling to a single country, force user location to that country
2018-12-04 14:47:04 -05:00
Rodrigo Primo
a91bc5b1ec
phpcs fixes using phpcbf
2018-12-04 16:04:24 -02:00
Kathy Darling
eadef501af
need to pass a null parameter in second place where woocommerce_add_to_cart_redirect filter appears to avoid errors.
2018-12-04 11:58:54 -06:00
Kathy Darling
f9fecefb5f
Add product object and add to cart success status as params for woocommerce_add_to_cart_redirect filter
2018-12-04 11:58:14 -06:00
Rodrigo Primo
24fd6f89c6
Merge branch 'master' into phpcs-wp-db
2018-12-04 15:39:19 -02:00
Justin Shreve
379f257e3d
Load the correct class for settings options
2018-12-04 11:20:34 -05:00
Ron Rennick
c1ad273a03
replace all remaining str_replace( 'pa_', ... with wc_attribute_taxonomy_name_raw(...)
2018-12-03 11:32:33 -04:00
Ron Rennick
dc0aeb0553
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for class-wc-rest-products-v2-controller.php
2018-12-03 11:32:19 -04:00
Ron Rennick
33f25f83b5
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for class-wc-admin-importers.php
2018-12-03 11:31:59 -04:00
Ron Rennick
e8ec6df3ff
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for abstract-wc-widget.php
2018-12-03 11:31:47 -04:00
Ron Rennick
e95842228a
phpcs sniff fixes wc-attribute-functions.php, introduct `wc_attribute_taxonomy_name_raw()`
2018-12-03 11:30:26 -04:00
Adrian Jagusch
8732d200e1
Properly close option tag in customer search
2018-12-03 15:27:45 +01:00
Peter Fabian
9547895863
Don't remove existing meta queries via REST API.
2018-12-03 11:52:36 +01:00
Ron Rennick
f9b2ff170f
add missing wpdb::prepare calls
2018-11-30 15:52:20 -04:00
Claudio Sanches
a0e77eb40c
Use wc_strtoupper on formatted address
2018-11-30 15:59:28 -02:00
claudiulodro
5d0d275bec
Remove duplicate sanitizing
2018-11-30 08:49:43 -08:00
claudiulodro
2bccd4899a
Revise to make code cleaner
2018-11-30 08:49:43 -08:00
claudiulodro
d1533261f5
Extra sanitizing around payment_method_title
2018-11-30 08:49:43 -08:00
Peter Fabian
bfcb709eef
Added initial fill of attribute values for variations in the init procedure.
2018-11-30 13:54:21 +01:00
Ron Rennick
267b5ed569
only include order erasure bulk action if erasure is enabled in settings
2018-11-29 16:20:56 -04:00
Ron Rennick
59c1b2f669
phpcs sniff fixes class-wc-admin-list-table-orders.php
2018-11-29 16:16:51 -04:00
Ron Rennick
b7f87c8cd2
Remove the stock data type on low stock threshhold input which can be blank
2018-11-29 14:58:51 -04:00
Ron Rennick
ef23f0bb8f
fix phpcs passing array arguments to wpdb::prepare
2018-11-29 14:52:52 -04:00
Peter Fabian
9389cf4089
Added storing attribute values as post_excerpt for variations.
...
This allows searching for variations by their attributes without cluttering the Variation's title.
2018-11-29 17:33:16 +01:00
Reüel van der Steege
b433219f71
Fix incorrect return type documentation for product factory `get_product()`.
...
This method returns `false` if the product cannot be loaded, not `null`.
2018-11-29 15:25:24 +01:00
Claudiu Lodromanean
7049cd28e9
Merge pull request #22057 from leewillis77/status-report-plugin-fix
...
"Active plugins" fix for status report
2018-11-28 11:09:26 -08:00
Ron Rennick
548fc72718
ensure product parent exists before getting its image
2018-11-28 14:41:12 -04:00
Ron Rennick
b0b2320559
fix phpcs sniffs in abstract-wc-product.php
2018-11-28 14:34:24 -04:00
Beka Rice
e64c5e1077
Send webhooks for refund creation
2018-11-28 13:32:36 -05:00
Ron Rennick
99a48cc0a0
don't html escape sku used in product lookup
2018-11-28 13:47:27 -04:00
Ron Rennick
ddcfb50d4b
fix phpcs in class-wc-product-csv-importer.php
2018-11-28 13:45:33 -04:00
Claudiu Lodromanean
fd195cfbf6
Merge pull request #21940 from woocommerce/fix/21937
...
Make wc_download_log FK use table prefix
2018-11-28 07:48:05 -08:00
Ron Rennick
9e520af93e
populate default variation attributes when it is the first variation
2018-11-28 11:40:35 -04:00
Ron Rennick
042c61cc5d
fix phpcs sniffs in class-wc-product-variable-data-store-cpt.php
2018-11-28 11:22:07 -04:00
Ron Rennick
3e014ffe62
add is_array check to catalog ordering orderby
2018-11-28 08:51:05 -04:00
Ron Rennick
64621c5b36
fix phpcs sniffs in class-wc-query.php
2018-11-28 08:50:25 -04:00
claudiulodro
d5f7afbff3
Simplify contraint
2018-11-27 11:08:47 -08:00
Claudiu Lodromanean
2e157427fc
Merge pull request #21970 from woocommerce/feature/twenty-nineteen
...
Enhanced compatibility with Twenty Nineteen
2018-11-27 09:13:14 -08:00
Claudiu Lodromanean
ebd6ecb95f
Merge pull request #22009 from woocommerce/php73-wp-nightly
...
Prepare WooCommerce for PHP 7.3
2018-11-27 09:12:39 -08:00
Claudiu Lodromanean
d8119dd1e9
Merge pull request #21865 from Prospress/fix/21857
...
consistent logic on `woocommerce_formatted_address_force_country_display` filter name
2018-11-27 09:12:04 -08:00
Claudiu Lodromanean
f7680ffa36
Merge pull request #22013 from woocommerce/fix/21789
...
Fixed REST API authentication when using 3rd party auth methods
2018-11-27 09:11:37 -08:00
Claudiu Lodromanean
1f00fa9b02
Merge pull request #22050 from woocommerce/fix/21796-2
...
Add hold stock minutes check to order pay shortcode also
2018-11-27 09:11:19 -08:00
Lee Willis
6f24d5b283
Coding standard fix
2018-11-27 12:05:10 +00:00
Lee Willis
0079312e1c
Remove erroneous "break"
2018-11-27 11:20:27 +00:00
claudiulodro
13371c7e8b
Check product exists before getting title
2018-11-26 11:16:58 -08:00
claudiulodro
695d3eb433
Add hold stock minutes check to order pay shortcode also
2018-11-26 11:10:07 -08:00
Ron Rennick
e39a86d4ee
fix PHP 5.2 sniffs in class-wc-install.php
2018-11-23 14:49:08 -04:00
Rodrigo Primo
a9994feeea
Delete wc_layered_nav_counts_* transients whenever a product is updated
...
This commit moves the code to delete wc_layered_nav_counts_* transients from WC_Product_Data_Store_CPT::update_attributes() to wc_delete_product_transients(). This way those transients will be deleted whenever a product is updated and not only when the product attributes are updated. This is needed to make sure that the "Filter Products by Attribute" displays the correct list of attributes when a product changes from out of stock to in stock or vice versa via the "Quick Edit" interface or the WC API.
2018-11-23 15:30:38 -02:00
Rodrigo Primo
8d5b428a29
Update WPCS sniff name from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared
...
The name of the sniff changed in WPCS 1.0
2018-11-23 15:29:53 -02:00
Rodrigo Primo
6ec2b26972
Update WordPress.DB.PreparedSQL.NotPrepared sniff name
...
The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared.
2018-11-23 15:10:52 -02:00
Ron Rennick
45370d3e61
fix `0` value attribute permalink calculation, property population in REST api
2018-11-23 11:13:25 -04:00
Rodrigo Primo
57f44798cb
Fix phpcs violations automatically using phpcbf
2018-11-23 12:57:51 -02:00
Rodrigo Primo
eb76ac9f65
Fix phpcs violations automatically using phpcbf
2018-11-23 12:37:23 -02:00
Rodrigo Primo
242641e931
Merge pull request #21987 from webdados/patch-2
...
Fix Angolan "State" label to "Province"
2018-11-23 11:21:08 -02:00
Rodrigo Primo
05bae41b24
Fix phpcs violations automatically using phpcbf
2018-11-23 11:17:43 -02:00
Rodrigo Primo
76b7f5b381
Merge pull request #21995 from woocommerce/fix/21790
...
When only selling to one country set customer location to that country
2018-11-22 12:06:12 -02:00
Rodrigo Primo
b3bfb77edb
fix phpcs error
2018-11-22 10:58:55 -02:00
Rodrigo Primo
12bac0f2b6
Merge branch 'master' into fix/21790
2018-11-22 10:57:47 -02:00
Rodrigo Primo
a096e2729a
Merge pull request #21936 from woocommerce/fix/21878
...
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-22 10:54:57 -02:00
Claudiu Lodromanean
dd2ef82dc8
Merge pull request #21797 from jdmadison/fix-21796
...
Add woocommerce_hold_stock_minutes check back to calculation
2018-11-21 13:11:20 -08:00
Claudiu Lodromanean
b85598a576
Merge pull request #22001 from woocommerce/fix/21792
...
Fix missing lost password notices
2018-11-21 13:06:39 -08:00
Claudiu Lodromanean
e0cf359378
Merge pull request #22000 from woocommerce/fix/21990
...
Fix arialabelledby attribute for quantity selectors
2018-11-21 13:02:53 -08:00
Claudiu Lodromanean
152b609c35
Merge pull request #21981 from woocommerce/fix/21422
...
Log file timestamp should be UTC
2018-11-21 12:59:46 -08:00
Claudio Sanches
6a21ec401c
Fixed coding standards
2018-11-21 16:12:35 -02:00
Claudio Sanches
fa8ec35006
Fixed REST API authentication when using 3rd party auth methods
...
Closes #21789
2018-11-21 16:10:36 -02:00
John Blackbourn
71def7b5f0
Revert "Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989."
...
This reverts commit b0b36ae4b8
.
2018-11-21 18:50:59 +01:00
Rodrigo Primo
171e90815b
Merge pull request #21985 from webdados/patch-1
...
Fix locale for São Tomé and Príncipe
2018-11-21 15:25:08 -02:00
Rodrigo Primo
c349136273
Merge branch 'master' into php73-wp-nightly
2018-11-21 11:15:48 -02:00
Rodrigo Primo
2c8d006c37
Update PHPCompatibility sniff names
...
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo
bfa9424d17
Update WPCS sniff name
...
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo
e467737653
phpcs fixes
2018-11-21 11:06:42 -02:00
Gerhard
06d7d50f9d
Include main_image variable in the woocommerce_gallery_image_html_attachment_image_params filter.
2018-11-21 13:52:55 +02:00
Gerhard
7e4e0de090
PHPCS fixes
2018-11-21 13:48:35 +02:00
Gerhard
9eb31f5d14
Add woocommerce_gallery_image_html_attachment_image_params filter so you can modify the params passed to wp_get_attachment_image for thumbnails.
2018-11-21 13:47:24 +02:00
Gerhard
f58fcf6b3b
Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices
2018-11-21 10:32:28 +02:00
Gerhard
8d6d95935a
Populare arealabelledby attribute by actually passing the product_name in the $args.
2018-11-21 09:49:38 +02:00
claudiulodro
ebea6b96be
When only selling to one country set customer location to that country
2018-11-20 12:07:57 -08:00
Claudiu Lodromanean
ac80e6683e
Merge pull request #21947 from franticpsyx/issue-21845
...
Refine new order-again logic
2018-11-20 10:53:40 -08:00
Rodrigo Primo
a9e532022a
Replace `continue` inside `switch` statement with `break`
...
PHP 7.3 will generate a warning when `continue` is used inside a `switch` statement. For more information see the relevant section in https://make.wordpress.org/core/2018/10/15/wordpress-and-php-7-3/
2018-11-20 16:24:11 -02:00
John Blackbourn
b0b36ae4b8
Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989 .
2018-11-20 18:58:42 +01:00
John Blackbourn
179aa0853d
Add a public method for forgetting a session without clearing it.
2018-11-20 18:58:14 +01:00
Rodrigo Primo
d29ead0e63
Make Emogrifier regular expressions compatibile with PCRE2
...
In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587 ) instead of updating the library to the yet to be released version 2.1.0.
This change removes the following warning when running WC unit tests using PHP 7.3:
PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504
For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3
2018-11-20 15:54:54 -02:00
Marco Almeida
276d6f3526
Fix Angolan "State" label to "Province"
...
In Angola "states" are called "Províncias" (or "Provinces" in English)
2018-11-20 14:17:11 +00:00
Jeremy Pry
7cc3d098ea
Use proper return value for wc_customer_has_capability() docblock
2018-11-20 08:50:46 -05:00
Marco Almeida
b19941dae4
Fix locale for São Tomé and Príncipe
...
Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label.
2018-11-20 13:29:45 +00:00
Marco Almeida
9282c1a619
Remove postal code for Angola
...
Angola still doesn't have a postcode system in place.
References:
https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola
https://en.wikipedia.org/wiki/List_of_postal_codes
2018-11-20 12:36:45 +00:00
Gerhard
47226ae2bf
PHPCS fixes
2018-11-20 12:54:59 +02:00
Gerhard
c05c17d947
Timestamp should be in UTC since we use date( 'c' ) for outputting the date/time in the file.
2018-11-20 12:46:52 +02:00
Claudiu Lodromanean
0cf264dc72
Merge pull request #21949 from franticpsyx/issue-21948
...
Parse query using '$wpdb->prepare' before querying
2018-11-19 13:13:53 -08:00
Claudiu Lodromanean
b585553ee9
Merge pull request #21864 from Prospress/fix/21457
...
allow export and display of attribute labels containing html special characters
2018-11-19 12:20:41 -08:00
Claudiu Lodromanean
0ddfbbe1ac
Merge pull request #21954 from willgorham/fix/21793
...
Fix hardcoded db table name [Fixes #21793 ]
2018-11-19 12:10:55 -08:00
Claudiu Lodromanean
4d93bf60e1
Merge pull request #21930 from woocommerce/update/21915
...
Add WP 5.0 checks to Wootenberg notices
2018-11-19 11:47:43 -08:00
Claudio Sanches
ff762609e9
Fix how generate pages
2018-11-19 14:25:06 -02:00
Tiago Noronha
89eec8652f
Add support for Twenty Nineteen color scheme option
2018-11-19 15:02:26 +00:00
Gerhard
dbeabd5b09
Add woocommerce_valid_location_types filter
2018-11-19 13:04:58 +02:00
sebastianpisula
9b5e7ae2c6
New params for woocommerce_shipping_zone_*_methods_table actions
...
Add $zone param to woocommerce_shipping_zone_before_methods_table and woocommerce_shipping_zone_after_methods_table action
2018-11-18 12:59:54 +01:00
Karolína Vyskočilová
45d2ddc5e8
phpcbf
2018-11-18 10:58:58 +01:00
Will Gorham
4b1dd35dda
Revert "phpcs" (bc4010) - incorrect phpcs fixes
...
This reverts commit bc4010cfc1
.
2018-11-16 15:20:57 -05:00
Will Gorham
b53fe55299
More phpcs
2018-11-16 14:47:31 -05:00
Will Gorham
bc4010cfc1
phpcs
2018-11-16 14:15:18 -05:00
Will Gorham
20526cba08
Fix hardcoded db table name
2018-11-16 14:15:04 -05:00
Valerie
94275039cd
OBW: Fix ShipStation plugin info so install works
2018-11-16 14:06:58 -05:00
Tiago Noronha
4e01bf18dd
Twenty Nineteen basic styling
2018-11-16 16:38:05 +00:00
Tiago Noronha
3168f13d9d
Skeleton for Twenty Nineteen integration
2018-11-16 16:38:05 +00:00
Manos Psychogyiopoulos
60b84c09aa
Parse query using '$wpdb->prepare' before querying
2018-11-16 16:11:31 +02:00
Manos Psychogyiopoulos
059d803484
Rename 'woocommerce_add_cart_item' to 'woocommerce_add_order_again_cart_item'
2018-11-16 15:27:30 +02:00
Manos Psychogyiopoulos
520a7e1a27
Pass order-again items to 'woocommerce_ordered_again' action
2018-11-16 15:25:35 +02:00
Manos Psychogyiopoulos
c44809422b
Pass order-again cart contents to 'woocommerce_ordered_again' action
2018-11-16 15:23:08 +02:00
Gerhard
b071855632
Some PHPCS fixes
2018-11-16 12:17:33 +02:00
Gerhard
3943ec6395
Convert array keys to lower case before comparing keys to exclude.
2018-11-16 12:13:51 +02:00
Gerhard
f7f7eebc1c
Fix PHPCS issues
2018-11-16 08:29:13 +02:00
Gerhard
92bf56cde0
Add wc_update_352_drop_download_log_fk to the DB update routine.
2018-11-16 08:27:06 +02:00
Gerhard
92e9f2811b
Make the wc_download_log FK use table prefix for cases where multiple single install tables are used in the same DB.
2018-11-16 08:18:25 +02:00
Ron Rennick
900c150569
Introduce `unescape_data` replacing `unescape_negative_number` for consistency with `escape_data` for strings in a CSV context
2018-11-15 15:49:39 -04:00
Ron Rennick
9c3fbc304e
only prepend CSV content triggers with a ' on export
2018-11-15 15:49:25 -04:00
claudiulodro
d09e9eb95c
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-15 11:42:22 -08:00
Claudiu Lodromanean
8f145c70d7
Merge pull request #21934 from Prospress/fix/21931
...
use lower case for Croatian Kuna symbol
2018-11-15 10:51:22 -08:00
claudiulodro
180ead91e4
Update notice wording for wp 5.0
2018-11-15 10:19:51 -08:00
Claudiu Lodromanean
f13c62c5ea
Merge pull request #21928 from woocommerce/fix/21926
...
Initialise $changes before usage.
2018-11-15 10:06:38 -08:00
Claudiu Lodromanean
0f72b5b6b1
Merge pull request #21923 from woocommerce/add/db-upgrade-tools
...
Update database tools option
2018-11-15 10:02:14 -08:00
Ron Rennick
c911d90614
use lower case for Croatian Kuna symbol
2018-11-15 13:36:36 -04:00
Claudiu Lodromanean
314088acad
Merge pull request #21836 from Prospress/fix/21775
...
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-15 09:13:14 -08:00
Claudiu Lodromanean
9fab802ff3
Merge pull request #21706 from nishitlangaliya/issue-21657
...
fix: Various 'Table does not exist' in WooCommerce status
2018-11-15 09:12:51 -08:00
Gerhard
f2230da7d2
Use get_bloginfo( 'version' ) instead of wp_version global
2018-11-15 15:27:58 +02:00
Gerhard
341c0a8277
Add wp 5.0 checks to wootenberg notice checks.
2018-11-15 15:26:19 +02:00
Gerhard
a3f3b282ac
Initialise $changes before usage.
2018-11-15 14:36:56 +02:00
Gerhard
fae1e1cce1
Make links in order notes clickable.
2018-11-15 14:27:26 +02:00
Gerhard
6a2b511731
Change wording to update instead of upgrade.
2018-11-15 12:10:17 +02:00
Gerhard
051fb5be36
Add a Upgrade database option to the tools tab. If clicked it will do a forced DB upgrade.
2018-11-15 12:03:12 +02:00
Gerhard
77309a86c3
When dynamic choosing API class, the comparison should be !== as the lastest version has no v3 in the class name.
2018-11-15 11:15:42 +02:00
Claudiu Lodromanean
c3c84d2573
Merge pull request #21849 from woocommerce/fix/21832
...
Pay pending order, do not check stock when not managing stock
2018-11-14 14:07:04 -05:00
Claudiu Lodromanean
81be4f4795
Merge pull request #21738 from Prospress/issue_21736
...
Add SSL check to dashboard SSL notice
2018-11-14 12:51:50 -05:00
Claudiu Lodromanean
32afd82cfa
Merge pull request #21838 from woocommerce/update/preview
...
Reintroduce Preview button on products
2018-11-14 12:38:29 -05:00
Ron Rennick
d0672b68c6
Capitalize dashboard widget titles
2018-11-14 13:34:15 -04:00
Ron Rennick
8e7715088e
allow limited html in `woocommerce_rating_filter_count` filter
2018-11-13 11:33:44 -04:00
Jesper V Nielsen
a09ddb99dc
Add dependency to WC_Product_CSV_Importer_Controller
...
When using the class WC_Product_CSV_Importer it gives fatal error, when using outsite of controller context, after "WC_Product_CSV_Importer_Controller" is introduced in this class.
This fixes it, and makes sure the external class exists, and is loaded.
2018-11-13 10:18:05 +01:00
Hannah Swain
1e142836b6
Update html-product-data-general.php
...
Changed external/affiliate product URL field's placeholder from http:// to https:// to reflect web preference for https
2018-11-12 13:56:00 +01:00
Joshua Flowers
2a76f0c19d
Add WC_Admin_Taxonomies instance method
2018-11-12 11:30:09 +08:00
Kanishk
ebd08e72b3
Added action on '9' priority
2018-11-10 02:12:09 +05:30
Ron Rennick
5b486a1e2f
allow export and display of attribute labels containing html special characters
2018-11-09 09:17:18 -04:00
Ron Rennick
91ddf1f7c1
make logic consistent with `woocommerce_formatted_address_force_country_display` filter name
2018-11-08 16:35:57 -04:00
Claudiu Lodromanean
f39b006264
Merge pull request #21856 from woocommerce/fix/21763
...
Apply field priority sorting on additional filters
2018-11-08 10:08:14 -05:00
Refael Iliaguyev
127f1cb276
Use WC() instead wc() for consistency
2018-11-08 12:59:07 +02:00
Andrew Benbow
163795b2ab
Add filter to save_payment_method_checkbox
...
Allow the save payment method checkbox to be removed based on payment gateway settings.
2018-11-08 09:15:18 +00:00
Gerhard
879139d81e
Apply priority filtering on additional filters to accomodate pages like my account edit address.
2018-11-07 14:16:05 -05:00
Refael Iliaguyev
e5a8df36e3
Remove non existent parameter
2018-11-07 17:16:57 +02:00
Refael Iliaguyev
d8648f8aa7
Use correct return types
2018-11-07 16:49:41 +02:00
Gerhard
aabae5d21f
On form-pay, do not check for stock if not managing stock or allowing backorders.
2018-11-07 08:54:41 -05:00
Claudiu Lodromanean
452e8bc065
Merge pull request #21831 from jvanderveen/master
...
Fix for: WooCommerce Tax Rates (CSV) import does not work when entered path to file #21826
2018-11-06 16:08:54 -05:00
Kanishk
c7fc4a9521
Refactored code to add filters on plugins_loaded
2018-11-07 02:32:57 +05:30
Claudiu Lodromanean
f4cd63963e
Merge pull request #21821 from woocommerce/fix/21798
...
Display notices in order pay page.
2018-11-06 16:00:13 -05:00
Claudiu Lodromanean
cae710c294
Merge pull request #21810 from ghettifish/master
...
added an error for variation using variation for parent in import and…
2018-11-06 15:56:27 -05:00
Claudiu Lodromanean
5fc9879e1c
Merge pull request #21801 from woocommerce/fix/priority
...
Check priority index before comparing
2018-11-06 15:55:01 -05:00
claudiulodro
0488bcd324
fix typo
2018-11-06 15:53:11 -05:00
Claudiu Lodromanean
900d3bad93
Merge pull request #21778 from woocommerce/fix/21426
...
Make get_on_sale_products not include non published parent results
2018-11-06 15:50:31 -05:00
Ron Rennick
e3f00a6fbd
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-06 16:43:46 -04:00
claudiulodro
510d3a756f
Reintroduce Preview button on products
2018-11-06 15:28:23 -05:00
Kanishk
b5b60c93b7
Merge branch 'master' into fix/helper-not-able-to-detect-local-woo-plugin
2018-11-07 01:46:31 +05:30
jvanderveen
c205cab470
Update class-wc-tax-rate-importer.php
2018-11-06 15:01:44 +01:00
Nicolas Bovee
b7ef951ac0
Revised error message and set is_type method on .
2018-11-05 23:19:10 -07:00
Claudio Sanches
c9d62e506a
Use hook instead
2018-11-05 18:40:00 -02:00
Claudio Sanches
0da8f23253
Display notices in order pay page.
...
Closes #21798
2018-11-05 18:35:23 -02:00
Claudiu Lodromanean
b551f57173
Merge pull request #21769 from nishitlangaliya/issue-21765
...
fix: Manually adding fee on order generate html code
2018-11-05 15:27:33 -05:00
Claudio Sanches
2c61e103fe
Use correct block for default pages
2018-11-05 14:45:48 -02:00
Nico Mollet
0dcf6e2796
"account erasure request" text is not translatable
...
`esc_html__` should be used instead of `esc_html`
2018-11-05 14:47:28 +01:00
Nicolas Bovee
fe5f2d411b
added an error for variation using variation for parent in import and removed @access on 87
2018-11-04 23:34:17 -07:00
roykho
800ed5fe73
Check priority index before comparing
2018-11-03 08:13:14 -07:00
Jeremy Madison
17c43ffa5d
Add woocommerce_hold_stock_minutes check back to calculation
2018-11-02 12:25:58 -07:00
nishitlangaliya
b7cf72d626
fix: save fee name without html from base source
2018-11-03 00:19:30 +05:30
claudiulodro
b0b3ddccb0
remove extra parens
2018-11-02 10:21:30 -07:00
claudiulodro
0fa1448cfe
Topic blacklist
2018-11-02 10:21:30 -07:00
Claudio Sanches
a1875a135e
Added exception for when a non-admin user tries assign API keys to an admin
2018-11-02 10:21:18 -07:00
Claudio Sanches
8618d9a976
Fixed coding standards
2018-11-02 10:21:18 -07:00
Claudio Sanches
7437289418
Check for permissions before allow edit REST API keys
2018-11-02 10:21:18 -07:00
Claudio Sanches
58d2fc85ed
Fixed permission check to allow list customers
2018-11-02 10:21:08 -07:00
Claudio Sanches
8c908b178e
Fixed permission check on customers endpoint for legacy REST API
2018-11-02 10:21:08 -07:00
Claudio Sanches
246cc569f3
Allow shop managers to only manipulate customers on REST API
2018-11-02 10:21:08 -07:00
Claudio Sanches
fff05e9434
Included sanitization for product's description on legacy REST API
2018-11-02 10:20:55 -07:00
Claudiu Lodromanean
ecdffab309
Merge pull request #21641 from jamsheerkrd/master
...
Update abstract-wc-data.php
2018-11-02 09:04:34 -07:00
Sławek Amielucha
e996166cdb
Merge pull request #1 from woocommerce/master
...
Sync with WC
2018-11-02 17:02:30 +01:00
Jamsheer
95f639ad92
Update abstract-wc-data.php
2018-11-02 20:43:58 +05:30
Claudiu Lodromanean
00d254ac18
Merge pull request #21715 from angelleye/21714
...
Sets signature field type to password for security, resolves #21714
2018-11-02 08:09:56 -07:00
Claudiu Lodromanean
4aad055e62
Merge pull request #21696 from siananda/fix-21652
...
Prevent deleting default product category via REST API
2018-11-02 08:09:21 -07:00
Gerhard
2aa39507f7
Do not include products who's parents are not in publish status to be part of the get_on_sale_products results
2018-11-01 12:01:59 +02:00
angelleye
f995c2e070
Changes field type to password for live Signature field, resolves #21714
2018-10-31 12:32:40 -05:00
Claudiu Lodromanean
696e22f013
Merge pull request #21763 from woocommerce/fix/checkout-field-priority
...
Checkout fields priority refactor
2018-10-31 09:11:47 -07:00
nishitlangaliya
4acf8b80cd
fix: Manually adding fee on order generate html code
2018-10-31 21:32:31 +05:30
Claudiu Lodromanean
f973d0bed2
Merge pull request #21745 from woocommerce/fix/21697
...
Make easy to register new REST API versions into webhooks
2018-10-31 08:51:24 -07:00
Claudiu Lodromanean
73c8c99607
Merge pull request #21740 from woocommerce/revert/17895
...
Revert PR #17895
2018-10-31 08:50:51 -07:00
Claudiu Lodromanean
175991b5db
Merge pull request #21690 from woocommerce/fix/21684
...
Do not include strong tags as part of translation string on subscriptions disconnect message
2018-10-31 08:49:42 -07:00
Lee Willis
b826a80e93
Allow plugins to filter located template location before failing
2018-10-31 09:48:29 +00:00
Gerhard
c356f3d053
Sort checkout fields using PHP and not JS on initial page load as it causes issues as per #20640
...
Co-authored-by pierrebuet
2018-10-31 08:14:50 +02:00
Gerhard
7d060949ad
Convert wc_product_attribute_uasort_comparison to use wc_uasort_comparison
2018-10-31 07:41:01 +02:00
Gerhard
f844582976
Convert wc_shipping_zone_method_order_uasort_comparison to use wc_uasort_comparison
2018-10-31 07:40:08 +02:00
Gerhard
21ad281850
Add new wc_uasort_comparison function
2018-10-31 07:38:38 +02:00
Claudiu Lodromanean
59d60debb7
Merge pull request #21757 from woocommerce/fix/21730
...
Use array instead of string to define class for address line 2 input on checkout
2018-10-30 11:35:49 -07:00
Claudiu Lodromanean
b282ea9e89
Merge pull request #21749 from woocommerce/fix/21746
...
Fix get_cart_from_session infinite loop
2018-10-30 11:04:28 -07:00
Rodrigo Primo
bdb8f26d44
Use array instead of string to define class for address line 2 input on checkout
...
Doing this to be consistent with the other instances where a class is added to one of the checkout fields and thus make it easier for third-parties to add classes to checkout fields.
2018-10-30 14:59:08 -03:00
Claudiu Lodromanean
aa8caacf9c
Merge pull request #21675 from woocommerce/fix/21660
...
Removed non-existing WC_Product_Simple->set_date_created_gmt method
2018-10-30 10:47:02 -07:00
nishitlangaliya
e7b9056c58
fix: global table included along with multisite tables
2018-10-30 20:50:09 +05:30
Gerhard
560a49a3b2
Use a cleaner approach to prevent loading cart from session to call itself.
2018-10-30 11:58:39 +02:00
Gerhard
b808c70c44
Do not populate cart from session when ordering again and using the get_cart in a hook, the order again functionality already loads the cart from session, which get_cart does as well causing infinite loops.
2018-10-30 11:52:00 +02:00
Md. Saiful Islam
285151843f
compare with $request['id'] instead of $term
2018-10-30 11:36:16 +06:00
Claudiu Lodromanean
83c71f053b
Merge pull request #21703 from woocommerce/fix/21702
...
Update product block editor hook for WP 5.0
2018-10-29 16:12:51 -07:00
Claudio Sanches
f765b47cbf
Make easy to register new REST API versions into webhooks
...
Closes #21697
2018-10-29 19:31:47 -03:00
Claudiu Lodromanean
94ab419988
Merge pull request #21744 from woocommerce/tweak/add-get-cart-contents-filter
...
Introduce a new filter for 'get_cart_contents'
2018-10-29 13:29:05 -07:00
Boro Sitnikovski
8c6226e7bd
Introduce a new filter for 'get_cart_contents'
2018-10-29 21:08:22 +01:00
Rodrigo Primo
fce22a705f
Reapply change made in c765ce644d
...
Reverting commit 61c7abc
in commit ece9f02776
, overrode a unrelated change made to the same code in another PR by commit c765ce644d
. This commit simply reapplies this change.
2018-10-29 16:34:48 -03:00
Claudiu Lodromanean
3e30682b41
Merge pull request #21704 from woocommerce/fix/reduce-strings
...
Merged similar strings to reduce number of translateable strings
2018-10-29 12:04:08 -07:00
Claudiu Lodromanean
1dd4ba0af6
Merge pull request #21729 from woocommerce/update/21627
...
Make PDT validation use the same rounding as the IPN validation.
2018-10-29 11:44:53 -07:00
Claudiu Lodromanean
2829c5ad13
Merge pull request #21658 from woocommerce/fix/21653
...
Revert show shipping behavior change
2018-10-29 11:20:15 -07:00
Claudiu Lodromanean
5222309eba
Merge pull request #21633 from AlexeyKhmyrov/issue_21406
...
Use html entity for times (x) sign when outputting dimensions.
2018-10-29 11:19:49 -07:00
Rodrigo Primo
55fcd4c210
Preserve changes in includes/class-wc-background-updater.php
2018-10-29 13:14:05 -03:00
Rodrigo Primo
ece9f02776
Revert "First pass at using post_author instead of the post meta '_customer_user'"
...
This reverts commit 61c7abce4f
.
2018-10-29 11:48:44 -03:00
Rodrigo Primo
be4132e228
Revert "Set post_author to 0 for refund orders"
...
This reverts commit ad4304450d
.
2018-10-29 11:47:00 -03:00
Rodrigo Primo
ff7e307b6b
Revert "Make sure post_author is used only after WC 3.3.0 DB upgrade routine is executed"
...
This reverts commit 997a6fa40d
.
2018-10-29 11:46:33 -03:00
Rodrigo Primo
7db65aea2c
Revert "Use post_author field instead of post meta in orders admin page"
...
This reverts commit 6ecc3bc442
.
2018-10-29 11:46:02 -03:00
Rodrigo Primo
487ac201c0
Revert "Bump WC version to 3.4.0"
...
This reverts commit 7f43c39f2f
.
2018-10-29 11:44:32 -03:00
Rodrigo Primo
8d80d1417c
Revert "Add filter to list of post_types used to build the query to copy _customer_user to post_author"
...
This reverts commit 1f39f7d633
.
2018-10-29 11:42:51 -03:00
Rodrigo Primo
1051b3fbeb
Revert "Reposition wc_update_340_order_customer_id() function"
...
This reverts commit 35998e56cb
.
2018-10-29 11:42:25 -03:00
Rodrigo Primo
911df7806f
Revert "Migrate _customer_user to post_author in batches"
...
This reverts commit 4123cc6f7d
.
2018-10-29 11:37:54 -03:00
Rodrigo Primo
1d9ab63134
Revert "Punt to WC version 3.5.0"
...
This reverts commit ccf10f6ab2
.
2018-10-29 11:37:24 -03:00
Rodrigo Primo
3374ec7a74
Revert "Migrate data to post_author in a single go when using WP-CLI"
...
This reverts commit e02f3fbec4
.
2018-10-29 11:25:55 -03:00
Gerhard Potgieter
dba5469efa
update comment for PHPCS passes
...
Co-Authored-By: siananda <anandacsebd@gmail.com>
2018-10-29 20:21:14 +06:00
Rodrigo Primo
ee6e0a345e
Revert "Monitor only memory limit while running the data migration"
...
This reverts commit 923eeb2e43
.
2018-10-29 11:19:52 -03:00
Rodrigo Primo
ad31742ba1
Revert "Cache query to get the list of orders placed by the user ID 1"
...
This reverts commit 697421a9fa
.
2018-10-29 11:17:39 -03:00
Rodrigo Primo
a2c18145fc
Revert "Set post_author to 0 on all orders that belong to a deleted customer"
...
This reverts commit f725dc17af
.
2018-10-29 11:16:07 -03:00
Rodrigo Primo
f109008e0d
Revert "Update wc_customer_bought_product() and customers report to use post_author instead of _customer_user"
...
This reverts commit b97f2749d6
.
2018-10-29 11:15:22 -03:00
Rodrigo Primo
86650d9fb8
Revert "Update WC API v1 and v2 to use post_author instead of _customer_user"
...
This reverts commit fdfe95b07e
.
2018-10-29 11:14:24 -03:00
Ron Rennick
427d7df7fb
Introduce WC_Admin_Notices::is_ssl(), add SSL check to dashboard SSL notice
2018-10-29 11:10:09 -03:00
Rodrigo Primo
37c796487d
Revert "Update WC_Customer_Data_Store to use post_author instead of _customer_user"
...
This reverts commit 482e844f16
.
2018-10-29 11:09:13 -03:00
Rodrigo Primo
e47ebfaafb
Revert "Update WC_Order_Data_Store_CPT::get_wp_query_args() to use post_author instead of _customer_user"
...
This reverts commit 8db3236889
.
2018-10-29 11:08:53 -03:00
Rodrigo Primo
4151c9e5cb
Revert "Fix some code untitentional code changes added during the last merge from master"
...
This reverts commit 7f70c6372c
.
2018-10-29 11:07:53 -03:00
Rodrigo Primo
7c50892089
Revert "Pass user_id via $wpdb->prepare()"
...
This reverts commit 77add46705
.
2018-10-29 11:07:20 -03:00
Rodrigo Primo
61045ecb6f
Revert "Fix indentation"
...
This reverts commit 397e40f165
.
2018-10-29 11:07:05 -03:00
Rodrigo Primo
0258f43589
Revert "Add @return for wc_update_350_order_customer_id() docblock"
...
This reverts commit 5c5cddf26a
.
2018-10-29 11:06:15 -03:00
Gerhard
aba734f033
Make PDT validation use the same rounding as the IPN validation.
2018-10-29 11:50:47 +02:00
Kim Helge Frimanslund
fece37f814
Prevent extract from polluting hook arguments
2018-10-28 15:36:13 +01:00
Kanishk
2c642f3880
Cleaned cache right after filters are added
2018-10-28 16:55:07 +05:30
Karolína Vyskočilová
6687633c92
fix PHP 7.2 travis build
2018-10-28 11:36:55 +01:00
Karolína Vyskočilová
1dec0264bc
custom settings on shipping section ( #13463 , #13461 )
2018-10-27 23:53:43 +02:00
nishitlangaliya
e275bf2b1d
fix: Various 'Table does not exist' in WooCommerce status
2018-10-27 11:20:21 -08:00
angelleye
7ec6f3f67b
Sets signature field type to password for security, resolves #21714
2018-10-27 06:21:56 -05:00
Claudio Sanches
ccb3f3d82c
Normalize string in terms controller
2018-10-26 20:12:09 -03:00
Claudio Sanches
2be69a90a6
Reduce number of duplicated strings
2018-10-26 20:08:24 -03:00
Claudio Sanches
47a6c32d5c
Remove duplicated string in reviews endpoint
2018-10-26 19:31:03 -03:00
Claudio Sanches
3aa9b60b61
Merged similar strings to reduce number of translateable strings
2018-10-26 18:16:14 -03:00
claudiulodro
d59f165e31
Update block editor hook to new one
2018-10-26 13:48:47 -07:00
Md. Saiful Islam
50d33a5793
Fix for issue #21652
...
Prevent deleting the default product category. Added additional checking is the category is the default category or not.
2018-10-26 21:05:52 +06:00
Gerhard
86c15f24c1
Dont include the html tags in the translated string.
2018-10-26 13:33:40 +02:00
Gerhard
5285ea0dcc
Allow the strong tags to be used.
2018-10-26 13:29:56 +02:00
Gerhard
1af659e73b
comment_type should be review for the latest reviews dashboard widget.
2018-10-26 13:16:16 +02:00
Sławek Amielucha
29344a5ffd
Fixes typos in class comments.
2018-10-25 22:38:07 +02:00
Claudiu Lodromanean
d1c90c5972
Merge pull request #21647 from am777/master
...
Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php
2018-10-25 12:12:58 -07:00
Claudiu Lodromanean
e343f4def7
Merge pull request #21645 from woocommerce/remove/live-rates-mention-setup-wizard
...
Setup wizard: remove mention of live shipping rates from “activate” step
2018-10-25 11:57:14 -07:00
Claudiu Lodromanean
f311ad0d12
Merge pull request #21608 from woocommerce/use-crud-instead-of-has-post-thumbnail
...
Use $product->get_image_id() instead of has_post_thumbnail()
2018-10-25 11:51:11 -07:00
Claudio Sanches
53fa49b13a
Removed non-existing WC_Product_Simple->set_date_created_gmt method
...
Closes #21660
2018-10-25 13:12:40 -03:00
Jeff Stieler
b9b9f191e9
Setup wizard: store shipping label opt-in in options table, use for “activate” step feature list.
2018-10-25 11:43:13 -04:00
Kanishk
9bd4a8957f
Purged plugin and theme cache so that the helper can detect locally installed plugins and themes
2018-10-25 15:27:04 +05:30
claudiulodro
874ee8895d
Revert show shipping behavior change
2018-10-24 13:09:32 -07:00
claudiulodro
255877211a
Dont default to gallery thumbnail size if flexslider disabled
2018-10-24 11:07:43 -07:00
amit.chauhan
8ea696f57a
Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php and removed comment
2018-10-24 19:19:16 +05:30
Emran Ahmed
5bceee62ad
Add extra filter param
...
Add `$attribute` to get more info about custom attribute types
2018-10-24 19:32:27 +06:00
amit.chauhan
b753548df3
Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php
2018-10-24 18:32:59 +05:30
Jeff Stieler
950f0c4688
Setup wizard: remove mention of live shipping rates from “activate” step.
2018-10-24 08:57:09 -04:00
jamsheerkrd
bb5df05920
Update abstract-wc-data.php
...
https://github.com/woocommerce/woocommerce/issues/21640
2018-10-24 14:05:49 +05:30
Keith Light
f9cbcbece6
Amend `absint` to `esc_html` to allow for negative numbers in menu order
2018-10-23 20:51:14 +01:00
Reuven Karasik
a9afc72991
Updated html-variation-admin.php to comply with CS
...
Based on @ikraav 's proposals
2018-10-23 15:36:13 +03:00
Claudiu Lodromanean
bdf5c02f48
Merge pull request #21619 from woocommerce/fix/21571
...
Tweaks to unsupported theme handling and hidden preview button handling
2018-10-22 09:41:45 -07:00
Claudiu Lodromanean
6ebdffd615
Merge pull request #21617 from itowhid06/master
...
[REST API] pass missing $filter as parameter in legacy get_order_refund endpoints
2018-10-22 09:40:26 -07:00
AlexeyKhmyrov
179d0fdc52
Issue #21406 Dimensions in RTL Languages are displayed incorrectly on single product pages.
...
Using '×' instead of 'x' in string '10 x 20 x 30 cm'
2018-10-22 11:29:07 -05:00
AlexeyKhmyrov
a58e907994
Fixed coding standards
2018-10-22 11:27:01 -05:00
Rodrigo Primo
8f04e09f26
Fix PHPCS violations automatically using phpcbf
2018-10-22 11:22:22 -03:00
Claudiu Lodromanean
9351d0c937
Merge pull request #21601 from woocommerce/fix/21534-2
...
Change wp_woocommerce_sessions before dbDelta() is called
2018-10-19 12:00:53 -07:00
Claudiu Lodromanean
14ea40cae0
Merge pull request #21614 from menakas/issue_21511
...
Trim the import file headers while reading
2018-10-19 11:16:28 -07:00
claudiulodro
b49a9a5809
Tweaks to unsupported theme handling and hidden preview button handling
2018-10-19 10:49:58 -07:00
Towhidul Islam
b68cef2062
[REST API] pass missing $filter as parameter in get_order_refund
2018-10-19 20:41:20 +06:00
Menaka S
566c57cc45
Trim the import file headers while reading
2018-10-19 16:43:52 +05:30
Claudio Sanches
bd37853923
Improved review and reviewer_email
2018-10-18 18:53:16 -03:00
Claudio Sanches
f3fdcd2ec0
Fixed order or collection params
2018-10-18 18:17:15 -03:00
Claudio Sanches
17a80c863e
[REST API] Fixed product reviews schema and content
2018-10-18 18:13:21 -03:00
Claudio Sanches
d987fb95b9
[REST API] Register data endpoints
2018-10-18 16:04:54 -03:00
Rodrigo Primo
12af00e38f
Merge pull request #21605 from woocommerce/fix/21578
...
Fix: WC_Product::get_image() should use $attr parameter
2018-10-18 14:34:02 -03:00
Claudiu Lodromanean
c994956f03
Merge pull request #21573 from woocommerce/fix/21548
...
Simplified path check for CSV importer to cause less issues
2018-10-18 07:56:34 -07:00
Rodrigo Primo
9b094fc74d
Use $product->get_image_id() instead of has_post_thumbnail()
...
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032
and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Rodrigo Primo
6ed2ebb3ba
Fix: WC_Product::get_image() should use $attr parameter
...
This commit fixes a issue that was introduced when WC_Product::get_image() was refactored in 64b589f032
that was making this method ignore what was passed in the $attr parameter.
2018-10-17 19:40:57 -03:00
Claudiu Lodromanean
59a863bc70
Merge pull request #21591 from JeroenSormani/master
...
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-17 08:27:04 -07:00
Claudiu Lodromanean
8c6b7032c6
Merge pull request #21596 from woocommerce/fix/rest-api-v3-producs-schema
...
[REST API] Fixed schema stock_status on products endpoints
2018-10-17 08:25:12 -07:00
Claudiu Lodromanean
5ca9600a23
Merge pull request #21595 from woocommerce/fix/rest-api-v3-trashed-orders
...
[REST API] Ability to query orders from trash bin
2018-10-17 08:24:06 -07:00
Claudiu Lodromanean
6f32369144
Merge pull request #21594 from woocommerce/fix/rest-api-v3-order-refunds-schema
...
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-17 08:11:16 -07:00
Rodrigo Primo
41d2e1cafd
Change wp_woocommerce_sessions before dbDelta() is called
...
On PR #21245 , I added a db update routine to change wp_woocommerce_sessions primary key from session_key char(32) to session_id bigint auto_increment as dbDelta() is unable to handle primary key changes (see https://core.trac.wordpress.org/ticket/40357 ). But I didn't realize that dbDelta() was actually trying to add a new primary key to the table without droping the old key first and this was generating the following error:
```
WordPress database error Multiple primary key defined for query ALTER TABLE wp_woocommerce_sessions ADD PRIMARY KEY (`session_id`)
```
To prevent this error from happening, this commit moves the query that changes the primary key from db update routine to WC_Install::create_tables() so that it runs before dbDelta() is called.
2018-10-17 12:11:01 -03:00
Rodrigo Primo
0c77ea584b
Revert "Do not try and create primary key using upgrade routine, dbdelta does that automatically. Just drop the key if it exists and add a new unique key."
...
This reverts commit d3e59b770b
.
2018-10-17 11:20:39 -03:00
Rodrigo Primo
35bd8ba05d
Revert "Do check on new key field instead and only run alter when not found."
...
This reverts commit a41df43cb0
.
2018-10-17 11:20:27 -03:00
Steve Grunwell
550b309901
Merge branch 'master' into feature/sanitize-order-id-tests
2018-10-17 02:21:04 +00:00
Claudio Sanches
2bcd4598f8
Fixed coding standards
2018-10-16 21:15:03 -03:00
Claudio Sanches
a9b36a4e23
[REST API] Fixed schema stock_status on products endpoints
2018-10-16 21:12:49 -03:00
Claudio Sanches
c6daf8287d
[REST API] Ability to query orders from trash bin
2018-10-16 20:19:34 -03:00
Claudio Sanches
98c8bb3eda
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-16 19:20:53 -03:00
Claudio Sanches
0f1f91f90a
[REST API] Fixed duplicated entry in orders notes schema
2018-10-16 19:07:58 -03:00
Claudiu Lodromanean
8e47d2afd5
Merge pull request #21575 from JoryHogeveen/patch-1
...
Validate multisite super admins before filtering editable roles & mapping capabilities
2018-10-16 11:23:42 -07:00
Claudiu Lodromanean
84ec31d3cc
Merge pull request #21588 from woocommerce/fix/21587
...
[REST API] Product downloads - Check if file ID is not empty and exists
2018-10-16 10:09:52 -07:00
JeroenSormani
7b4075f11a
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-16 18:53:31 +02:00
Claudio Sanches
63390c181d
[REST API] Fixed schema for product's downloads
...
Download ID are generated with wp_generate_uuid4() for while now.
Also we allow users to manipulate it.
2018-10-16 13:19:41 -03:00
Claudio Sanches
00c1a9016a
Check if file ID is not empty and exists
...
Closes #21587
2018-10-16 13:01:51 -03:00
Jory Hogeveen
481903d915
No need to continue parsing for shop manager if target user is an administrator
2018-10-16 14:11:36 +02:00
Khan M Rashedun-Naby
439bd54ce5
The variable should be 0 rather than empty string
2018-10-16 14:23:43 +06:00
Khan M Rashedun-Naby
7940694ce4
Removed Unnecessary Variable.
2018-10-16 13:25:56 +06:00
Kathy Darling
61f4f4e298
add $product object to woocommerce_quantity_input_classes
2018-10-15 17:24:47 -05:00
Jory Hogeveen
991ae6e7f2
Check super admin status before modifying editable roles
2018-10-15 23:53:29 +02:00
Jory Hogeveen
00e942d0b7
Check super admin status before mapping caps
2018-10-15 23:52:47 +02:00
claudiulodro
ccdf6d0253
Simplified path check for CSV importer to cause less issues
2018-10-15 13:50:34 -07:00
Claudiu Lodromanean
df55670bf0
Merge pull request #21503 from woocommerce/fix/21497
...
Add support for sanitizing arrays used when saving order item data
2018-10-15 11:37:02 -07:00
Claudiu Lodromanean
f2d5b73617
Merge pull request #21569 from JoryHogeveen/patch-1
...
Stop using `current_user_can` for validation roles.
2018-10-15 10:22:47 -07:00
Claudiu Lodromanean
76ae5382a8
Merge pull request #21570 from woocommerce/fix/21542
...
Fix: Posted variation attribute values not recognized if "+" present
2018-10-15 10:02:46 -07:00
Claudiu Lodromanean
fe2b969534
Merge pull request #21565 from Prospress/issue_21515
...
Issue 21515
2018-10-15 09:51:56 -07:00
Claudiu Lodromanean
c3bf253a88
Merge pull request #21561 from woocommerce/fix/21534
...
Improve session table update routine
2018-10-15 09:47:41 -07:00
Claudiu Lodromanean
a70618711b
Merge pull request #21560 from woocommerce/fix/21552
...
Products shortcode allow numeric term slug matching
2018-10-15 09:42:16 -07:00
Claudiu Lodromanean
e4796cfa75
Merge pull request #21557 from jdeeburke/fix-memory-limit-byte-values
...
Fix some memory limit values not correctly converting to bytes
2018-10-15 09:17:27 -07:00
Claudiu Lodromanean
d230b5e2e5
Merge pull request #21550 from woocommerce/update/geo-get-upload-dir
...
Use wp_get_upload_dir for geolite DB path
2018-10-15 09:15:46 -07:00
Jory Hogeveen
54036f8f38
Codestyle
2018-10-15 17:38:13 +02:00
Rodrigo Primo
f53b696ddf
Remove unnecessary call to urldecode()
...
This commit removes an unnecessary call to urldecode() as the superglobal $_REQUEST is already decoded by PHP (see http://php.net/urldecode ). Calling urldecode() on a previously decoded value was causing the issue described in #21542 .
2018-10-15 12:27:12 -03:00
Jory Hogeveen
e5f934d0a9
Codestyle
2018-10-15 17:21:04 +02:00
Jory Hogeveen
b85c142d97
Stop checking shop_manager role if the user also is an administrator
2018-10-15 17:15:53 +02:00
Jory Hogeveen
dfbe5174ef
Stop using `current_user_can` for validation roles.
...
Fixes #21568
2018-10-15 16:48:16 +02:00
Ron Rennick
1ea2d79dd6
Merge branch 'master' into issue_21515
2018-10-15 11:00:14 -03:00
Alex Kirk
3e7cf4be21
Fix typo revivew
2018-10-15 15:54:19 +02:00
Terence O'Donoghue
f7c9b7d62c
Update abstract-wc-rest-crud-controller.php
2018-10-15 14:20:19 +01:00
Gerhard
a41df43cb0
Do check on new key field instead and only run alter when not found.
2018-10-15 14:13:21 +02:00
Gerhard
d3e59b770b
Do not try and create primary key using upgrade routine, dbdelta does that automatically. Just drop the key if it exists and add a new unique key.
2018-10-15 14:07:48 +02:00
Gerhard
aa6a6f2b10
Refine numeric slug checking when using the products shortcode for attributes and categories.
2018-10-15 13:22:12 +02:00
Gerhard
48de1f6b97
Accommodate numeric slugs in the product shortcode attribute and category fields.
2018-10-15 12:49:56 +02:00
Jared Burke
4557108805
Fix some memory limit values not correctly converting to bytes
2018-10-15 01:26:45 -05:00
Kathy Darling
5c722a32e8
Add support for custom classes on quantity input with new woocommerce_quantity_input_classes filter
2018-10-13 22:22:17 -05:00
Mohammad Jangda
0590522180
Use wp_get_upload_dir for geolite DB path
...
By default, `wp_upload_dir` will "will create a subfolder in your Uploads folder corresponding to the queried month (or current month, if no $time argument is provided" (https://developer.wordpress.org/reference/functions/wp_upload_dir/ ).
This is not necessary in our case since all we want is the `basedir` value.
We're switching to `wp_get_upload_dir`, which is a wrapper for `wp_upload_dir` that turns of the folder create behaviour.
2018-10-13 01:27:45 -04:00
Ron Rennick
ec44a36913
only include erasure tools link in erasure desc_tip when user has manage_privacy_options, escape the desc_tip
2018-10-12 21:49:05 -03:00
Claudiu Lodromanean
74693979db
Merge pull request #21531 from wayheming/master
...
Fix cart notice position
2018-10-12 08:57:54 -07:00
Claudiu Lodromanean
e0d31107ea
Merge pull request #21523 from woocommerce/fix/21509
...
Fix DB log handler cleanup
2018-10-12 08:22:22 -07:00
Jesper V Nielsen
8799de8477
fix-missing-colon
2018-10-12 09:43:43 +02:00
Jesper V Nielsen
1e8692aeb1
allow-filtering-on-wiget-get_current_page_url
...
Allow for filtering on get_current_page_url() in widgets, to make it possible to extend the parameteres, and keep them.
If building some functionality, where wee work with the parameters in the url, they will be removed, when using the links produced by wc_widget - for example the layered nav, or the price range.
With the filter, we kan add out custom parameter, to the url generated by these widgets.
2018-10-12 08:53:46 +02:00
Claudio Sanches
2f7f514f14
Fixed coding standards
2018-10-11 13:31:37 -07:00
claudiulodro
d1e9e85cbb
Extra safety
2018-10-11 13:31:37 -07:00
claudiulodro
c9c12c2518
Initial implementation
2018-10-11 13:31:37 -07:00
claudiulodro
d5ac2e4dee
Backwards compatibility handling
2018-10-11 13:31:34 -07:00
Claudio Sanches
09ed5fd152
Fixed coding standards
2018-10-11 13:31:34 -07:00
claudiulodro
bd7d73a788
Extra checking to make sure log file is in log file directory
2018-10-11 13:31:34 -07:00
claudiulodro
87b81c94ae
Better way of doing it
2018-10-11 13:31:34 -07:00
claudiulodro
3bbf05d025
Prevent deleting things outside the log dir
2018-10-11 13:31:34 -07:00
claudiulodro
5f2b915f18
Add filter for ease of extensions
2018-10-11 13:31:30 -07:00
claudiulodro
7ea4e7b1b5
Prevent role changing
2018-10-11 13:31:30 -07:00
claudiulodro
d6144a769e
Restrict shop managers to editing customers
2018-10-11 13:31:30 -07:00
claudiulodro
26b188569b
Add filter for disabling file path check
2018-10-11 13:31:27 -07:00
claudiulodro
acf8757636
Add path checking and fix bug
2018-10-11 13:31:27 -07:00
claudiulodro
7b19673dea
Extra file type checking
2018-10-11 13:31:27 -07:00
claudiulodro
b6f22d9950
Fix typo
2018-10-11 13:31:18 -07:00
claudiulodro
afd24dea4b
Add http(s) to // download urls
2018-10-11 13:31:18 -07:00
claudiulodro
e53e21d65f
Better variable name
2018-10-11 13:31:18 -07:00
claudiulodro
441fe32f0b
Add filetype checking for all files located on the server
2018-10-11 13:31:18 -07:00
claudiulodro
989230f2b9
Refactor for increased safety
2018-10-11 13:31:18 -07:00
claudiulodro
88d506bac0
Dont do abspath file_exists check on urls that start with // since those are remote urls and not local urls
2018-10-11 13:31:18 -07:00
unknown
12279989bd
Fix cart notice position
2018-10-11 15:47:35 +03:00
claudiulodro
7e17be74d9
Fix db log handler cleanup
2018-10-10 12:14:25 -07:00
AmanS
9d327ac52e
WC Refund class older name 'WC_Refund' somehow left over in the function docblock. Corrected to WC_Order_Refund.
2018-10-10 00:28:15 +05:30
Reuven Karasik
86c4c56d44
Fixed version and removed $variation_data array
...
Fixed version and removed $variation_data array (since it's deprecated) from filter `woocommerce_variation_header`
2018-10-06 12:21:40 +03:00
claudiulodro
91d2411aa9
Use wc_check_utf8 function
2018-10-05 15:58:50 -04:00
claudiulodro
dfad1306de
Revert sanitization function used for order item data
2018-10-05 15:46:49 -04:00
Frédéric Demarle
7c3ef6cc27
Fix missing punctuation mark a the end of the comments
2018-10-04 20:22:18 +02:00
Steve Grunwell
65cda44fe6
Add tests for wc_sanitize_order_id()
...
This commit adds four test cases (via a PHPUnit data provider) for the `wc_sanitize_order_id()` function.
While writing the tests, it was also discovered that the function was returning a *string*, not an integer as indicated by the DocBlock, so explicit type-casting was added.
2018-10-04 13:53:55 +00:00
Claudiu Lodromanean
96005a51c4
Merge pull request #21494 from woocommerce/fix/21484
...
Don't fire duplicate actions in shipping settings
2018-10-03 16:59:06 -04:00
Claudiu Lodromanean
a5509f1c75
Merge pull request #21493 from woocommerce/fix/21430
...
Add `address_1` to shipping packages info
2018-10-03 16:57:40 -04:00
JD
0871ad8627
Update class-wc-webhook.php
2018-10-03 21:38:53 +01:00
claudiulodro
1716538617
Prevent duplicate actions from firing in shipping settings
2018-10-03 15:43:11 -04:00
claudiulodro
84e5de5eef
Add address_1 to shipping packages info
2018-10-03 14:31:35 -04:00
JD
b0b2b34884
Avoid treating HTTP 301 and 302 Codes as Failures
...
As per:
https://github.com/woocommerce/woocommerce/issues/21490
Change the definition of a Webhook Delivery Failure to exclude HTTP/301 and HTTP/302 responses. This allows webhook handlers (such as Google Apps Script) to avoid breaching failure limits and disabling webhooks.
2018-10-03 16:40:49 +01:00
Claudiu Lodromanean
543c63072d
Merge pull request #21461 from dgwatkins/master
...
The orderby=ID argument needs to be uppercase.
2018-10-03 10:13:53 -04:00
Claudiu Lodromanean
71ca7c45ad
Merge pull request #21452 from andgrankin/patch-2
...
Update documentation
2018-10-03 10:11:11 -04:00
Claudiu Lodromanean
2368c4d4a8
Merge pull request #21448 from dyszczo/bugfix/logger-instance-warning
...
Fix for warning in wc_get_logger when woocommerce_logging_class retur…
2018-10-03 10:05:25 -04:00
Claudiu Lodromanean
ceccd62c91
Merge pull request #21456 from woocommerce/fix/21389
...
Add inline float style for email label to match order details styling
2018-09-28 08:26:33 -07:00
Claudiu Lodromanean
f1a7792454
Merge pull request #21403 from woocommerce/fix/21294
...
Fix attributes bugs
2018-09-28 08:24:03 -07:00
Frédéric Demarle
e20ce00101
Fix ajax responses not testable when calling wp_send_json_success in a try block
2018-09-28 13:42:51 +02:00
David Garcia Watkins
d4484f3a4b
The orderby=ID argument needs to be uppercase.
2018-09-27 19:51:10 +02:00
Claudiu Lodromanean
c8bab001a9
Merge pull request #21410 from rnaby/fix/21395
...
Fix for issue #21395
2018-09-27 10:46:23 -07:00
Claudiu Lodromanean
9f77ef8526
Merge pull request #21455 from woocommerce/fix/20912
...
Change query to save session data
2018-09-27 10:39:46 -07:00
Claudiu Lodromanean
8b7ccf84ec
Merge pull request #21447 from woocommerce/fix/21392
...
Allow saving 0 as stock value when using quick edit
2018-09-27 10:37:13 -07:00
Claudiu Lodromanean
f5d5cad65c
Merge pull request #21241 from woocommerce/fix/21226
...
Revise coupon logic and add tests.
2018-09-27 08:58:47 -07:00
Khan M Rashedun-Naby
f1f3eee195
discussion_r219948141 and discussion_r219949290 fix
2018-09-27 12:41:45 +06:00
Gerhard Potgieter
dd1d3b0c77
Make sure _stock is set and unslash value before using. Update PHPCS exclude rule to be more specific.
2018-09-27 08:02:12 +02:00
claudiulodro
4082222f7a
Add inline float style for email label to match order details styling
2018-09-26 11:13:29 -07:00
Rodrigo Primo
734a9370be
Change query to save session data
...
Use `INSERT ... ON DUPLICATE KEY UPDATE` instead of `REPLACE` in the query that saves session data. Doing this to prevent deadlocks in this table. For more information see https://github.com/woocommerce/woocommerce/issues/20912#issuecomment-420888726
2018-09-26 14:46:28 -03:00
Claudiu Lodromanean
b338c14faf
Merge pull request #21445 from woocommerce/fix/21428
...
Output notices on woocommerce_before_customer_login_form
2018-09-26 09:34:26 -07:00
andgrankin
526e3826e8
Update documentation
...
Update documentation for methods set_coupon_discount_totals and set_coupon_discount_tax_totals
2018-09-26 22:43:17 +07:00
Gerhard Potgieter
14aea98d49
Merge pull request #21305 from woocommerce/fix/product-review-type
...
Save comment_type for product reviews
2018-09-26 13:35:05 +02:00
Gerhard Potgieter
a365fb10e9
Merge pull request #21408 from woocommerce/fix/21269
...
Dont modify attributes orderby when ordering by name
2018-09-26 13:30:40 +02:00
Gerhard Potgieter
0d77d3a777
Merge pull request #21444 from woocommerce/fix/issue-21443
...
Remove 'order_again' query string to avoid multiple re-orders
2018-09-26 13:03:03 +02:00
dyszczo
7f5122d502
Fix for warning in wc_get_logger when woocommerce_logging_class returns valid logger instance
2018-09-26 12:56:59 +02:00
Gerhard Potgieter
9374e2e79a
PHPCS fixes
2018-09-26 12:43:04 +02:00
Gerhard Potgieter
0428ea4f1e
When quick edit saving stock, check for numeric value as empty returns true on 0 and you can set stock to 0.
2018-09-26 12:34:19 +02:00
Gerhard Potgieter
7a323c4a6d
Output notices on woocommerce_before_customer_login_form
2018-09-26 11:32:19 +02:00
Boro Sitnikovski
82f3d6f3fb
Remove 'order_again' query string to avoid multiple re-orders
2018-09-26 09:39:48 +02:00
Daniel Bitzer
2b57f95552
Add coupon object param to get coupon data filter
...
This makes it easier to manage virtual coupon objects created through the woocommerce_get_shop_coupon_data filter
2018-09-26 12:43:27 +09:30
Claudiu Lodromanean
6e8f995426
Merge pull request #21424 from thenbrent/update_action_scheduler
...
Update Action Scheduler to v2.1.0
2018-09-25 10:58:24 -07:00
Claudio Sanches
61f988db63
Merge branch 'master' into fix/product-review-type
2018-09-25 12:35:41 -03:00
Claudiu Lodromanean
b424213554
Merge pull request #21416 from pierrebuet/master
...
Show the right size of placeholder image on single product page
2018-09-24 13:03:20 -07:00
Claudiu Lodromanean
2008b8e2b2
Merge pull request #21384 from woocommerce/fix/rest-api-order-statuses
...
[REST API] Updated order statuses slugs
2018-09-24 11:28:56 -07:00
Claudiu Lodromanean
e597e16e33
Merge pull request #21346 from Spreeuw/patch-6
...
Fixes #21345
2018-09-24 11:28:01 -07:00
Brent Shepherd
6eddeaec50
PHPCS fixes
2018-09-24 11:43:46 +10:00
pierrebuet
db3270a390
Show the right size of placeholder image on single product page
...
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes. wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
Jeff Stieler
5fbbd38728
OBW: update to official ShipStation plugin slug.
2018-09-21 10:48:10 -06:00
Khan M Rashedun-Naby
f979b43b25
Fix for issue #21395
2018-09-21 14:36:04 +06:00
claudiulodro
fdef6b4c73
Dont modify attributes orderby when ordering by name
2018-09-20 12:32:06 -07:00
claudiulodro
d7afce5f4c
Update routine to set reviews comment type
2018-09-20 09:28:39 -07:00
claudiulodro
67d80c35d8
Update cache key to consistently work with all types of chars
2018-09-20 08:21:39 -07:00
XLPlugins
e283eff149
Added new filter to modify order status during orders using cheque as a gateway.
2018-09-20 19:07:23 +05:30
Brent Shepherd
0c27837b2b
Add cancel_all() to WC_Queue_Interface
...
And the WC_Action_Queue implementation of WC_Queue_Interface.
This avoids ambiguity between the behaviour of cancel(), which can
be confusing given it technically unschedules all actions for cron
or recurring actions, but only the next instance of a single action.
2018-09-20 15:42:24 +10:00
Brent Shepherd
32d3de3aa8
Use new as_ prefixed Action Scheduler functions
2018-09-20 15:39:56 +10:00
Brent Shepherd
e45824a8c3
Update Action Scheduler to v2.1.0
...
Merge commit '3c610aec4ad1ebef9de8df1f4dae0097fcbf8469'
2018-09-20 12:16:26 +10:00