mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Pre-populate LinkCache for page we're editing
Bug: T78642 Change-Id: I2293903f9e131f3ea8c31302f86a138208ae57e3
This commit is contained in:
parent
9b3d3080ce
commit
3007270645
|
@ -467,6 +467,11 @@ class ApiVisualEditor extends ApiBase {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
$links[$page->getPrefixedText()] = array(
|
||||
'missing' => !$page->exists()
|
||||
);
|
||||
|
||||
// On parser cache miss, just don't bother populating red link data
|
||||
|
||||
if ( $parsed === false ) {
|
||||
|
|
Loading…
Reference in a new issue