Commit 4287e30
committed
Coding Standards: Remove unnecessary conditional in
This commit removes an unnecessary `empty()` check, where the `$class` variable is primed at the top of the `foreach` loop and will always be a non-empty array.
To maintain readability of the source of the `$class` attribute without the unnecessary `empty()` check, the resulting variable has been renamed to `$class_attr`, instead of reusing the array.
Follow-up to [8923], [15491].
Props justlevine.
See #52217.
git-svn-id: https://develop.svn.wordpress.org/trunk@60132 602fd350-edb4-49c9-b593-d223f7449a82WP_List_Table::print_column_headers().1 parent 3e3e00e commit 4287e30
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
1530 | 1531 | | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
| 1532 | + | |
1536 | 1533 | | |
1537 | 1534 | | |
1538 | 1535 | | |
| |||
0 commit comments