Feeds: Escape `&` characters in `atom_site_icon()` for XML, for consistency with `rss2_site_icon()`.

Props abhijitrakas, shawfactor.
Fixes #47482.

git-svn-id: https://develop.svn.wordpress.org/trunk@45753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-08-05 13:14:25 +00:00
parent 7b11f12d96
commit 9bb2eea37a
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ function prep_atom_text_construct( $data ) {
function atom_site_icon() {
$url = get_site_icon_url( 32 );
if ( $url ) {
echo "<icon>$url</icon>\n";
echo '<icon>' . convert_chars( $url ) . "</icon>\n";
}
}