r105921 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105920‎ | r105921 | r105922 >
Date:19:23, 12 December 2011
Author:dantman
Status:ok
Tags:
Comment:
Deprecate the escape methods in Title.
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1204,6 +1204,7 @@
12051205 * @return String the text, including any prefixes
12061206 */
12071207 public function getEscapedText() {
 1208+ wfDeprecated( __METHOD__, '1.19' );
12081209 return htmlspecialchars( $this->getPrefixedText() );
12091210 }
12101211
@@ -1406,6 +1407,7 @@
14071408 * @return String the URL
14081409 */
14091410 public function escapeLocalURL( $query = '', $query2 = false ) {
 1411+ wfDeprecated( __METHOD__, '1.19' );
14101412 return htmlspecialchars( $this->getLocalURL( $query, $query2 ) );
14111413 }
14121414
@@ -1417,6 +1419,7 @@
14181420 * @return String the URL
14191421 */
14201422 public function escapeFullURL( $query = '', $query2 = false ) {
 1423+ wfDeprecated( __METHOD__, '1.19' );
14211424 return htmlspecialchars( $this->getFullURL( $query, $query2 ) );
14221425 }
14231426

Follow-up revisions

RevisionCommit summaryAuthorDate
r105923Followup r105921, RELEASE-NOTES.dantman19:37, 12 December 2011

Status & tagging log