Skip to content

Commit 8dc21bb

Browse files
committed
NOTES OrderByRandSniff
1 parent 998d01d commit 8dc21bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WordPressVIPMinimum/Sniffs/Performance/OrderByRandSniff.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public function getGroups() {
4949
*/
5050
public function callback( $key, $val, $line, $group ) {
5151
$val = TextStrings::stripQuotes( $val );
52+
/*
53+
TODO:
54+
- check strtolower($val)
55+
=> could be that WP handles this in a case-insensitive manner internally, but that needs checking
56+
*/
5257
return strtolower( $val ) === 'rand';
5358
}
5459
}

0 commit comments

Comments
 (0)