Don't fill in the skin's search box on Special:Search
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 20 May 2017 22:59:59 +0000 (00:59 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 20 May 2017 22:59:59 +0000 (00:59 +0200)
commit305fa92fc1f4b6f1afe987d4691ed2982efa04fa
tree77baf41db9fbc65f0c04b24612ebccc47c178273
parent0f223ea1babc51dda78336c8eb3700c0066fcdcd
Don't fill in the skin's search box on Special:Search

When viewing Special:Search, you usually see two search forms: the
small one provided by the skin (present on all pages), and the large
advanced search form generated by Special:Search.

Previously, both of these forms would be prefilled with the text that
was searched, which could lead to the user submitting the wrong form
after changing advanced search options.

After this change, the skin's search form will always start out empty.
There's no way for this to affect pages other than Special:Search,
since if the 'search' URL parameter is given, all requests are
redirected to Special:Search anyway (see MediaWiki::parseTitle()).

Bug: T106055
Change-Id: Ic6bb8af5383e7acfe4f823f563165cd60182753e
includes/skins/BaseTemplate.php