From fcbb75b8a496e18f12872845c69f8c92e3c55c4d Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Wed, 5 Mar 2025 14:38:41 +0000 Subject: Re-apply "Drop all 49 remaining class_aliases from MediaWiki 1.40" This reverts commit 1695950bccb1ca7eba98952753708ae7c4b76d8d and re-applies commit I8f3c2ea021d0f6e. Reason for revert: the remaining usages have been updated in Ida665f486eff384. Bug: T166010 Change-Id: I43f06e6872b264e43aef7fa7c2ac47159926a694 --- includes/page/File/BadFileLookup.php | 3 --- includes/page/File/FileDeleteForm.php | 3 --- includes/page/MergeHistory.php | 3 --- includes/page/MovePage.php | 3 --- includes/page/PageProps.php | 3 --- includes/page/ProtectionForm.php | 3 --- 6 files changed, 18 deletions(-) (limited to 'includes/page') diff --git a/includes/page/File/BadFileLookup.php b/includes/page/File/BadFileLookup.php index 90abb84ffdd9..9055c08765c7 100644 --- a/includes/page/File/BadFileLookup.php +++ b/includes/page/File/BadFileLookup.php @@ -132,6 +132,3 @@ class BadFileLookup { return $ret; } } - -/** @deprecated class alias since 1.40 */ -class_alias( BadFileLookup::class, 'MediaWiki\\BadFileLookup' ); diff --git a/includes/page/File/FileDeleteForm.php b/includes/page/File/FileDeleteForm.php index 9f94891b419f..fa3f50ac24d4 100644 --- a/includes/page/File/FileDeleteForm.php +++ b/includes/page/File/FileDeleteForm.php @@ -171,6 +171,3 @@ class FileDeleteForm { && strpos( $oldimage, '\\' ) === false; } } - -/** @deprecated class alias since 1.40 */ -class_alias( FileDeleteForm::class, 'FileDeleteForm' ); diff --git a/includes/page/MergeHistory.php b/includes/page/MergeHistory.php index f6fbde8dd9dd..0d3753277fce 100644 --- a/includes/page/MergeHistory.php +++ b/includes/page/MergeHistory.php @@ -635,6 +635,3 @@ class MergeHistory { } } } - -/** @deprecated class alias since 1.40 */ -class_alias( MergeHistory::class, 'MergeHistory' ); diff --git a/includes/page/MovePage.php b/includes/page/MovePage.php index d6d9a76b6b10..e7733024d236 100644 --- a/includes/page/MovePage.php +++ b/includes/page/MovePage.php @@ -960,6 +960,3 @@ class MovePage { ] ); } } - -/** @deprecated class alias since 1.40 */ -class_alias( MovePage::class, 'MovePage' ); diff --git a/includes/page/PageProps.php b/includes/page/PageProps.php index a74e5999ae59..7069b37474c6 100644 --- a/includes/page/PageProps.php +++ b/includes/page/PageProps.php @@ -283,6 +283,3 @@ class PageProps { $this->cache->setField( 0, $pageID, $pageProperties ); } } - -/** @deprecated class alias since 1.40 */ -class_alias( PageProps::class, 'PageProps' ); diff --git a/includes/page/ProtectionForm.php b/includes/page/ProtectionForm.php index 52c7d8d627fc..cecef1041629 100644 --- a/includes/page/ProtectionForm.php +++ b/includes/page/ProtectionForm.php @@ -627,6 +627,3 @@ class ProtectionForm { $this->hookRunner->onProtectionForm__showLogExtract( $this->mArticle, $this->mOut ); } } - -/** @deprecated class alias since 1.40 */ -class_alias( ProtectionForm::class, 'ProtectionForm' ); -- cgit v1.2.3