Commit 197f0a7
committed
Coding Standards: Move
While the rule to discourage using functions like `count()` in a loop condition is a recommendation/best practice rule from the `WordPress-Extra` ruleset and does not directly apply to WordPress core, this is intended as a minor readability and code clarity improvement.
Follow-up to [10090], [17556], [20609], [26144].
Props krunal265, johnbillion, audrasjb, dhruvang21, SergeyBiryukov.
Fixes #56499.
git-svn-id: https://develop.svn.wordpress.org/trunk@60643 602fd350-edb4-49c9-b593-d223f7449a82count() usage in wp_dashboard_recent_comments().1 parent dd2d7ef commit 197f0a7
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
1078 | | - | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1079 | 1081 | | |
1080 | 1082 | | |
1081 | 1083 | | |
| |||
1088 | 1090 | | |
1089 | 1091 | | |
1090 | 1092 | | |
1091 | | - | |
| 1093 | + | |
| 1094 | + | |
1092 | 1095 | | |
1093 | | - | |
| 1096 | + | |
1094 | 1097 | | |
1095 | 1098 | | |
1096 | 1099 | | |
1097 | 1100 | | |
1098 | 1101 | | |
1099 | 1102 | | |
1100 | | - | |
| 1103 | + | |
1101 | 1104 | | |
1102 | 1105 | | |
1103 | 1106 | | |
| |||
0 commit comments