Sanitizer: remove deprecated parameter to escapeIdReferenceList()
authorMax Semenik <maxsem.wiki@gmail.com>
Fri, 22 Feb 2019 04:12:22 +0000 (20:12 -0800)
committerMax Semenik <maxsem.wiki@gmail.com>
Fri, 22 Feb 2019 04:12:22 +0000 (20:12 -0800)
Change-Id: Iacd5796718c1d64e7290cfd9669c99d8f9e85dc5

RELEASE-NOTES-1.33
includes/parser/Sanitizer.php

index dc100ef..d9175a0 100644 (file)
@@ -262,6 +262,8 @@ because of Phabricator reports.
 * The ChangeList::insertArticleLink() method, that was deprecated in 1.27, has
   been removed.
 * MessageBlobStore::__construct() now requires its $rl parameter.
+* Second parameter to Sanitizer::escapeIdReferenceList() (deprecated in 1.31)
+  has been removed.
 
 === Deprecations in 1.33 ===
 * The configuration option $wgUseESI has been deprecated, and is expected
index f8c3bc2..0aa58c1 100644 (file)
@@ -1375,20 +1375,14 @@ class Sanitizer {
 
        /**
         * Given a string containing a space delimited list of ids, escape each id
-        * to match ids escaped by the escapeId() function.
-        *
-        * @todo remove $options completely in 1.32
+        * to match ids escaped by the escapeIdForAttribute() function.
         *
         * @since 1.27
         *
         * @param string $referenceString Space delimited list of ids
-        * @param string|array $options Deprecated and does nothing.
         * @return string
         */
-       static function escapeIdReferenceList( $referenceString, $options = [] ) {
-               if ( $options ) {
-                       wfDeprecated( __METHOD__ . ' with $options', '1.31' );
-               }
+       public static function escapeIdReferenceList( $referenceString ) {
                # Explode the space delimited list string into an array of tokens
                $references = preg_split( '/\s+/', "{$referenceString}", -1, PREG_SPLIT_NO_EMPTY );