From 0ffccfcb694ccb453f5f9b5163d30b37ca8257d0 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Mon, 12 Dec 2011 19:23:38 +0000 Subject: [PATCH] Deprecate the escape methods in Title. --- includes/Title.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Title.php b/includes/Title.php index edbd4c2f62..6b4aad9058 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1204,6 +1204,7 @@ class Title { * @return String the text, including any prefixes */ public function getEscapedText() { + wfDeprecated( __METHOD__, '1.19' ); return htmlspecialchars( $this->getPrefixedText() ); } @@ -1406,6 +1407,7 @@ class Title { * @return String the URL */ public function escapeLocalURL( $query = '', $query2 = false ) { + wfDeprecated( __METHOD__, '1.19' ); return htmlspecialchars( $this->getLocalURL( $query, $query2 ) ); } @@ -1417,6 +1419,7 @@ class Title { * @return String the URL */ public function escapeFullURL( $query = '', $query2 = false ) { + wfDeprecated( __METHOD__, '1.19' ); return htmlspecialchars( $this->getFullURL( $query, $query2 ) ); } -- 2.20.1