Merge "Deprecate EditFilterMerged hook, final ContentHandler replaced hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 15 Oct 2016 06:41:34 +0000 (06:41 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 15 Oct 2016 06:41:34 +0000 (06:41 +0000)
RELEASE-NOTES-1.28
includes/EditPage.php

index b9278d0..75fc139 100644 (file)
@@ -227,8 +227,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 95d11c4..1c13d56 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' );