API: Add a 'known' property when missing-but-known titles are output
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 15 Aug 2016 18:27:40 +0000 (14:27 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 11 Oct 2016 16:18:08 +0000 (12:18 -0400)
commit7c49c10d802445aa775a43144158ce867ebb9274
tree591bda36319de021d1baaea77290afcae01f2f47
parent84ca06799fe71d6b60d319fde335adfe637963e7
API: Add a 'known' property when missing-but-known titles are output

For example file pages from foreign repos, MediaWiki-namespace messages
that haven't been locally customized, and titles manipulated with the
'TitleIsAlwaysKnown' hook.

This allows clients to be able to display such titles as bluelinks
rather than redlinks.

This also has ApiPageSet populate LinkCache to make later checks of
->exists() and ->isKnown() more efficient.

Bug: T141963
Change-Id: Idbdfd2896c0ce9425ededd7cb4b60eda89ba7ef5
RELEASE-NOTES-1.28
includes/api/ApiImageRotate.php
includes/api/ApiPageSet.php
includes/api/ApiParse.php
includes/api/ApiQuery.php
includes/api/ApiSetNotificationTimestamp.php