diff --git a/core/modules/user/lib/Drupal/user/Tests/UserAutocompleteTest.php b/core/modules/user/lib/Drupal/user/Tests/UserAutocompleteTest.php index 1310a2a..c562bad 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserAutocompleteTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserAutocompleteTest.php @@ -47,7 +47,7 @@ function testUserAutocomplete() { // Using first letter of the user's name, make sure the user's full name is in the results. $this->assertRaw($this->unprivileged_user->name, 'User name found in autocompletion results.'); - // Using anonymous user's name, make sure it's in the result. + // Test that anonymous username is in the result. $anonymous_name = $this->randomName(); config('user.settings')->set('anonymous', $anonymous_name)->save(); $this->drupalGet('user/autocomplete', array('query' => array('q' => drupal_substr($anonymous_name, 0, 4)))); diff --git a/core/modules/user/user.pages.inc b/core/modules/user/user.pages.inc index 95d8302..42544bc 100644 --- a/core/modules/user/user.pages.inc +++ b/core/modules/user/user.pages.inc @@ -18,7 +18,7 @@ function user_autocomplete() { $matches = array(); if ($string = drupal_container()->get('request')->query->get('q')) { $anonymous_name = config('user.settings')->get('anonymous'); - // Allow to autocomplete for the anonymous user. + // Allow autocompletion for the anonymous user. if (stripos($anonymous_name, $string) !== FALSE) { $matches[$anonymous_name] = $anonymous_name; }