Make WordPress Core

Ticket #25639: 25639.4.diff

File 25639.4.diff, 1.9 KB (added by kovshenin, 11 years ago)
  • src/wp-includes/feed-rssjs.php

     
    1313$json->rss->version = "2.0";
    1414$json->rss->channel = new stdClass();
    1515
    16 $json->rss->channel->title         = get_bloginfo( 'name' );
    17 $json->rss->channel->link          = get_bloginfo( 'url' );
    18 $json->rss->channel->description   = get_bloginfo( 'description' );
    19 $json->rss->channel->language      = get_bloginfo( 'language' );
     16$json->rss->channel->title         = apply_filters( 'bloginfo_rss', get_bloginfo_rss( 'name' ) );
     17$json->rss->channel->title        .= apply_filters( 'wp_title_rss', get_wp_title_rss() );
     18$json->rss->channel->link          = apply_filters( 'bloginfo_rss', get_bloginfo_rss( 'url' ) );
     19$json->rss->channel->description   = apply_filters( 'bloginfo_rss', get_bloginfo_rss( 'description' ) );
     20$json->rss->channel->language      = apply_filters( 'bloginfo_rss', get_bloginfo_rss( 'language' ) );
    2021$json->rss->channel->lastBuildDate = mysql2date( 'D, d M Y H:i:s +0000', get_lastpostmodified( 'GMT' ), false );
    2122$json->rss->channel->docs          = "http://cyber.law.harvard.edu/rss/rss.html";
    2223$json->rss->channel->generator     = 'WordPress ' . get_bloginfo( 'version' );
     
    6566
    6667        $item = new stdClass();
    6768
    68         $item->title       = get_the_title();
    69         $item->link        = get_permalink();
    70         $item->guid        = get_the_guid();
    71         $item->description = get_the_content();
     69        $item->title       = get_the_title_rss();
     70        $item->link        = apply_filters( 'the_permalink_rss', get_permalink() );
     71        $item->guid        = esc_url( get_the_guid() );
     72        $item->description = apply_filters( 'the_content_feed', apply_filters( 'the_content', get_the_content() ) );
    7273        $item->pubDate     = mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false );
    7374
    7475        /*