Hard-deprecate Sanitizer::escapeId()

Deprecated in MW 1.30; time to clean up any remaining uses.

Code search:
https://codesearch.wmflabs.org/deployed/?q=escapeId%5C%28&i=nope&files=&repos=

Depends-On: Ic03a5da2e1d6b8f5656555420dd573a1d698b9cc
Depends-On: I311f44a5035f73c0fb2289f727eb39b73007429b
Depends-On: I76c5b539bae5572c4ac65f28fec9c0c36381348c
Depends-On: Id4cbfc3b113b1b04f949d485187e89ffe0b487f5
Depends-On: I7d5ba4930688ed7f011a4babed5986b8e40910a0
Depends-On: I964f83ce88fb9c66a7c59037c6066f4567bcf4c9
Change-Id: I89504cfdf8e02831d54a26900bfdc63a33b4eade
This commit is contained in:
C. Scott Ananian 2020-01-24 15:41:38 -05:00 committed by Jforrester
parent 836f407bd6
commit b79c1e22ad
2 changed files with 2 additions and 0 deletions

View file

@ -1221,6 +1221,7 @@ class Sanitizer {
* @return string
*/
static function escapeId( $id, $options = [] ) {
wfDeprecated( __METHOD__, '1.30' );
$options = (array)$options;
// HTML4-style escaping

View file

@ -205,6 +205,7 @@ class SanitizerUnitTest extends MediaWikiUnitTestCase {
* @covers Sanitizer::escapeId
*/
public function testEscapeId( $input, $output ) {
$this->hideDeprecated( 'Sanitizer::escapeId' );
$this->assertSame(
$output,
Sanitizer::escapeId( $input, [ 'noninitial', 'legacy' ] )