wikiHow added a new hook called 'SpecialSearchPowerBoxOpts', which was passed only &$opts, so that the Finner extension can unset the $opts array. Enhancing the pre-existing hook is a better solution in this case.
Change-Id: I091cbdc78fc779144554d8420a95435b7048c407
* Added new 'ArticleShowPatrolFooter' hook, which allows extensions to determine
if the [mark as patrolled] link should be shown at the footer of patrollable
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.
=== External library changes in 1.32 ===
* …
the advanced form, a.k.a. power search box.
&$showSections: an array to add values with more options to
$term: the search term (not a title object)
-$opts: an array of hidden options (containing 'redirs' and 'profile')
+&$opts: an array of hidden options (containing 'redirs' and 'profile')
'SpecialSearchProfileForm': Allows modification of search profile forms.
$search: special page object
$showSections = [
'namespaceTables' => "<table>" . implode( '</table><table>', $namespaceTables ) . '</table>',
];
- Hooks::run( 'SpecialSearchPowerBox', [ &$showSections, $term, $opts ] );
+ Hooks::run( 'SpecialSearchPowerBox', [ &$showSections, $term, &$opts ] );
$hidden = '';
foreach ( $opts as $key => $value ) {