diff --git a/src/wp-includes/rss.php b/src/wp-includes/rss.php
index 7759003..1de6dc0 100644
a
|
b
|
function wp_rss( $url, $num_items = -1 ) { |
886 | 886 | } |
887 | 887 | |
888 | 888 | foreach ( (array) $rss->items as $item ) { |
889 | | printf( |
| 889 | $item_output = sprintf( |
890 | 890 | '<li><a href="%1$s" title="%2$s">%3$s</a></li>', |
891 | 891 | esc_url( $item['link'] ), |
892 | 892 | esc_attr( strip_tags( $item['description'] ) ), |
893 | 893 | esc_html( $item['title'] ) |
894 | 894 | ); |
| 895 | |
| 896 | echo apply_filters( 'rss_item_output', $item_output, $item ); |
895 | 897 | } |
896 | 898 | |
897 | 899 | echo '</ul>'; |
… |
… |
if ( !function_exists('get_rss') ) : |
921 | 923 | function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS |
922 | 924 | $rss = fetch_rss($url); |
923 | 925 | if ( $rss ) { |
924 | | $rss->items = array_slice($rss->items, 0, $num_items); |
| 926 | $rss->items = array_slice( $rss->items, 0, $num_items ); |
925 | 927 | foreach ( (array) $rss->items as $item ) { |
926 | | echo "<li>\n"; |
927 | | echo "<a href='$item[link]' title='$item[description]'>"; |
928 | | echo esc_html($item['title']); |
929 | | echo "</a><br />\n"; |
930 | | echo "</li>\n"; |
| 928 | $item_output = sprintf( |
| 929 | '<li><a href="%1$s" title="%2$s">%3$s</a></li>', |
| 930 | esc_url( $item['link'] ), |
| 931 | esc_attr( strip_tags( $item['description'] ) ), |
| 932 | esc_html( $item['title'] ) |
| 933 | ); |
| 934 | |
| 935 | echo apply_filters( 'rss_item_output', $item_output, $item ); |
931 | 936 | } |
932 | 937 | } else { |
933 | 938 | return false; |