Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/258892

Change subject: Remove wfGetIP(), deprecated since 1.19
......................................................................

Remove wfGetIP(), deprecated since 1.19

No remaining usage:
https://github.com/search?q=%40wikimedia+wfGetIP&type=Code&utf8=%E2%9C%93

Change-Id: I3b8f4b034e23a56f586993549cc5460b28bf6fa7
---
M includes/GlobalFunctions.php
1 file changed, 0 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/92/258892/1

diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php
index 603d259..3ca4984 100644
--- a/includes/GlobalFunctions.php
+++ b/includes/GlobalFunctions.php
@@ -4094,19 +4094,6 @@
 }
 
 /**
- * Work out the IP address based on various globals
- * For trusted proxies, use the XFF client IP (first of the chain)
- *
- * @deprecated since 1.19; call $wgRequest->getIP() directly.
- * @return string
- */
-function wfGetIP() {
-       wfDeprecated( __METHOD__, '1.19' );
-       global $wgRequest;
-       return $wgRequest->getIP();
-}
-
-/**
  * 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.

-- 
To view, visit https://gerrit.wikimedia.org/r/258892
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b8f4b034e23a56f586993549cc5460b28bf6fa7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to