Approach Cleaned

This commit is contained in:
Khan M Rashedun-Naby 2018-05-13 23:40:07 +06:00
parent 5258e00bad
commit 7d889b472a
1 changed files with 3 additions and 3 deletions

View File

@ -375,11 +375,11 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
$where_values[] = '%' . $wpdb->esc_like( wc_clean( wp_unslash( $_REQUEST['s'] ) ) ) . '%';
}
if ( ! empty( $where_conditions ) ) {
return $wpdb->prepare( 'WHERE 1 = 1 AND ' . implode( ' AND ', $where_conditions ), $where_values );
} else {
if ( empty( $where_conditions ) ) {
return '';
}
return $wpdb->prepare( 'WHERE 1 = 1 AND ' . implode( ' AND ', $where_conditions ), $where_values );
}
/**