Drop DoEditSectionLink, deprecated since 1.25

Change-Id: I78b468da34467863047cd01623997dc67cc4fc76
This commit is contained in:
James D. Forrester 2018-10-10 15:19:56 -07:00
parent 72b6e47288
commit 27112ed203
3 changed files with 2 additions and 19 deletions

View file

@ -340,6 +340,8 @@ because of Phabricator reports.
removed. Use the 'ChangesListSpecialPageStructuredFilters' hook instead.
* DeferredUpdates::setImmediateMode(), deprecated since 1.29, has been removed.
* File / MediaHandler::getStreamHeaders(), deprecated since 1.30, was removed.
* The hook 'DoEditSectionLink', deprecated since 1.25, has been removed. Use
the hook 'SkinEditSectionLinks' instead.
=== Deprecations in 1.32 ===
* HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit

View file

@ -1385,19 +1385,6 @@ an article
&$article: article (object) being viewed
&$oldid: oldid (int) being viewed
'DoEditSectionLink': DEPRECATED since 1.25! Use SkinEditSectionLinks instead.
Override the HTML generated for section edit links
$skin: Skin object rendering the UI
$title: Title object for the title being linked to (may not be the same as
the page title, if the section is included from a template)
$section: The designation of the section being pointed to, to be included in
the link, like "&section=$section"
$tooltip: The default tooltip. Escape before using.
By default, this is wrapped in the 'editsectionhint' message.
&$result: The HTML to return, prefilled with the default plus whatever other
changes earlier hooks have made
$lang: The language code to use for the link in the wfMessage function
'EditFilter': Perform checks on an edit
$editor: EditPage instance (object). The edit form (see includes/EditPage.php)
$text: Contents of the edit box

View file

@ -1659,12 +1659,6 @@ abstract class Skin extends ContextSource {
);
$result .= '<span class="mw-editsection-bracket">]</span></span>';
// Deprecated, use SkinEditSectionLinks hook instead
Hooks::run(
'DoEditSectionLink',
[ $this, $nt, $section, $tooltip, &$result, $lang ],
'1.25'
);
return $result;
}