SearchEngine: Hard-deprecate PrefixSearch::titleSearch()
authorDerick Alangi <alangiderick@gmail.com>
Mon, 6 May 2019 14:32:04 +0000 (15:32 +0100)
committerD3r1ck01 <xsavitar.wiki@aol.com>
Mon, 6 May 2019 15:57:21 +0000 (15:57 +0000)
Usage
=====

https://codesearch.wmflabs.org/search/?q=%5B%5E%3E%5D(-%3E%7C%3A%3A)titleSearch&i=nope&files=&repos=

Only the MassEditRegex extension uses this method per the search,
so hard deprecating this method.

Change-Id: Ia10caacd3cde94f08e59f5f8d7e90f61c7de604e

includes/search/PrefixSearch.php

index aa429b2..a7d475e 100644 (file)
@@ -41,6 +41,7 @@ abstract class PrefixSearch {
         * @return array Array of strings
         */
        public static function titleSearch( $search, $limit, $namespaces = [], $offset = 0 ) {
+               wfDeprecated( __METHOD__, '1.34' );
                $prefixSearch = new StringPrefixSearch;
                return $prefixSearch->search( $search, $limit, $namespaces, $offset );
        }