From 8cdec436756275bf24bf6746b2d7d4eacf9625dd Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Sat, 19 Mar 2022 20:31:12 +0000
Subject: [PATCH] Coding Standards: Use `esc_url()` instead of `esc_attr()` for
some URLs.
Follow-up to [2063], [2182], [4656], [6952], [9098], [11109], [11204], [17887], [22505],
Props kebbet.
See #54728.
Built from https://develop.svn.wordpress.org/trunk@52957
git-svn-id: http://core.svn.wordpress.org/trunk@52546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
.../includes/class-custom-image-header.php | 20 +++++++++----------
.../includes/class-wp-comments-list-table.php | 2 +-
wp-admin/includes/dashboard.php | 2 +-
wp-includes/media.php | 2 +-
wp-includes/version.php | 2 +-
wp-links-opml.php | 2 +-
6 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/wp-admin/includes/class-custom-image-header.php b/wp-admin/includes/class-custom-image-header.php
index c7ff42ab07..074ce53be3 100644
--- a/wp-admin/includes/class-custom-image-header.php
+++ b/wp-admin/includes/class-custom-image-header.php
@@ -651,21 +651,19 @@ class Custom_Image_Header {
'custom-header',
- 'step' => 2,
- '_wpnonce-custom-header-upload' => wp_create_nonce( 'custom-header-upload' ),
- ),
- admin_url( 'themes.php' )
- )
- );
+ $modal_update_href = add_query_arg(
+ array(
+ 'page' => 'custom-header',
+ 'step' => 2,
+ '_wpnonce-custom-header-upload' => wp_create_nonce( 'custom-header-upload' ),
+ ),
+ admin_url( 'themes.php' )
+ );
?>
diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php
index d806262a27..6ecccf637b 100644
--- a/wp-admin/includes/class-wp-comments-list-table.php
+++ b/wp-admin/includes/class-wp-comments-list-table.php
@@ -919,7 +919,7 @@ class WP_Comments_List_Table extends WP_List_Table {
comment_author_email ); ?>
comment_author ); ?>
- comment_author_url ); ?>
+ comment_author_url ); ?>
';
+ $notice .= '';
$browser_nag_class = ' has-browser-icon';
}
$notice .= "{$msg}
";
diff --git a/wp-includes/media.php b/wp-includes/media.php
index b3204c2799..a0e7ef9c6c 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -393,7 +393,7 @@ function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) {
*/
$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );
- $html = '';
+ $html = '';
/**
* Filters the HTML content for the image tag.
diff --git a/wp-includes/version.php b/wp-includes/version.php
index daafcf3f66..5ad3a66826 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.0-alpha-52956';
+$wp_version = '6.0-alpha-52957';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff --git a/wp-links-opml.php b/wp-links-opml.php
index 9739a9a767..ca43c3d43c 100644
--- a/wp-links-opml.php
+++ b/wp-links-opml.php
@@ -80,7 +80,7 @@ foreach ( (array) $cats as $cat ) :
*/
$title = apply_filters( 'link_title', $bookmark->link_name );
?>
-" type="link" xmlUrl="link_rss ); ?>" htmlUrl="link_url ); ?>" updated="
link_updated ) {
echo $bookmark->link_updated;}