Forum Replies Created

Viewing 1 replies (of 1 total)
  • It’s probably JetPack. See jetpack/modules/enhanced-distribution.php

    
    add_action( 'rss_head',  'jetpack_enhanced_distribution_feed_id' );
    add_action( 'rss_item',  'jetpack_enhanced_distribution_post_id' );
    add_action( 'rss2_head', 'jetpack_enhanced_distribution_feed_id' );
    add_action( 'rss2_item', 'jetpack_enhanced_distribution_post_id' );
    
    function jetpack_enhanced_distribution_feed_id(){
    	(int) $id = Jetpack_Options::get_option( 'id' );
    	if ( $id > 0 ) {
    		$output = sprintf( '<site xmlns="com-wordpress:feed-additions:1">%d</site>', $id );
    		echo $output;
    	}
    }
    
    function jetpack_enhanced_distribution_post_id(){
    	$id = get_the_ID();
    	if ( $id ) {
    		$output = sprintf( '<post-id xmlns="com-wordpress:feed-additions:1">%d</post-id>', $id );
    		echo $output;
    	}
    }
    
Viewing 1 replies (of 1 total)