From d5fc1647c0ac31cb3316058c886701e6594e5dd2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Aug 2019 13:15:56 +0000 Subject: [PATCH] Feeds: Escape `&` characters in `atom_site_icon()` for XML, for consistency with `rss2_site_icon()`. Props abhijitrakas, shawfactor. Fixes #47482. Built from https://develop.svn.wordpress.org/trunk@45753 git-svn-id: http://core.svn.wordpress.org/trunk@45564 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index d01fba7c8b..7b4046b22a 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -587,7 +587,7 @@ function prep_atom_text_construct( $data ) { function atom_site_icon() { $url = get_site_icon_url( 32 ); if ( $url ) { - echo "$url\n"; + echo '' . convert_chars( $url ) . "\n"; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6f668f4937..419523cb78 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45752'; +$wp_version = '5.3-alpha-45753'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.