Matthewrbowker has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/372113 )
Change subject: Remove two deprecated functions and one depreciated variable in
a function call within Parser.php
......................................................................
Remove two deprecated functions and one depreciated variable in a function call
within Parser.php
* Parser::getRandomString() (deprecated in 1.26) was removed.
* Parser::uniqPrefix() (deprecated in 1.26) was removed.
* Parser::extractTagsAndParams() now only accepts three arguments. The fourth,
$uniq_prefix was deprecated in 1.26 and has now been removed.
Bug: T61113
Change-Id: I7333fff4eb8b9a754b4596992f2a69bbdaac664d
---
M RELEASE-NOTES-1.30
M includes/parser/Parser.php
2 files changed, 5 insertions(+), 28 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/13/372113/1
diff --git a/RELEASE-NOTES-1.30 b/RELEASE-NOTES-1.30
index 9474f21..cc77d8c 100644
--- a/RELEASE-NOTES-1.30
+++ b/RELEASE-NOTES-1.30
@@ -168,6 +168,10 @@
* WikiImporter now requires the second parameter to be an instance of the
Config,
class. Prior to that, the Config parameter was optional (a behavior
deprecated in
1.25).
+* Parser::getRandomString() (deprecated in 1.26) was removed.
+* Parser::uniqPrefix() (deprecated in 1.26) was removed.
+* Parser::extractTagsAndParams() now only accepts three arguments. The fourth,
+ $uniq_prefix was deprecated in 1.26 and has now been removed.
== Compatibility ==
MediaWiki 1.30 requires PHP 5.5.9 or later. There is experimental support for
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 3261002..fafa1a9 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -737,17 +737,6 @@
}
/**
- * Get a random string
- *
- * @return string
- * @deprecated since 1.26; use wfRandomString() instead.
- */
- public static function getRandomString() {
- wfDeprecated( __METHOD__, '1.26' );
- return wfRandomString( 16 );
- }
-
- /**
* Set the current user.
* Should only be used when doing pre-save transform.
*
@@ -755,17 +744,6 @@
*/
public function setUser( $user ) {
$this->mUser = $user;
- }
-
- /**
- * Accessor for mUniqPrefix.
- *
- * @return string
- * @deprecated since 1.26; use Parser::MARKER_PREFIX instead.
- */
- public function uniqPrefix() {
- wfDeprecated( __METHOD__, '1.26' );
- return self::MARKER_PREFIX;
}
/**
@@ -973,14 +951,9 @@
* @param array $elements List of element names. Comments are always
extracted.
* @param string $text Source text string.
* @param array &$matches Out parameter, Array: extracted tags
- * @param string|null $uniq_prefix
* @return string Stripped text
- * @since 1.26 The uniq_prefix argument is deprecated.
*/
- public static function extractTagsAndParams( $elements, $text,
&$matches, $uniq_prefix = null ) {
- if ( $uniq_prefix !== null ) {
- wfDeprecated( __METHOD__ . ' called with $prefix
argument', '1.26' );
- }
+ public static function extractTagsAndParams( $elements, $text,
&$matches) {
static $n = 1;
$stripped = '';
$matches = [];
--
To view, visit https://gerrit.wikimedia.org/r/372113
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7333fff4eb8b9a754b4596992f2a69bbdaac664d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matthewrbowker <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits