Add additional esc_url to feeds

This commit is contained in:
Tetrakern 2024-07-05 14:27:07 +02:00
parent 8370d3c537
commit 7dd4692a47
2 changed files with 4 additions and 4 deletions

View File

@ -108,12 +108,12 @@ do_action( 'rss_tag_pre', 'rss2' );
?>
<?php if ( has_site_icon() ) : ?>
<webfeeds:icon><?php echo get_site_icon_url(); ?></webfeeds:icon>
<webfeeds:icon><?php echo esc_url( get_site_icon_url() ); ?></webfeeds:icon>
<?php endif; ?>
<?php if ( get_option( 'site_icon', false ) ) : ?>
<image>
<url><?php echo get_site_icon_url( 32 ); ?></url>
<url><?php echo esc_url( get_site_icon_url( 32 ) ); ?></url>
<title><?php echo $title; ?></title>
<link><?php bloginfo_rss( 'url' ); ?></link>
<width>32</width>

View File

@ -84,12 +84,12 @@ do_action( 'rss_tag_pre', 'rss2' );
<?php endif; ?>
<?php if ( has_site_icon() ) : ?>
<webfeeds:icon><?php echo get_site_icon_url(); ?></webfeeds:icon>
<webfeeds:icon><?php echo esc_url( get_site_icon_url() ); ?></webfeeds:icon>
<?php endif; ?>
<?php if ( get_option( 'site_icon', false ) ) : ?>
<image>
<url><?php echo get_site_icon_url( 32 ); ?></url>
<url><?php echo esc_url( get_site_icon_url( 32 ) ); ?></url>
<title><?php echo $title; ?></title>
<link><?php bloginfo_rss( 'url' ); ?></link>
<width>32</width>