Commit Graph

29487 Commits

Author SHA1 Message Date
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 7b3fb815c9 Bump template version 2019-01-16 11:56:32 +02:00
Gerhard 75e47a4cc1 PHPCS fixes 2019-01-16 11:56:07 +02:00
Gerhard beb35db6c3 Fix star rating on product loop, it should not output when reviews also also disabled since ratings form part of reviews. 2019-01-16 11:54: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 5dc977802c
Merge pull request #22418 from woocommerce/fix/22037
Remove mention of payment from processing emails
2019-01-14 16:49:09 +00:00
Mike Jolley fad3568e12
Merge pull request #22426 from JohnTendik/remove-unnecessary-variable-from-test-case
removed variable that was not being used in test case
2019-01-14 16:46:19 +00:00
Mike Jolley 283f3ba355
Merge pull request #22431 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.4.5
2019-01-14 16:45:39 +00:00
Renovate Bot 9b42f74cf1
Update dependency autoprefixer to v9.4.5 2019-01-12 17:18:40 +00:00
unknown 883ecc3ca4 removed variable that was not being used 2019-01-11 19:19:15 -05:00
Gerhard 2974154ae8 Update processing order email copy as per feedback https://github.com/woocommerce/woocommerce/pull/22418#discussion_r247105693 2019-01-11 15:04:06 +02: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
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
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
Mike Jolley f0772e6b2c Merge branch 'pr/21235' 2019-01-10 12:25:07 +00:00
Mike Jolley 8c0e0b62cd Add legacy class and version bump 2019-01-10 12:24:48 +00:00
Rodrigo Primo 5117a65638
Merge pull request #22116 from woocommerce/fix/refund-hash-reload/22115
Strip hash from URL that prevents reload on refunds
2019-01-09 18:20:37 -02:00
Claudiu Lodromanean e27ef52875
Merge pull request #20667 from woocommerce/fix/20658
Make product edit form aware publish was pressed
2019-01-09 12:17:38 -08:00
Rodrigo Primo b4db23a4fc Bump template version after change in #22078 2019-01-09 17:39:02 -02:00
Rodrigo Primo edd8f14e40 Merge branch 'master' of github.com:woocommerce/woocommerce 2019-01-09 17:38:32 -02:00
Rodrigo Primo 0b09bef386
Merge pull request #22078 from unfulvio/make-shipping-options-available-text-filterable
Make shipping may be available text filterable
2019-01-09 17:38:00 -02:00
Rodrigo Primo 7daf97d1f8 phpcs fixes
this indentation change is a bit odd but makes phpcs happy
2019-01-09 17:32:27 -02:00
Rodrigo Primo b115a7587f
Merge pull request #21966 from woocommerce/add/21955
Filter out buttons from edit order row click
2019-01-09 17:23:29 -02: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
Rodrigo Primo 8b129a89bf phpcs fixes 2019-01-09 16:33:38 -02: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
Mike Jolley 83543a9232 Handle publish and save post buttons by storing ID of button pressed 2019-01-09 16:31:53 +00:00
Mike Jolley 679af01f8d Merge branch 'fix/20658' of https://github.com/woocommerce/woocommerce into fix/20658 2019-01-09 16:11:14 +00:00
Mike Jolley 6dd984e0cf Merge branch 'master' into fix/20658 2019-01-09 16:09:19 +00: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 0620389e46
Merge pull request #22266 from woocommerce/e2e-update-db
Update e2e tests database to WP 5.0.1 and WC 3.5.2
2019-01-09 12:14:47 +00:00
Mike Jolley a07cadf510
Merge pull request #21958 from mahdiyazdani/patch-2
Updated conditional statements to Yoda style
2019-01-09 12:11:53 +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
renovate[bot] 29ff42468a Update dependency grunt-shell to v3 (#22387) 2019-01-09 11:32:09 +00:00
Mike Jolley 72b510edec
Update dependency grunt-contrib-uglify to v4 (#22385) 2019-01-09 11:31:42 +00:00
Bradley Davis 44bfd1127f Removed indent after <?php to be match other files (#22390) 2019-01-09 11:31:14 +00:00