Skip to content
Permalink
Browse files

Feeds: Escape `&` characters in `atom_site_icon()` for XML, for consi…

…stency with `rss2_site_icon()`.

Props abhijitrakas, shawfactor.
Fixes #47482.

git-svn-id: https://develop.svn.wordpress.org/trunk@45753 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 5, 2019
1 parent 7b11f12 commit 9bb2eea37a3b6a45e630aeeec4b77a252eac053b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/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 "<icon>$url</icon>\n";
echo '<icon>' . convert_chars( $url ) . "</icon>\n";
}
}

0 comments on commit 9bb2eea

Please sign in to comment.
You can’t perform that action at this time.