woocommerce/includes/abstracts
Tim Howe abea378245 Variation Displayed in Cross-Sell and Upsells with Parent's Post Status set to 'draft' and 'pending review' (#17423)
* Fix - #17413
Update the `json_search_products` function to use the
`wc_products_array_filter_visible` filter rather then the
`wc_products_array_filter_editable` filter

Added an additional if condition to the `is_visible` function to check
if the product had a parent and it's post status

* remove additional comment from code to keep it clean

* Reverted filter

* Updated the is_visable to check parent product post status using WooCommerce class methods

* Updated the `if empty` check to make it is compatible with older versions of php

* Removed the empty check infavor of just testing on the returned value
Updated the way we are retrieving the partent product object

* Moved the `$parent_product` variable assigment out of the if statement.
2017-11-01 12:52:58 +00:00
..
abstract-wc-data.php Break up logic so is callable is only checked on internal meta keys 2017-10-27 16:23:05 +01:00
abstract-wc-deprecated-hooks.php Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
abstract-wc-integration.php Settings api 2015-12-14 14:03:46 +00:00
abstract-wc-log-handler.php Add WC_Log_Handler_Interface 2017-01-24 14:10:05 +01:00
abstract-wc-object-query.php Migrate wc_get_orders 2017-05-12 11:45:01 -07:00
abstract-wc-order.php handle tax removal in order class 2017-10-31 13:37:57 +00:00
abstract-wc-payment-gateway.php Include add_payment_method in gateway abstract 2017-08-07 12:38:50 +01:00
abstract-wc-payment-token.php Deprecated $context on get_display_name. 2017-03-15 08:21:02 -07:00
abstract-wc-product.php Variation Displayed in Cross-Sell and Upsells with Parent's Post Status set to 'draft' and 'pending review' (#17423) 2017-11-01 12:52:58 +00:00
abstract-wc-rest-controller.php invalid return 2017-08-23 14:27:30 +01:00
abstract-wc-rest-crud-controller.php If sorting by date in the REST API, fallback to ID 2017-09-25 13:31:25 +01:00
abstract-wc-rest-posts-controller.php Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
abstract-wc-rest-shipping-zones-controller.php Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
abstract-wc-rest-terms-controller.php Fix error when invalid parent term 2017-10-03 17:59:58 -03:00
abstract-wc-session.php More abspath 2017-05-23 15:40:19 +01:00
abstract-wc-settings-api.php Fix missing return statement (#16148) 2017-07-20 18:01:14 +01:00
abstract-wc-shipping-method.php Pass WC_Shipping_Method instance to availability filters 2017-08-11 16:36:18 -04:00
abstract-wc-widget.php Fix missing return statement (#16148) 2017-07-20 18:01:14 +01:00