diff options
author | Bartosz Dziewoński <dziewonski@fastmail.fm> | 2024-02-08 23:50:45 +0100 |
---|---|---|
committer | Bartosz Dziewoński <dziewonski@fastmail.fm> | 2024-03-07 19:57:27 +0000 |
commit | 87ac02d3a67f05855b350fb626840b6fa924bd0f (patch) | |
tree | 6ffc12842839208ed631b72dd4ae616fc1338301 /includes/linker/Linker.php | |
parent | d83d056aa89cf196d84feccebcce70cf76c5eb00 (diff) | |
download | mediawikicore-87ac02d3a67f05855b350fb626840b6fa924bd0f.tar.gz mediawikicore-87ac02d3a67f05855b350fb626840b6fa924bd0f.zip |
Deprecate Linker::makeHeadline()
Move the code to a private method in the only place that needs it.
Change-Id: Ie68a5324b2c789f44ffc495d05eb6957234cb9c8
Diffstat (limited to 'includes/linker/Linker.php')
-rw-r--r-- | includes/linker/Linker.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/linker/Linker.php b/includes/linker/Linker.php index 2acce34b39ec..5485c289d817 100644 --- a/includes/linker/Linker.php +++ b/includes/linker/Linker.php @@ -1928,6 +1928,7 @@ class Linker { /** * Create a headline for content * + * @deprecated since 1.42 * @since 1.16.3 * @param int $level The level of the headline (1-6) * @param string $attribs Any attributes for the headline, starting with @@ -1944,6 +1945,7 @@ class Linker { public static function makeHeadline( $level, $attribs, $anchor, $html, $link, $fallbackAnchor = false ) { + wfDeprecated( __METHOD__, '1.42' ); $anchorEscaped = htmlspecialchars( $anchor, ENT_COMPAT ); $fallback = ''; if ( $fallbackAnchor !== false && $fallbackAnchor !== $anchor ) { |