Merge "LogEventsListGetExtraInputs: Keep $input and add $formDescriptor"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 17 Jul 2018 18:52:18 +0000 (18:52 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 17 Jul 2018 18:52:18 +0000 (18:52 +0000)
1  2 
RELEASE-NOTES-1.32
docs/hooks.txt

diff --combined RELEASE-NOTES-1.32
@@@ -53,9 -53,6 +53,9 @@@ production
    pages.
  * The array of hidden options ($opts) passed to the 'SpecialSearchPowerBox' hook
    is now passed by reference, allowing extensions to modify or even unset it.
 +* Added new 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to
 +  modify the return value of OutputPage#getHeadLinksArray in order to add,
 +  remove or otherwise alter the elements to be output in the page <head>.
  
  === External library changes in 1.32 ===
  * …
@@@ -189,8 -186,6 +189,6 @@@ because of Phabricator reports
    CapsuleMultiselectWidget. The following methods may no longer be used:
    * setItemsFromData: Use setValue instead
    * getItemsData: Use getItems instead and get the data property
- * The hook 'LogEventsListGetExtraInputs' now needs a form descriptor array
-   and not plain HTML.
  * LanguageCode::bcp47() now always returns a valid BCP 47 code.  This means
    that some MediaWiki-specific language codes, such as `simple`, are mapped
    into valid BCP 47 codes (eg `en-simple`).
  * (T100681) Use of the Parsoid v1 API with the VirtualRESTService, deprecated in
    MediaWiki 1.26,  is now hard-deprecated. All known clients were converted to
    the Parsoid v3 API in May 2015.
+ * $input is deprecated in hook 'LogEventsListGetExtraInputs'. Use
+   $formDescriptor instead.
  
  === Other changes in 1.32 ===
  * (T198811) The following tables have had their UNIQUE indexes turned into
diff --combined docs/hooks.txt
@@@ -2187,6 -2187,7 +2187,7 @@@ $autocreated: Boolean, whether this wa
  Special:Log for a specific log type
  $type: String of log type being displayed
  $logEventsList: LogEventsList object for context and access to the WebRequest
+ &$input: string HTML of an input element (deprecated, use $formDescriptor instead)
  &$formDescriptor: array HTMLForm's form descriptor
  
  'LogEventsListShowLogExtract': Called before the string is added to OutputPage.
@@@ -2439,12 -2440,6 +2440,12 @@@ users and/or IP addresses too
  &$otherBlockLink: An array with links to other block logs
  $ip: The requested IP address or username
  
 +'OutputPageAfterGetHeadLinksArray': Called in OutputPage#getHeadLinksArray right
 +before returning the result.
 +&$tags: array containing all <head> links generated so far. The array format is
 +"link name or number => 'link HTML'".
 +$out: the OutputPage object
 +
  'OutputPageBeforeHTML': A page has been processed by the parser and the
  resulting HTML is about to be displayed.
  &$parserOutput: the parserOutput (object) that corresponds to the page