"$method: Prepared output has vary-revision-id with wrong ID...\n"
);
return true;
+ } elseif ( $out->getFlag( 'vary-revision-exists' ) ) {
+ // If {{REVISIONID}} resolved to '', it now needs to resolve to '-'.
+ // Note that edit stashing always uses '-', which can be used for both
+ // edit filter checks and canonical parser cache.
+ $this->saveParseLogger->info(
+ "$method: Prepared output has vary-revision-exists...\n"
+ );
+ return true;
} else {
// NOTE: In the original fix for T135261, the output was discarded if 'vary-user' was
// set for a null-edit. The reason was that the original rendering in that case was
// @TODO: disallow this word on all namespaces
$this->nsInfo->isContent( $this->mTitle->getNamespace() )
) {
- return $this->mRevisionId ? '-' : '';
+ if ( $this->mRevisionId ) {
+ return '-';
+ } else {
+ $this->mOutput->setFlag( 'vary-revision-exists' );
+
+ return '';
+ }
};
$pageLang = $this->getFunctionLang();