Handle no results

This commit is contained in:
Mike Jolley 2018-02-02 15:13:37 +00:00
parent 6047322c52
commit 59d38b5a85
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
if ( isset( $query_vars['s'] ) ) {
$data_store = WC_Data_Store::load( 'product' );
$ids = $data_store->search_products( wc_clean( $query_vars['s'] ), '', true );
$query_vars['post__in'] = $ids;
$query_vars['post__in'] = array_merge( $ids, array( 0 ) );
}
return $query_vars;