Commit Graph

18015 Commits

Author SHA1 Message Date
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
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