Changeset 32994 for trunk/src/wp-includes/feed.php
- Timestamp:
- 06/29/2015 12:57:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed.php
r32940 r32994 589 589 590 590 /** 591 * Display Site Icon in atom feeds. 592 * 593 * @since 4.3.0 594 */ 595 function atom_site_icon() { 596 $url = get_site_icon_url( null, 32 ); 597 if ( $url ) { 598 echo "<icon>$url</icon>\n"; 599 } 600 } 601 602 /** 603 * Display Site Icon in RSS2. 604 * 605 * @since 4.3.0 606 */ 607 function rss2_site_icon() { 608 $rss_title = get_wp_title_rss(); 609 if ( empty( $rss_title ) ) { 610 $rss_title = get_bloginfo_rss( 'name' ); 611 } 612 613 $url = get_site_icon_url( null, 32 ); 614 if ( $url ) { 615 echo ' 616 <image> 617 <url>' . convert_chars( $url ) . '</url> 618 <title>' . $rss_title . '</title> 619 <link>' . get_bloginfo_rss( 'url' ) . '</link> 620 <width>32</width> 621 <height>32</height> 622 </image> ' . "\n"; 623 } 624 } 625 626 /** 591 627 * Display the link for the currently displayed feed in a XSS safe way. 592 628 *
Note: See TracChangeset
for help on using the changeset viewer.