Drop OpenSearch::getOpenSearchTemplate(), deprecated in 1.25
authorJames D. Forrester <jforrester@wikimedia.org>
Tue, 6 Mar 2018 17:08:09 +0000 (17:08 +0000)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 8 Mar 2018 10:43:28 +0000 (10:43 +0000)
Change-Id: Ib76b96cf392b7f9fa38d28173dd2cd170e08a881

RELEASE-NOTES-1.31
includes/search/SearchEngine.php

index 186d8ab..557760d 100644 (file)
@@ -289,6 +289,8 @@ changes to languages because of Phabricator reports.
   * StripState::merge()
 * The "free" class is now only applied to unbracketed URLs in wikitext. Links
   written using square brackets will get the class "text" not "free".
+* OpenSearch::getOpenSearchTemplate(), deprecated in 1.25, has been removed. You
+  can use ApiOpenSearch::getOpenSearchTemplate() instead.
 
 == Compatibility ==
 MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
index 7ac24c5..7e6e8e6 100644 (file)
@@ -406,17 +406,6 @@ abstract class SearchEngine {
                // no-op
        }
 
-       /**
-        * Get OpenSearch suggestion template
-        *
-        * @deprecated since 1.25
-        * @return string
-        */
-       public static function getOpenSearchTemplate() {
-               wfDeprecated( __METHOD__, '1.25' );
-               return ApiOpenSearch::getOpenSearchTemplate( 'application/x-suggestions+json' );
-       }
-
        /**
         * Get the raw text for updating the index from a content object
         * Nicer search backends could possibly do something cooler than