ApiParse: Deprecate prop=headitems
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 21 Jul 2016 22:52:29 +0000 (23:52 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 28 Jul 2016 17:23:26 +0000 (18:23 +0100)
commitf19050377c7b88d4080b10ab51daaf1631b9e1b0
tree223348951fa851543770430a50b6f082208307a6
parent2064ddeecf18ac02e736d92edb0586b28fef53b6
ApiParse: Deprecate prop=headitems

This code has been rotting for a while. It is important missing stylesheets
and critical inline scripts. Consuming these items is quite risky.
One can't safely use it to update an existing document (as some parts are
duplicative or conflicting). One also can't use it to build a new document as
several critical pieces are missing.

* Since ResourceLoader was introduced in 2011, buildCssLinksArray() doesn't have any stylesheets.

For most pages, this will produce an empty array for headitems.

Mark it as deprecated since in favour of 'prop=headhtml' or 'prop=modules'.

Change-Id: I6084e4454e245f59bf3c82d6db830977725f71e5
includes/api/ApiParse.php
includes/api/i18n/en.json