parser: use "-" for revision ID for non-preview edit filter parse during save
This avoids a double parse when the edit stash is not used,
which can be confirmed via the SaveParse log for a page
using {{REVISIONID}} when edit stashing is disabled. This
now matches the reuse for the edit stash hit case.
Change-Id: I405c39d4d7ac04e39fbdfe400f73238b734c7833
This commit is contained in:
parent
63bc9bcf4f
commit
d256b472f7
1 changed files with 1 additions and 1 deletions
|
|
@ -2607,7 +2607,7 @@ class Parser {
|
|||
// @TODO: disallow this word on all namespaces
|
||||
$this->nsInfo->isContent( $this->mTitle->getNamespace() )
|
||||
) {
|
||||
if ( $this->mRevisionId ) {
|
||||
if ( $this->mRevisionId || $this->mOptions->getSpeculativeRevId() ) {
|
||||
return '-';
|
||||
} else {
|
||||
$this->mOutput->setFlag( 'vary-revision-exists' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue