WordPress.org

Make WordPress Core

Ticket #4967: 4967.diff

File 4967.diff, 1.5 KB (added by Otto42, 8 years ago)

Patch for trunk to remove rss and rdf feeds

  • wp-includes/default-filters.php

     
    190190        add_action( 'sanitize_comment_cookies', 'wp_cron' );
    191191
    192192// 2 Actions 2 Furious
    193 add_action( 'do_feed_rdf',                'do_feed_rdf',             10, 1 );
    194 add_action( 'do_feed_rss',                'do_feed_rss',             10, 1 );
     193add_action( 'do_feed_rdf',                'do_feed_rss2',            10, 1 );
     194add_action( 'do_feed_rss',                'do_feed_rss2',            10, 1 );
    195195add_action( 'do_feed_rss2',               'do_feed_rss2',            10, 1 );
    196196add_action( 'do_feed_atom',               'do_feed_atom',            10, 1 );
    197197add_action( 'do_pings',                   'do_all_pings',            10, 1 );
  • wp-includes/functions.php

     
    16521652}
    16531653
    16541654/**
    1655  * Load the RDF RSS 0.91 Feed template.
    1656  *
    1657  * @since 2.1.0
    1658  */
    1659 function do_feed_rdf() {
    1660         load_template( ABSPATH . WPINC . '/feed-rdf.php' );
    1661 }
    1662 
    1663 /**
    1664  * Load the RSS 1.0 Feed Template
    1665  *
    1666  * @since 2.1.0
    1667  */
    1668 function do_feed_rss() {
    1669         load_template( ABSPATH . WPINC . '/feed-rss.php' );
    1670 }
    1671 
    1672 /**
    16731655 * Load either the RSS2 comment feed or the RSS2 posts feed.
    16741656 *
    16751657 * @since 2.1.0