Remove checks for missing title info in ParserOutput extensiondata

This data was added to core in I328f533e6cdb11c0c3a873d23bab1a113dfa39be
and it will have been in production for 4 weeks next week which is
enough for all content to have rolled over.

Change-Id: I3d568eed56446f26aa329bfa554d609b8bcb973a
This commit is contained in:
Subramanya Sastry 2023-11-20 13:33:32 -05:00
parent d004c001be
commit 8671171b35

View file

@ -99,14 +99,9 @@ class ParserHooks implements
// (and leave the onParserAfterTidy handler for legacy HTML).
if ( PageBundleParserOutputConverter::hasPageBundle( $parserOutput ) ) {
$titleDbKey = $parserOutput->getExtensionData( ParsoidParser::PARSOID_TITLE_KEY );
// (Temporary) This extension data won't be available till the ParserCache
// content rolls over (after the core patch that sets this data rides the train).
if ( $titleDbKey ) {
$title = Title::newFromDBkey( $titleDbKey );
if ( $title ) {
$this->transformHtml( $parserOutput, $text, $title, $isPreview );
}
}
$title = Title::newFromDBkey( $titleDbKey );
'@phan-var Title $title';
$this->transformHtml( $parserOutput, $text, $title, $isPreview );
}
}