post_status ) {
- $preview_link = clean_url(get_permalink($post->ID));
+ $preview_link = esc_url(get_permalink($post->ID));
$preview_button = __('Preview Changes');
} else {
- $preview_link = clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))));
+ $preview_link = esc_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))));
$preview_button = __('Preview');
}
?>
@@ -420,7 +420,7 @@ if (isset($mode) && 'bookmarklet' == $mode)
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index f0667433a4..eb6b9f1c49 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -251,8 +251,8 @@ do_action('restrict_manage_posts');
diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php
index 759d9129d9..bfebe718b9 100644
--- a/wp-admin/import/livejournal.php
+++ b/wp-admin/import/livejournal.php
@@ -186,7 +186,7 @@ class LJ_API_Import {
-
+
@@ -724,7 +724,7 @@ class LJ_API_Import {
if ( empty( $this->username ) || empty( $this->password ) ) {
?>
and password so we can download your posts and comments.' ) ?>
-
+
-
+
link_url = clean_url( $_GET['linkurl']);
+ $link->link_url = esc_url( $_GET['linkurl']);
else
$link->link_url = '';
diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
index 9cb623133e..9d3bb660c2 100644
--- a/wp-admin/includes/class-wp-upgrader.php
+++ b/wp-admin/includes/class-wp-upgrader.php
@@ -932,7 +932,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$stylesheet = $this->upgrader->result['destination_name'];
$template = !empty($theme_info['Template']) ? $theme_info['Template'] : $stylesheet;
- $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), trailingslashit(clean_url(get_option('home'))) ) );
+ $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), trailingslashit(esc_url(get_option('home'))) ) );
$activate_link = wp_nonce_url("themes.php?action=activate&template=" . urlencode($template) . "&stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template);
$install_actions = array(
@@ -991,7 +991,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
$stylesheet = $this->upgrader->result['destination_name'];
$template = !empty($theme_info['Template']) ? $theme_info['Template'] : $stylesheet;
- $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), trailingslashit(clean_url(get_option('home'))) ) );
+ $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), trailingslashit(esc_url(get_option('home'))) ) );
$activate_link = wp_nonce_url("themes.php?action=activate&template=" . urlencode($template) . "&stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template);
$update_actions = array(
diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php
index fa9c8588c2..56e181afe6 100644
--- a/wp-admin/includes/comment.php
+++ b/wp-admin/includes/comment.php
@@ -89,7 +89,7 @@ function get_comment_to_edit( $id ) {
$comment->comment_author = format_to_edit( $comment->comment_author );
$comment->comment_author_email = format_to_edit( $comment->comment_author_email );
- $comment->comment_author_url = clean_url($comment->comment_author_url);
+ $comment->comment_author_url = esc_url($comment->comment_author_url);
$comment->comment_author_url = format_to_edit( $comment->comment_author_url );
return $comment;
diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index a41e247c93..30f8a0293b 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -115,12 +115,12 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
$wp_dashboard_control_callbacks[$widget_id] = $control_callback;
if ( isset( $_GET['edit'] ) && $widget_id == $_GET['edit'] ) {
list($url) = explode( '#', add_query_arg( 'edit', false ), 2 );
- $widget_name .= '
' . __( 'Cancel' ) . '';
+ $widget_name .= '
' . __( 'Cancel' ) . '';
add_meta_box( $widget_id, $widget_name, '_wp_dashboard_control_callback', 'dashboard', 'normal', 'core' );
return;
}
list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
- $widget_name .= '
' . __( 'Configure' ) . '';
+ $widget_name .= '
' . __( 'Configure' ) . '';
}
$side_widgets = array('dashboard_quick_press', 'dashboard_recent_drafts', 'dashboard_primary', 'dashboard_secondary');
$location = 'normal';
@@ -357,14 +357,14 @@ function wp_dashboard_quick_press() {
$drafts = false;
if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) {
$view = get_permalink( $_POST['post_ID'] );
- $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) );
+ $edit = esc_url( get_edit_post_link( $_POST['post_ID'] ) );
if ( 'post-quickpress-publish' == $_POST['action'] ) {
if ( current_user_can('publish_posts') )
- printf( '
', clean_url( $view ), $edit );
+ printf( '
', esc_url( $view ), $edit );
else
- printf( '
', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit );
+ printf( '
', esc_url( add_query_arg( 'preview', 1, $view ) ), $edit );
} else {
- printf( '
', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit );
+ printf( '
', esc_url( add_query_arg( 'preview', 1, $view ) ), $edit );
$drafts_query = new WP_Query( array(
'post_type' => 'post',
'post_status' => 'draft',
@@ -384,7 +384,7 @@ function wp_dashboard_quick_press() {
$post = get_default_post_to_edit();
?>
-