WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36334, comment 6


Ignore:
Timestamp:
04/07/2016 12:06:11 PM (5 years ago)
Author:
mpol
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36334, comment 6

    initial v1  
    1111function gwolle_gb_rss_init(){
    1212        add_feed('gwolle_gb', 'gwolle_gb_rss');
     13        // will add it to any request
    1314        header( 'X-Test-0: Test=0' );
    1415}
     
    1718function gwolle_gb_rss_header() {
    1819        header( 'X-Test-1: Test=1' );
     20        // will add it to any request
    1921        //header('Content-Type: ' . feed_content_type('rss') . '; charset=' . get_option('blog_charset'), true);
    2022}
     
    2325function gwolle_gb_rss() {
    2426        header( 'X-Test-2: Test=2' );
     27        // does not set the header
    2528        header('Content-Type: ' . feed_content_type('rss') . '; charset=' . get_option('blog_charset'), true);
    2629}