Remove wfIsTrustedProxy(), deprecated since 1.24

No usage outside of core:
https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+wfIsTrustedProxy&type=Code&ref=searchresults

Change-Id: I86439a772e036dcd5ebdd8b16010c7bacfd9463b
This commit is contained in:
Ori Livneh 2015-12-13 13:56:56 -08:00 committed by Reedy
parent c0238a6b76
commit cd78210ee7
2 changed files with 2 additions and 16 deletions

View 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

View 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()