Everywhere yoda conditions are
This commit is contained in:
@@ -84,6 +84,7 @@ class Unique extends Rule {
|
||||
if ( ! $existing) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ( $existing instanceof \WP_User) {
|
||||
$id = $existing->ID;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user