From 5f89f7040fe987e07d3d2e82049704fb02d73677 Mon Sep 17 00:00:00 2001 From: Thalia Date: Thu, 8 Aug 2019 14:01:15 +0100 Subject: [PATCH] Fix grammatical error in several comments Change-Id: Ibd8ad594950d53f5feb337c30f184ecaf218bc81 --- includes/EditPage.php | 2 +- includes/specials/SpecialContributions.php | 2 +- includes/specials/SpecialCreateAccount.php | 2 +- tests/parser/parserTests.txt | 2 +- tests/phpunit/includes/TitleTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index f288327831..74ec883a06 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -622,7 +622,7 @@ class EditPage { wfDebug( __METHOD__ . ": User can't edit\n" ); if ( $this->context->getUser()->getBlock() ) { - // track block with a cookie if it doesn't exists already + // Track block with a cookie if it doesn't exist already MediaWikiServices::getInstance()->getBlockManager() ->trackBlockWithCookie( $this->context->getUser() ); diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 4f5c15099c..0425a580e7 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -286,7 +286,7 @@ class SpecialContributions extends IncludableSpecialPage { */ protected function contributionsSub( $userObj ) { if ( $userObj->isAnon() ) { - // Show a warning message that the user being searched for doesn't exists. + // Show a warning message that the user being searched for doesn't exist. // User::isIP returns true for IP address and usemod IPs like '123.123.123.xxx', // but returns false for IP ranges. We don't want to suggest either of these are // valid usernames which we would with the 'contributions-userdoesnotexist' message. diff --git a/includes/specials/SpecialCreateAccount.php b/includes/specials/SpecialCreateAccount.php index 8396b4dec1..9b5dd3f4ba 100644 --- a/includes/specials/SpecialCreateAccount.php +++ b/includes/specials/SpecialCreateAccount.php @@ -64,7 +64,7 @@ class SpecialCreateAccount extends LoginSignupSpecialPage { $user = $this->getUser(); $status = AuthManager::singleton()->checkAccountCreatePermissions( $user ); if ( !$status->isGood() ) { - // track block with a cookie if it doesn't exists already + // Track block with a cookie if it doesn't exist already if ( $user->isBlockedFromCreateAccount() ) { MediaWikiServices::getInstance()->getBlockManager()->trackBlockWithCookie( $user ); } diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 7046a7f2fd..6599041e31 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -15817,7 +15817,7 @@ parsoid=wt2html,wt2wt,html2html ################### !! test -Link to image page- image page normally doesn't exists, hence edit link +Link to image page- image page normally doesn't exist, hence edit link Add test with existing image page #

Image:test !! wikitext diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index 913f56de55..a40b2921c4 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -810,7 +810,7 @@ class TitleTest extends MediaWikiTestCase { // Tell Title it doesn't know whether it exists $title->mArticleID = -1; - // Tell the link cache it doesn't exists when it really does + // Tell the link cache it doesn't exist when it really does $linkCache->clearLink( $title ); $linkCache->addBadLinkObj( $title ); -- 2.20.1