s/esc_url_raw/esc_url/. Props duck_.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca26b494da
commit
05f63a579b
|
@ -73,7 +73,7 @@ $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>='
|
||||||
switch ( $step ) :
|
switch ( $step ) :
|
||||||
case 0:
|
case 0:
|
||||||
$goback = stripslashes( wp_get_referer() );
|
$goback = stripslashes( wp_get_referer() );
|
||||||
$goback = esc_url_raw( $goback );
|
$goback = esc_url( $goback );
|
||||||
$goback = urlencode( $goback );
|
$goback = urlencode( $goback );
|
||||||
?>
|
?>
|
||||||
<h2><?php _e( 'Database Update Required' ); ?></h2>
|
<h2><?php _e( 'Database Update Required' ); ?></h2>
|
||||||
|
@ -86,7 +86,7 @@ switch ( $step ) :
|
||||||
wp_upgrade();
|
wp_upgrade();
|
||||||
|
|
||||||
$backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/';
|
$backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/';
|
||||||
$backto = esc_url_raw( $backto );
|
$backto = esc_url( $backto );
|
||||||
$backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
|
$backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
|
||||||
?>
|
?>
|
||||||
<h2><?php _e( 'Update Complete' ); ?></h2>
|
<h2><?php _e( 'Update Complete' ); ?></h2>
|
||||||
|
|
|
@ -2413,7 +2413,7 @@ function wp_shortlink_wp_head() {
|
||||||
if ( empty( $shortlink ) )
|
if ( empty( $shortlink ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
echo "<link rel='shortlink' href='" . esc_url_raw( $shortlink ) . "' />\n";
|
echo "<link rel='shortlink' href='" . esc_url( $shortlink ) . "' />\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue