Make WordPress Core


Ignore:
Timestamp:
07/07/2014 10:17:44 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Introduce 'rss_tag_pre' action, which fires between the xml and rss tags in a feed.

props solarissmoke, wonderboymusic, DrewAPicture.
fixes #19017.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-atom-comments.php

    r26863 r29014  
    88header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true);
    99echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '" ?' . '>';
     10
     11/** This action is documented in wp-includes/feed-rss2.php */
     12do_action( 'rss_tag_pre', 'atom-comments' );
    1013?>
    1114<feed
     
    1316    xml:lang="<?php bloginfo_rss( 'language' ); ?>"
    1417    xmlns:thr="http://purl.org/syndication/thread/1.0"
    15     <?php 
     18    <?php
    1619        /** This action is documented in wp-includes/feed-atom.php */
    17         do_action( 'atom_ns' ); 
    18        
     20        do_action( 'atom_ns' );
     21
    1922        /**
    2023         * Fires inside the feed tag in the Atom comment feed.
     
    5053    <id><?php bloginfo_rss('comments_atom_url'); ?></id>
    5154<?php } ?>
    52 <?php 
     55<?php
    5356    /**
    5457     * Fires at the end of the Atom comment feed header.
Note: See TracChangeset for help on using the changeset viewer.