rss2_site_icon

Displays Site Icon in RSS2.

Description

rss2_site_icon(); 

Usage

  1. if ( !function_exists( 'rss2_site_icon' ) ) { 
  2. require_once ABSPATH . WPINC . '/feed.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rss2_site_icon(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/feed.php  
  1. function rss2_site_icon() { 
  2. $rss_title = get_wp_title_rss(); 
  3. if ( empty( $rss_title ) ) { 
  4. $rss_title = get_bloginfo_rss( 'name' ); 
  5.  
  6. $url = get_site_icon_url( 32 ); 
  7. if ( $url ) { 
  8. echo ' 
  9. <image> 
  10. <url>' . convert_chars( $url ) . '</url> 
  11. <title>' . $rss_title . '</title> 
  12. <link>' . get_bloginfo_rss( 'url' ) . '</link> 
  13. <width>32</width> 
  14. <height>32</height> 
  15. </image> ' . "\n";