Hard deprecate Title::escapeFragmentForURL()
authorMax Semenik <maxsem.wiki@gmail.com>
Wed, 18 Oct 2017 06:29:15 +0000 (23:29 -0700)
committerMax Semenik <maxsem.wiki@gmail.com>
Wed, 18 Oct 2017 06:29:15 +0000 (23:29 -0700)
No usages in core and only one outside of core, being
fixed in If1191817ee2db84d8fd3b91aa13e6257faf10a41.

Change-Id: I91ca289e989a4dc32de083b9cc002c9c9d75a3e1

includes/Title.php

index 3da6ab9..718239d 100644 (file)
@@ -776,6 +776,7 @@ class Title implements LinkTarget {
         * @return string Escaped string
         */
        static function escapeFragmentForURL( $fragment ) {
+               wfDeprecated( __METHOD__, '1.30' );
                # Note that we don't urlencode the fragment.  urlencoded Unicode
                # fragments appear not to work in IE (at least up to 7) or in at least
                # one version of Opera 9.x.  The W3C validator, for one, doesn't seem