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