OutputPage::addWikiTextAsContent() instead, which ensures the output is
tidy and clarifies whether content-language specific postprocessing should
be done on the text.
+* OutputPage::parse() and OutputPage::parseInline() have been deprecated
+ due to untidy output and inconsistent handling of wrapper divs and
+ interface/content language defaults. Use OutputPage::parseAsContent(),
+ OutputPage::parseAsInterface(), or OutputPage::parseInlineAsInterface()
+ as appropriate.
* QuickTemplate::msgHtml() and BaseTemplate::msgHtml() have been deprecated
as they promote bad practises. I18n messages should always be properly
escaped.
applied for Arabic and Malayalam in the future. Please enable these on
your local wiki (if you have them explicitly set to false) and run
maintenance/cleanupTitles.php to fix any existing page titles.
-* OutputPage::parse() and OutputPage::parseInline() have been deprecated
- due to untidy output and inconsistent handling of wrapper divs and
- interface/content language defaults. Use OutputPage::parseAsContent(),
- OutputPage::parseAsInterface(), or OutputPage::parseInlineAsInterface()
- as appropriate.
* The LegacyHookPreAuthenticationProvider class, deprecated since its creation
in 1.27 as part of the AuthManager re-write, now emits deprecation warnings.
This will help identify the issue if you added it to $wgAuthManagerConfig.
* @param Language|null $language Target language object, will override $interface
* @throws MWException
* @return string HTML
- * @deprecated since 1.33, due to untidy output and inconsistent wrapper;
+ * @deprecated since 1.32, due to untidy output and inconsistent wrapper;
* use parseAsContent() if $interface is default value or false, or else
* parseAsInterface() if $interface is true.
*/
* @param bool $linestart Is this the start of a line? (Defaults to true)
* @throws MWException
* @return string HTML
- * @since 1.33
+ * @since 1.32
*/
public function parseAsContent( $text, $linestart = true ) {
return $this->parseInternal(
* @param bool $linestart Is this the start of a line? (Defaults to true)
* @throws MWException
* @return string HTML
- * @since 1.33
+ * @since 1.32
*/
public function parseAsInterface( $text, $linestart = true ) {
return $this->parseInternal(
* @param bool $linestart Is this the start of a line? (Defaults to true)
* @throws MWException
* @return string HTML
- * @since 1.33
+ * @since 1.32
*/
public function parseInlineAsInterface( $text, $linestart = true ) {
return Parser::stripOuterParagraph(
* @param bool $interface Use interface language (instead of content language) while parsing
* language sensitive magic words like GRAMMAR and PLURAL
* @return string HTML
- * @deprecated since 1.33, due to untidy output and confusing default
+ * @deprecated since 1.32, due to untidy output and confusing default
* for $interface. Use parseInlineAsInterface() if $interface is
* the default value or false, or else use
* Parser::stripOuterParagraph($outputPage->parseAsContent(...)).