New 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to modify the return...
authorJack Phoenix <ashley@uncyclomedia.co>
Sat, 14 Jul 2018 22:54:40 +0000 (01:54 +0300)
committerJack Phoenix <ashley@uncyclomedia.co>
Sat, 14 Jul 2018 23:08:16 +0000 (02:08 +0300)
commit0ed71cb0e051eb673e3418667428c5cfddc929cf
treeb49729b05f93fc58e375c6b8cb586b3bd8277077
parent358b2d1d7770c8e36219a44bf4f943fe429a46aa
New 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to modify the return value of OutputPage#getHeadLinksArray

Code from wikiHow codebase, where this hook is used by the following extensions:
* AlternateDomain -- used to remove certain links altogether and change the contents of other elements (e.g. <meta description="..." />)
* hooks (PageHooks) -- used to hide certain links for anons on noindexed pages to avoid leaking article info to Googlebot
* QADomain -- used to remove certain elements and correct <meta keywords="..." /> tags not to mention "wikiHow" if that string is present
* search (LSearch) -- used to remove canonical URL on Special:LSearch for SEO

Change-Id: I4a9ceb343bb5c0b4eb79e4589d36c3790938f8a9
RELEASE-NOTES-1.32
docs/hooks.txt
includes/OutputPage.php