Remove wfIsTrustedProxy(), deprecated since 1.24
authorOri Livneh <ori@wikimedia.org>
Sun, 13 Dec 2015 21:56:56 +0000 (13:56 -0800)
committerReedy <reedy@wikimedia.org>
Sun, 13 Dec 2015 22:07:41 +0000 (22:07 +0000)
No usage outside of core:
https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+wfIsTrustedProxy&type=Code&ref=searchresults

Change-Id: I86439a772e036dcd5ebdd8b16010c7bacfd9463b

docs/hooks.txt
includes/GlobalFunctions.php

index fe88fa7..c65cdb6 100644 (file)
@@ -1686,9 +1686,9 @@ $rc: RecentChange object that triggered url generation
 'IsFileCacheable': Override the result of Article::isFileCacheable() (if true)
 &$article: article (object) being checked
 
-'IsTrustedProxy': Override the result of wfIsTrustedProxy()
+'IsTrustedProxy': Override the result of IP::isTrustedProxy()
 &$ip: IP being check
-&$result: Change this value to override the result of wfIsTrustedProxy()
+&$result: Change this value to override the result of IP::isTrustedProxy()
 
 'IsUploadAllowedFromUrl': Override the result of UploadFromUrl::isAllowedUrl()
 $url: URL used to upload from
index 3ca4984..e705dd6 100644 (file)
@@ -4093,20 +4093,6 @@ function wfIsInfinity( $str ) {
        return in_array( $str, $infinityValues );
 }
 
-/**
- * Checks if an IP is a trusted proxy provider.
- * Useful to tell if X-Forwarded-For data is possibly bogus.
- * CDN cache servers for the site are whitelisted.
- * @deprecated Since 1.24, use IP::isTrustedProxy()
- *
- * @param string $ip
- * @return bool
- */
-function wfIsTrustedProxy( $ip ) {
-       wfDeprecated( __METHOD__, '1.24' );
-       return IP::isTrustedProxy( $ip );
-}
-
 /**
  * Checks if an IP matches a proxy we've configured.
  * @deprecated Since 1.24, use IP::isConfiguredProxy()