Commit Graph

19229 Commits

Author SHA1 Message Date
tgglv c277696b65 Make WCCOM helper subs cache cleaning public
Relates: https://github.com/Automattic/woocommerce.com/issues/6535
2019-10-11 17:59:39 +05:00
Gerhard e22a024473 Cookies should only be set in wp-admin, avoid setting when doing ajax requests since that is seen as an admin request as well. 2019-10-10 08:29:10 +02:00
Gerhard badb135bd6 Add 404 check when creating add to cart url for single products. 2019-10-09 12:44:47 +02:00
Claudio Sanches af59ab4a2a Exit after redirect 2019-10-09 12:35:24 +02:00
xristos3490 4e2205e17d Fix file perms 2019-10-09 11:26:32 +03:00
xristos3490 d776c19dd4 Replace stripslashes with stripslashes_deep on non-scalar setting values 2019-10-09 11:25:41 +03:00
Gerhard Potgieter af01e9374d
Merge pull request #24759 from rafsuntaskin/patch-1
Added delimiter property with filter
2019-10-08 11:23:12 +02:00
Gerhard Potgieter 2d796f825e
Merge pull request #24760 from jorostoyanov/jorostoyanov-patch-1
Add woocommerce_after_order_refund_item_name hook
2019-10-08 11:21:51 +02:00
Rafsun Chowdhury 59c503b1c7
Update with suggested review changes 2019-10-05 19:47:16 +06:00
vedanshujain 20e1584654 Update `$version` to `3.8.0` because its used for checking DB Upgrades 2019-10-03 12:11:31 +05:30
vedanshujain cd2a63c293 Update version to 3.8-beta.1 2019-10-03 12:07:16 +05:30
Joro Stoyanov 5c55eea31c
Add woocommerce_after_order_refund_item_name hook 2019-10-03 08:53:10 +03:00
Rafsun Chowdhury b3d21cb8ae
Added delimiter property with filter
Added support for custom delimiter #24579
2019-10-03 08:43:04 +06:00
Timothy Jacobs b9bb4a7c6a
Use a separate first parameter for the WP_Error
This matches the pattern used elsewhere in WooCommerce and allows access to the original `WC_Product` object if an error is to be returned.
2019-10-02 15:01:09 -04:00
Vedanshu Jain f36580a77e
Merge pull request #24757 from woocommerce/fix/display-post-type-count
Fixed post type count only when avaliable in REST API
2019-10-03 00:27:26 +05:30
Vedanshu Jain cb12010627
Merge pull request #24295 from woocommerce/fix/24096
Remove %20 from fields in External Products form
2019-10-03 00:15:52 +05:30
Claudio Sanches 78452a3f0f Fixed post type count only when avaliable in REST API 2019-10-02 15:03:46 -03:00
Claudio Sanches 2453dc9fe1 Fixed check for the method 2019-10-02 14:36:05 -03:00
Claudio Sanches 4c023c5e8a Changed thank you page text to follow PayPal guidelines
Also fixed coding standards
2019-10-02 14:21:12 -03:00
Claudio Sanches 3c9b9ac6a0 Revert changes from PayPal 2019-10-02 14:20:13 -03:00
Claudio Sanches 20ee6c7aed Fixed coding standards 2019-10-02 14:18:03 -03:00
Claudio Sanches b655af2e3b Changed thank you page text to follow PayPal guidelines 2019-10-02 14:17:25 -03:00
Vedanshu Jain c671e89769
Merge pull request #24750 from woocommerce/fix/24667
Handle 0 attribute value for variations correctly.
2019-10-02 21:28:23 +05:30
Peter Fabian 3cbea2a902 Simplify 'any-check' to only include empty string. 2019-10-02 16:58:45 +02:00
Claudio Sanches 71d7ac5741 Removed duplicated include of WC_Admin_Importers 2019-10-02 11:35:27 -03:00
Claudio Sanches 830553accd Fixed coding standards 2019-10-02 11:21:19 -03:00
Peter Fabian 4cfe22eef9 Made the attribute value comparison strict. 2019-10-02 16:05:44 +02:00
Gerhard Potgieter c01a0916c3
Merge pull request #24559 from itzmekhokan/fix/24458
Fix backordered product missing backordered label on frontend
2019-10-02 15:28:26 +02:00
Vedanshu Jain f15353cce5
Merge pull request #24745 from woocommerce/fix/24489
Also consider refunded item quantity while increasing stock.
2019-10-02 18:39:03 +05:30
Peter Fabian 258e49a8de Allow attribute value 0 to work correctly with variations (especially add to cart and select variation). 2019-10-02 14:58:40 +02:00
Vedanshu Jain 98f8cf3c2c
Merge pull request #24741 from woocommerce/add-filter-to-get-european-union-countries
Add filter to the method WC_Countries::get_european_union_countries()
2019-10-02 18:26:01 +05:30
Vedanshu Jain 7081c64115
Merge pull request #24294 from woocommerce/fix/24106
Make WC_Product_Query capable to sort products by "include" order
2019-10-02 18:02:06 +05:30
Vedanshu Jain 743d04fa91
Merge pull request #24749 from nicomollet/patch-5
Coupon expiry date tooltip to help understand behaviour
2019-10-02 17:30:45 +05:30
Vedanshu Jain bea65d43dc
Merge pull request #24699 from sisou/patch-1
Correct comments in stock increase methods
2019-10-02 17:27:10 +05:30
vedanshujain 3c7e74f72d Return early when diff is 0.
Earlier we were also update  `_reduced_stock` meta everytime, but we don't need to when diff is 0 because this means that everything is already consistent.
2019-10-02 17:24:16 +05:30
Nico Mollet 8365365037
Removed space at the end of the line 2019-10-02 13:42:26 +02:00
Vedanshu Jain 26794c12f2
Merge pull request #24738 from woocommerce/feature/24595
Introduced "woocommerce_output_cart_shortcode_content" filter
2019-10-02 15:57:42 +05:30
Vedanshu Jain 9641963001
Merge pull request #24740 from woocommerce/feature/24654
Make WC_Abstract_Order::recalculate_coupons() public
2019-10-02 15:56:36 +05:30
Nico Mollet 5bcc35c24e
Coupon expiry date tooltip to help understand behaviour
Help understand if the date is included or excluded
2019-10-02 11:48:15 +02:00
Vedanshu Jain 7bb1a0babd
Merge pull request #24536 from nikhil-webkul/patch-3
Add back post type count to system status report
2019-10-02 14:47:48 +05:30
Vedanshu Jain 2188f9b788
Merge pull request #24341 from woocommerce/fix/24238
Check for max discount to be -ve to prevent overwriting fee.
2019-10-02 14:32:15 +05:30
vedanshujain d2d0bf8466 Also consider refunded item quantity while increasing stock.
When updating an order, we call `wc_maybe_adjust_line_item_product_stock` to see if any item stock needs adjusting. We were not considering if an item has been refunded, which was causing incorrect stock adjustments.
This fix also takes in to account that an order has been refunded partially or fully.

Fixes #24489
2019-10-02 13:42:19 +05:30
Gerhard Potgieter 52cd7370b3
Merge pull request #24722 from woocommerce/fix/wpml-homepage-compatibility
Geolocation home URL WPML compatibility
2019-10-02 09:31:09 +02:00
Gerhard Potgieter db539803bf
Merge pull request #24737 from woocommerce/fix/24594
Fixed description of failed order email
2019-10-02 08:43:29 +02:00
Vedanshu Jain 487b510953
Merge pull request #24690 from woocommerce/add/wccom-installer-requirements-check-rest-api-endpoint
Add WCCOM requirements check to /installer REST API endpoint
2019-10-02 09:30:28 +05:30
Rodrigo Primo 1457de1c14 Add filter to the method WC_Countries::get_european_union_countries()
This commit adds a filter called `woocommerce_european_union_countries`
to the method WC_Countries::get_european_union_countries(). This is to
let third party code to customize the list of countries returned by the
method.
2019-10-01 17:25:28 -03:00
Claudio Sanches 8c88cd9b6f Make WC_Abstract_Order::recalculate_coupons() public 2019-10-01 17:19:33 -03:00
Rommel Castro 4fabaed498
Implements WC_WCCOM_Site_Installer_Requirements_Check::met_requirements() validation on GET /install 2019-10-01 13:45:30 -06:00
Gerhard Potgieter 1b9a38f662
Merge pull request #24542 from woocommerce/feature/24541
Allow override payment token classes
2019-10-01 21:09:12 +02:00
Claudio Sanches acc57ec853 Introduced "woocommerce_output_cart_shortcode_content" filter 2019-10-01 14:28:31 -03:00
Claudio Sanches 3d73025fa4 Fixed description of failed order email 2019-10-01 13:55:45 -03:00
Claudio Sanches e85b405e97 Fixed method name 2019-10-01 12:30:29 -03:00
Gerhard 414d31d191 Bump PHP recommended version to 7.0 and WP recommended version to 5.0 2019-10-01 12:21:51 +02:00
Rommel Castro 6567271840
Update status error to 400 2019-09-30 18:31:23 -06:00
Rommel Castro 803f3e6cc6
Implements WC_WCCOM_Site_Installer_Requirements_Check::met_requirements() validation on POST /install 2019-09-30 15:20:11 -06:00
Rommel Castro 67091782f8
Includes WC_WCCOM_Site_Installer_Requirements_Check class 2019-09-30 15:15:11 -06:00
Rommel Castro 6e5210657b
Adds WC_WCCOM_Site_Installer_Requirements_Check class 2019-09-30 15:14:52 -06:00
Gerhard 6d09d0efcf Fix OWB sell in person vertical alignment 2019-09-30 19:31:50 +05:30
Gerhard Potgieter fdbdb5c73a
Merge pull request #24677 from woocommerce/fix/illegal-offset-bug
Small refactor in WC_Order methods to get formatted address
2019-09-30 15:00:34 +02:00
Gerhard 9e3cb22dff Fix WPCS for #24657 2019-09-30 14:51:51 +02:00
Miguel Pinto 1d5809e5b2 Update class-wc-frontend-scripts.php 2019-09-30 14:51:30 +02:00
Miguel Pinto f2e23add73 code standards for fix with wpml 2019-09-30 14:51:30 +02:00
Miguel Pinto c32b95579a Fix for compatibility with WPML
With WPML, query parameter lang is added on home_url which means that geolocalization.min.js will not find any href with that query parameter. We need to remove this parameter from the home_url, otherwise it will not match the regex for the query in the JS function.
2019-09-30 14:51:29 +02:00
Gerhard 35ff7e3149 Bump @since for woocommerce_order_get_formatted_shipping_address and woocommerce_order_get_formatted_billing_address filters 2019-09-30 14:42:06 +02:00
Gerhard Potgieter 7870717995
Merge pull request #24347 from juliquiron/fix/country-select-selectwoo
Added selectWoo as dependency of country-select.
2019-09-30 13:57:33 +02:00
Gerhard 6870d756d1 Merge branch 'avoid-unnecessary-session-saving' of git://github.com/AmazeCom/woocommerce into AmazeCom-avoid-unnecessary-session-saving 2019-09-30 13:54:58 +02:00
Vedanshu Jain 436ee5de3a
Merge pull request #24680 from woocommerce/update/tracking-opt-in
Update usage tracking UI, default to opted-out.
2019-09-30 09:14:56 +05:30
Gerhard Potgieter 6c000bfe39
Merge pull request #24526 from itzmekhokan/fix/24430
Fixed issue #24430
2019-09-27 14:00:43 +02:00
Gerhard Potgieter eecc0f9a60
Merge pull request #24545 from woocommerce/fix/24537
Fixed add to cart link for simple products on feed
2019-09-27 13:53:05 +02:00
Gerhard Potgieter 145b6f72db
Merge pull request #24652 from uok/patch-2
Prevent browser cache when using back/forward buttons on non-cached pages
2019-09-27 13:40:52 +02:00
Gerhard Potgieter a8fed61dcc
Merge pull request #24682 from mpjason/master
Update downloadable/virtual case in wc_update_product_lookup_tables_column( $column )
2019-09-27 13:26:20 +02:00
Sören Schwert c22fcfd98f
Correct comments in stock increase methods
Fixes some comments and a variable name in the stock increase methods.

There is however a logic problem remaining, I think, where the value taken for the per-item `_reduced_stock` meta value falls back to `true` when the meta key does not exists (line 266), however the key is deleted at the end of the loop (line 281), thus allowing the `wc_increase_stock_levels` methods to increase the stock again when re-run directly.
2019-09-27 11:28:46 +02:00
Rodrigo Primo 364661df4e
Merge pull request #24614 from yash-webkul/patch-3
Fixed escaping in class-wc-admin-dashboard.php
2019-09-26 13:41:34 -03:00
Justin Shreve 9dfdfbf532 Check the box if the user goes back to setup and previously checked it 2019-09-26 11:31:46 -04:00
Yash Kapoor 3ed83341fc
Fixed escaping in class-wc-admin-dashboard.php
Added that space which was removed in previous commit by mistake.
2019-09-26 10:12:34 +05:30
Rodrigo Primo 2f93d3a2f7
Merge pull request #24535 from woocommerce/fix/22939-2
Fixed incorrect docs URL for failed order emails
2019-09-25 20:42:24 -03:00
Rodrigo Primo 4550bb6661
Merge pull request #24544 from woocommerce/fix/checkout-permalink
Prefer wc_get_checkout_url() instead of wc_get_page_permalink( 'checkout' )
2019-09-25 20:38:38 -03:00
Rodrigo Primo 6f1b814b33
Merge pull request #24613 from yash-webkul/patch-1
Fixed escaping.
2019-09-25 20:29:00 -03:00
Rodrigo Primo ddad208df1
Merge pull request #24688 from aaronkirkham/master
Fix admin sub-menus becoming unaligned when scrolling #24671
2019-09-25 19:43:44 -03:00
Vedanshu Jain 2abd1e99f1
Merge pull request #24280 from woocommerce/feature/24273
Introduced woocommerce_sort_fees_callback filter
2019-09-26 02:04:59 +05:30
aaronlad 6bca35ddbe fix #24671 2019-09-25 18:28:32 +01:00
Rodrigo Primo e7c0c894b2
Merge pull request #24154 from ryangjchandler/master
Fix #24153 - Added filter to disable password change notification
2019-09-24 18:08:04 -03:00
Rodrigo Primo 272f99981e
Merge pull request #24158 from johncodeos/master
Hide Vietnam's state field
2019-09-24 18:07:11 -03:00
Rodrigo Primo 24c11182b6
Merge pull request #24159 from ceich/refine-held-order-qty
Tweak: only consider orders created via checkout to hold stock
2019-09-24 18:04:36 -03:00
Rodrigo Primo 964ec24a9b
Merge pull request #24203 from malviyaritesh/fix/24160
Parse attribute_id as int not string
2019-09-24 18:02:44 -03:00
Rodrigo Primo b033c110db
Merge pull request #24229 from rynaldos/woocommerce_update_product_stock_query-changes
Use $new_stock in woocommerce_update_product_stock_query
2019-09-24 18:01:10 -03:00
Rodrigo Primo b63ecca450
Merge pull request #24249 from miguelfspinto/patch-2
Avoid duplicated process for IPN and PDT payment
2019-09-24 17:59:56 -03:00
Rodrigo Primo 281cbf4119
Merge pull request #24399 from Jon007/patch-3
add $this param to woocommerce_email_additional_content_
2019-09-24 17:56:59 -03:00
Rodrigo Primo 44f1ad2fbc
Merge pull request #24412 from Tyratox/master
Add new import filter in addition to existing action
2019-09-24 17:55:57 -03:00
Rodrigo Primo ebb6126499
Merge pull request #24650 from Ayesh/pr-typo-wc-gateway
Fix a typo in WC Payment Gateway abstract '3rd party gateway size'
2019-09-24 17:53:06 -03:00
mpjason 519d2c3fc1
Update wc_update_product_lookup_tables_column()
Adds prepared statement to the 'downloadable' and 'virtual' cases of wc_update_product_lookup_tables_column(). Suggested fix for issue #24681.
2019-09-24 15:00:59 -04:00
Justin Shreve 0c3fc315c5 Update tracking opt-in UI. 2019-09-24 14:26:21 -04:00
Vedanshu Jain 641968d50f
Merge pull request #23991 from aslamshekh/issue-23913
Fix - 23913, Delete product query transients when removing terms via …
2019-09-24 21:47:55 +05:30
Claudio Sanches 52108c1577 Fixed "Illegal offset" error caused by #24146
Introduces new filters to better handle order's formatted addresses
2019-09-24 13:15:35 -03:00
Aslam Shekh 9f8d279b19
Update class-wc-post-data.php
Thanks for the feedback @vedanshujain. As per your suggestion, I have changed hooked to deleted_term_relationships. Please let me know if any.
2019-09-24 11:14:43 +05:30
Rodrigo Primo 1b699621be
Merge pull request #24639 from itowhid06/master
use `esc_html__` instead of  `esc_html`
2019-09-23 12:32:23 -03:00
Rodrigo Primo 7cb614b41d
Merge pull request #24630 from nikhil-webkul/patch-5
Update class-wc-meta-box-product-images.php
2019-09-23 12:30:43 -03:00
Rodrigo Primo 2b9f1fe020
Merge pull request #24601 from nikhil-webkul/patch-4
Update abstract-wc-legacy-order.php
2019-09-23 12:28:41 -03:00
Rodrigo Primo 5681cfe70c
Merge pull request #24618 from yash-webkul/patch-14
Added escaping.
2019-09-23 12:24:23 -03:00
Rodrigo Primo 01b86568aa
Merge pull request #24616 from yash-webkul/patch-13
Fixed escaping function.
2019-09-23 12:22:27 -03:00