Using post_status of 'any' causes a conflict with the WP Invoice Plugin by Usability Dynamics resulting in the Select Box for Variable Subscriptions - when the WooCommerce Variable Subscriptons Plugin is installed and activated - not functioning and returning an error to the user on the front end. Since it's filtering out the Trash status, and others, anyway when being displayed on the front end we found that setting the post_status to publish resolved the issue and doesn't appear to have adverse affects elsewhere.

This commit is contained in:
Spencer Hill 2014-12-19 13:21:15 -08:00
parent ac03edf6e9
commit d8c8d37fd6
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class WC_Product_Variable extends WC_Product {
'orderby' => 'menu_order', 'orderby' => 'menu_order',
'order' => 'ASC', 'order' => 'ASC',
'fields' => 'ids', 'fields' => 'ids',
'post_status' => 'any', 'post_status' => 'publish',
'numberposts' => -1 'numberposts' => -1
); );