WordPress.org

Make WordPress Core

Ticket #3768: example.diff

File example.diff, 721 bytes (added by robertaccettura, 11 years ago)

Example applied to rss2

  • wp-rss2.php

    old new  
    1212<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    1313
    1414<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" -->
     15<?php do_action('rss2_root'); ?>
    1516<rss version="2.0"
    1617       xmlns:content="http://purl.org/rss/1.0/modules/content/"
    1718       xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    1819       xmlns:dc="http://purl.org/dc/elements/1.1/"
    1920       <?php do_action('rss2_ns'); ?>
    2021>
    21 
     22<?php do_action('rss2_rss'); ?>
    2223<channel>
    2324       <title><?php bloginfo_rss('name'); ?></title>
    2425       <link><?php bloginfo_rss('url') ?></link>