Skip to content

Commit e8353d0

Browse files
committed
Add $current_user to the list of WP globals
1 parent 53a3d9f commit e8353d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Inpsyde/Sniffs/CodeQuality/VariablesNameSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class VariablesNameSniff implements Sniff
2323
];
2424

2525
const WP_GLOBALS = [
26+
'$current_user',
2627
'$is_iphone',
2728
'$is_chrome',
2829
'$is_safari',

0 commit comments

Comments
 (0)