* 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
"properties": {
"class": {
"type": "string",
- "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
+ "pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$"
}
},
"required": ["class"]
"properties": {
"class": {
"type": "string",
- "pattern": "^((?!ResourceLoader(File|Image)Module).)*$"
+ "pattern": "^(?!ResourceLoader(File|Image|Wiki)Module).*$"
}
},
"required": ["class"]
/**
* 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 );
if ( is_string( $fileInfo ) ) {
$fileInfo = [ 'name' => $fileInfo, 'file' => $fileInfo ];
} elseif ( !isset( $fileInfo['name'] ) ) {
- // Backwards compatibility
- if ( !is_numeric( $alias ) ) {
- $fileInfo['name'] = $alias;
- } else {
- $msg = __METHOD__ . ": invalid package file definition for module " .
- "\"{$this->getName()}\": 'name' key is required when value is not a string";
- wfDebugLog( 'resourceloader', $msg );
- throw new MWException( $msg );
- }
+ $msg = __METHOD__ . ": invalid package file definition for module " .
+ "\"{$this->getName()}\": 'name' key is required when value is not a string";
+ wfDebugLog( 'resourceloader', $msg );
+ throw new MWException( $msg );
}
// Infer type from alias if needed
}
/**
- * Test for DiffHistoryBlob::xdiffAdler32()
* @dataProvider provideXdiffAdler32
* @covers DiffHistoryBlob::xdiffAdler32
*/
<?php
/**
- * Tests for the FauxResponse class
- *
* Copyright @ 2011 Alexandre Emsenhuber
*
* This program is free software; you can redistribute it and/or modify
}
/**
- * Test for Html::expandAttributes()
* Please note it output a string prefixed with a space!
* @covers Html::expandAttributes
*/
<?php
/**
- * Tests for MultiHttpClient
- *
* The urls herein are not actually called, because we mock the return results.
*
* @covers MultiHttpClient
<?php
/**
- * Unit tests for HTMLAutoCompleteSelectField
- *
* @covers HTMLAutoCompleteSelectField
*/
class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase {
<?php
/**
- * Unit tests for the HTMLCheckMatrix
* @covers HTMLCheckMatrix
*/
class HTMLCheckMatrixTest extends MediaWikiTestCase {
<?php
/**
- * Tests for OracleInstaller
- *
* @group Database
* @group Installer
*/
<?php
-/**
- * Tests for IEUrlExtension::findIE6Extension
- */
class IEUrlExtensionTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
<?php
/**
- * Test for ProcessCacheLRU class.
- *
* Note that it uses the ProcessCacheLRUTestable class which extends some
* properties and methods visibility. That class is defined at the end of the
* file containing this class.
use MediaWiki\MediaWikiServices;
/**
- * Tests for the DBSiteStore class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
<?php
/**
- * Tests for the MediaWikiSite class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
<?php
/**
- * Tests for the SiteExporter class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
<?php
/**
- * Tests for the SiteImporter class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
<?php
/**
- * Tests for the SiteList class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
<?php
/**
- * Tests for the Site class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
use MediaWikiTestCase;
/**
- * Tests for BaseDump
- *
* @group Dump
* @covers BaseDump
*/