More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions

View File

@ -293,7 +293,7 @@ class Customer_List_Table extends Base_List_Table {
$filter_type = 'text';
$rule = 'is';
if ($item->date_query === true) {
if (true === $item->date_query) {
$filter_type = 'date';
$rule = 'is_after';
} elseif (in_array(strtolower((string) $item->name), ['smallint'], true)) {