Make WordPress Core

Changeset 45753


Ignore:
Timestamp:
08/05/2019 01:14:25 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Props abhijitrakas, shawfactor.
Fixes #47482.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed.php

    r45739 r45753  
    588588    $url = get_site_icon_url( 32 );
    589589    if ( $url ) {
    590         echo "<icon>$url</icon>\n";
     590        echo '<icon>' . convert_chars( $url ) . "</icon>\n";
    591591    }
    592592}
Note: See TracChangeset for help on using the changeset viewer.