jenkins-bot has submitted this change and it was merged.
Change subject: Mark Math-specific functions in core as deprecated
......................................................................
Mark Math-specific functions in core as deprecated
The math specific functions in core are not needed
anymore and should be removed in future versions.
Math can access these settings in the same way as
all other extensions do.
Since Math 2.0 the rendered element has the property
"markerType" => 'nowiki'
Change-Id: I20d3714bed9da864146f133a08cf4ca90eda42ab
---
M RELEASE-NOTES-1.22
M includes/parser/ParserOptions.php
M languages/Language.php
M languages/LanguageConverter.php
4 files changed, 6 insertions(+), 0 deletions(-)
Approvals:
Bartosz Dziewoński: Looks good to me, approved
jenkins-bot: Verified
diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22
index 25d5c42..bc4de40 100644
--- a/RELEASE-NOTES-1.22
+++ b/RELEASE-NOTES-1.22
@@ -533,6 +533,7 @@
The file never contained any re-usable components. To use it in a skin, load
'mediawiki.legacy.wikibits' (which IEFixes depends on) and that will import
IEFixes automatically if user agent conditions are met.
+* Code specific to the Math extension was marked as deprecated.
== Compatibility ==
diff --git a/includes/parser/ParserOptions.php
b/includes/parser/ParserOptions.php
index bde508a..e12f32d 100644
--- a/includes/parser/ParserOptions.php
+++ b/includes/parser/ParserOptions.php
@@ -240,6 +240,7 @@
function getExternalLinkTarget() { return
$this->mExternalLinkTarget; }
function getDisableContentConversion() { return
$this->mDisableContentConversion; }
function getDisableTitleConversion() { return
$this->mDisableTitleConversion; }
+ /** @deprecated since 1.22 use User::getOption('math') instead */
function getMath() { $this->optionUsed( 'math'
);
return $this->mMath; }
function getThumbSize() { $this->optionUsed(
'thumbsize' );
@@ -338,6 +339,7 @@
function setExternalLinkTarget( $x ) { return wfSetVar(
$this->mExternalLinkTarget, $x ); }
function disableContentConversion( $x = true ) { return wfSetVar(
$this->mDisableContentConversion, $x ); }
function disableTitleConversion( $x = true ) { return wfSetVar(
$this->mDisableTitleConversion, $x ); }
+ /** @deprecated since 1.22 */
function setMath( $x ) { return wfSetVar(
$this->mMath, $x ); }
function setUserLang( $x ) {
if ( is_string( $x ) ) {
diff --git a/languages/Language.php b/languages/Language.php
index dc87bc8..f54ce83 100644
--- a/languages/Language.php
+++ b/languages/Language.php
@@ -63,6 +63,7 @@
function markNoConversion( $text, $noParse = false ) { return $text; }
function convertCategoryKey( $key ) { return $key; }
function convertLinkToAllVariants( $text ) { return
$this->autoConvertToAllVariants( $text ); }
+ /** @deprecated since 1.22 is no longer used */
function armourMath( $text ) { return $text; }
function validateVariant( $variant = null ) { return $variant ===
$this->mLang->getCode() ? $variant : null; }
function translate( $text, $variant ) { return $text; }
@@ -3811,6 +3812,7 @@
*
* @param $text string
* @return string
+ * @deprecated since 1.22 is no longer used
*/
public function armourMath( $text ) {
return $this->mConverter->armourMath( $text );
diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php
index ccf9b1e..96a71a0 100644
--- a/languages/LanguageConverter.php
+++ b/languages/LanguageConverter.php
@@ -1103,6 +1103,7 @@
* @param $text String: text to armour against conversion
* @return String: armoured text where { and } have been converted to
* { and }
+ * @deprecated since 1.22 is no longer used
*/
public function armourMath( $text ) {
// convert '-{' and '}-' to '-{' and '}-' to prevent
--
To view, visit https://gerrit.wikimedia.org/r/87479
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I20d3714bed9da864146f133a08cf4ca90eda42ab
Gerrit-PatchSet: 17
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Liangent <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits