Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()

git-svn-id: http://svn.automattic.com/wordpress/trunk@11383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2009-05-18 16:00:33 +00:00
parent 05c7b40a29
commit 3ebf837ced
45 changed files with 159 additions and 121 deletions

View File

@@ -57,7 +57,7 @@ $step = (int) $step;
switch ( $step ) :
case 0:
$goback = stripslashes( wp_get_referer() );
$goback = clean_url( $goback, null, 'url' );
$goback = esc_url_raw( $goback );
$goback = urlencode( $goback );
?>
<h2><?php _e( 'Database Upgrade Required' ); ?></h2>
@@ -73,7 +73,7 @@ switch ( $step ) :
$backto = __get_option( 'home' ) . '/';
else {
$backto = stripslashes( urldecode( $_GET['backto'] ) );
$backto = clean_url( $backto, null, 'url' );
$backto = esc_urlaw( $backto );
}
?>
<h2><?php _e( 'Upgrade Complete' ); ?></h2>