diff --git a/includes/EditPage.php b/includes/EditPage.php index 98e0ec4b5a2..480671a2142 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3555,7 +3555,7 @@ HTML $previewHTML = $parserOutput->getText(); $this->mParserOutput = $parserOutput; - $wgOut->addParserOutputNoText( $parserOutput ); + $wgOut->addParserOutputMetadata( $parserOutput ); if ( count( $parserOutput->getWarnings() ) ) { $note .= "\n\n" . implode( "\n\n", $parserOutput->getWarnings() ); diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 612dc329da9..a2b8920a49d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1627,7 +1627,6 @@ class OutputPage extends ContextSource { * @param ParserOutput $parserOutput */ public function addParserOutputNoText( &$parserOutput ) { - wfDeprecated( __METHOD__, '1.24' ); $this->addParserOutputMetadata( $parserOutput ); } diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 86ce1f179c7..9dc4d03a39c 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -325,7 +325,7 @@ class ApiParse extends ApiBase { if ( isset( $prop['headitems'] ) || isset( $prop['headhtml'] ) ) { $context = $this->getContext(); $context->setTitle( $titleObj ); - $context->getOutput()->addParserOutputNoText( $p_result ); + $context->getOutput()->addParserOutputMetadata( $p_result ); if ( isset( $prop['headitems'] ) ) { $headItems = $this->formatHeadItems( $p_result->getHeadItems() );