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