mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Coding Standards: Fix and whitelist variable names.
From the `WordPress.NamingConventions.ValidVariableName` sniff, this commit fixes/whitelists all `NotSnakeCaseMemberVar`, `MemberNotSnakeCase`, and `StringNotSnakeCase` violations. It also fixes a handful of the `NotSnakeCase` violations. See #45934. git-svn-id: https://develop.svn.wordpress.org/trunk@44573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -199,6 +199,7 @@ class Tests_User extends WP_UnitTestCase {
|
||||
* @ticket 20043
|
||||
*/
|
||||
public function test_user_unset() {
|
||||
// phpcs:disable WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
|
||||
$user = new WP_User( self::$author_id );
|
||||
|
||||
// Test custom fields
|
||||
@@ -207,6 +208,7 @@ class Tests_User extends WP_UnitTestCase {
|
||||
unset( $user->customField );
|
||||
$this->assertFalse( isset( $user->customField ) );
|
||||
return $user;
|
||||
// phpcs:enable
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user