Deprecate EditFilterMerged hook, final ContentHandler replaced hook
authorReedy <reedy@wikimedia.org>
Thu, 6 Oct 2016 14:20:00 +0000 (15:20 +0100)
committerReedy <reedy@wikimedia.org>
Thu, 6 Oct 2016 23:29:03 +0000 (00:29 +0100)
Bug: T145728
Bug: T147391
Change-Id: I9b9acb43b7ec081dc8c6f8e918ae60a317fa6bb7

RELEASE-NOTES-1.28
includes/EditPage.php

index 78986d7..ad3a171 100644 (file)
@@ -215,8 +215,8 @@ changes to languages because of Phabricator reports.
   migrate to using the same functions on a ProxyLookup instance, obtainable from
   MediaWikiServices.
 * The ArticleAfterFetchContent, ArticleInsertComplete, ArticleSave, ArticleSaveComplete,
-  ArticleViewCustom, EditPageGetDiffText, EditPageGetPreviewText and ShowRawCssJs hooks
-  will now emit deprecation warnings if used.
+  ArticleViewCustom, EditFilterMerged, EditPageGetDiffText, EditPageGetPreviewText and
+  ShowRawCssJs hooks will now emit deprecation warnings if used.
 
 == Compatibility ==
 
index 8ca7105..d021382 100644 (file)
@@ -1613,7 +1613,8 @@ class EditPage {
        protected function runPostMergeFilters( Content $content, Status $status, User $user ) {
                // Run old style post-section-merge edit filter
                if ( !ContentHandler::runLegacyHooks( 'EditFilterMerged',
-                       [ $this, $content, &$this->hookError, $this->summary ]
+                       [ $this, $content, &$this->hookError, $this->summary ],
+                       '1.21'
                ) ) {
                        # Error messages etc. could be handled within the hook...
                        $status->fatal( 'hookaborted' );