Approach Cleaned
This commit is contained in:
parent
5258e00bad
commit
7d889b472a
|
@ -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'] ) ) ) . '%';
|
$where_values[] = '%' . $wpdb->esc_like( wc_clean( wp_unslash( $_REQUEST['s'] ) ) ) . '%';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty( $where_conditions ) ) {
|
if ( empty( $where_conditions ) ) {
|
||||||
return $wpdb->prepare( 'WHERE 1 = 1 AND ' . implode( ' AND ', $where_conditions ), $where_values );
|
|
||||||
} else {
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $wpdb->prepare( 'WHERE 1 = 1 AND ' . implode( ' AND ', $where_conditions ), $where_values );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue