Skip to content

Commit 1378a4e

Browse files
authored
Merge pull request #455 from ernilambar/fix-variable-name-application-name-exists
Fix variable name in application_name_exists polyfill
2 parents e3253aa + e8a8604 commit 1378a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/User_Application_Password_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private function application_name_exists_for_user( $user_id, $app_name ) {
540540
$passwords = WP_Application_Passwords::get_user_application_passwords( $user_id );
541541

542542
foreach ( $passwords as $password ) {
543-
if ( strtolower( $password['name'] ) === strtolower( $name ) ) {
543+
if ( strtolower( $password['name'] ) === strtolower( $app_name ) ) {
544544
return true;
545545
}
546546
}

0 commit comments

Comments
 (0)