Ron Rennick
4c7f61e123
phpcs except for ignore use of $_POST
2019-02-19 13:41:14 -04:00
Ron Rennick
a2abe8783e
check low_stock for empty string vs isset
2019-02-19 11:08:14 -04: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
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
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
Andrew Lazarus
aee5cf2bff
Added filter for product title classes within product loop
2019-02-12 13:37:02 +01: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
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
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