| @@ -1,15 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * Renders an Atom feed of records. | |
| 4 | - * | |
| 5 | - * @package WP_Stream | |
| 6 | - */ | |
| 7 | - | |
| 8 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | - exit; | |
| 10 | -} | |
| 11 | - | |
| 12 | 2 | header( 'Content-Type: ' . feed_content_type( 'atom' ) . '; charset=' . get_option( 'blog_charset' ), true ); |
| 13 | 3 | printf( '<?xml version="1.0" encoding="%s"?>', esc_attr( get_option( 'blog_charset' ) ) ); |
| 14 | 4 | ?> |
| 15 | 5 | |
| @@ -39,9 +29,9 @@ | ||
| 39 | 29 | $author = get_userdata( $record->author ); |
| 40 | 30 | $display_name = isset( $author->display_name ) ? $author->display_name : 'N/A'; |
| 41 | 31 | ?> |
| 42 | 32 | <entry> |
| 43 | - <title type="html"><![CDATA[[<?php echo esc_html( $domain ); ?>] <?php echo esc_html( $record->summary ); ?> ]]></title> | |
| 33 | + <title type="html"><![CDATA[[<?php echo esc_html( $domain ); ?>] <?php echo esc_html( $record->summary ); // xss ok ?> ]]></title> | |
| 44 | 34 | <link href="<?php echo esc_url( $record_link ); ?>" /> |
| 45 | 35 | <updated><?php echo esc_html( mysql2date( 'c', $record->created, false ) ); ?></updated> |
| 46 | 36 | <author> |
| 47 | 37 | <name><?php echo esc_html( $display_name ); ?></name> |