wp/wp-includes/feed-atom.php
changeset 22 8c2e4d02f4ef
parent 19 3d72ae0968f4
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
     2 /**
     2 /**
     3  * Atom Feed Template for displaying Atom Posts feed.
     3  * Atom Feed Template for displaying Atom Posts feed.
     4  *
     4  *
     5  * @package WordPress
     5  * @package WordPress
     6  */
     6  */
       
     7 
       
     8 // Don't load directly.
       
     9 if ( ! defined( 'ABSPATH' ) ) {
       
    10 	die( '-1' );
       
    11 }
     7 
    12 
     8 header( 'Content-Type: ' . feed_content_type( 'atom' ) . '; charset=' . get_option( 'blog_charset' ), true );
    13 header( 'Content-Type: ' . feed_content_type( 'atom' ) . '; charset=' . get_option( 'blog_charset' ), true );
     9 $more = 1;
    14 $more = 1;
    10 
    15 
    11 echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>';
    16 echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>';