WordPress.org

Make WordPress Core

Changeset 2625


Ignore:
Timestamp:
06/10/2005 06:45:39 PM (14 years ago)
Author:
matt
Message:

Adding hooks in syndication feeds.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-atom.php

    r2593 r2625  
    1717  xmlns:dc="http://purl.org/dc/elements/1.1/"
    1818  xml:lang="<?php echo get_option('rss_language'); ?>"
     19  <?php do_action('atom_ns'); ?>
    1920  >
    2021    <title><?php bloginfo_rss('name') ?></title>
     
    2425    <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright>
    2526    <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
    26    
     27    <?php do_action('atom_head'); ?>
    2728    <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
    2829    <entry>
     
    4142<?php endif; ?>
    4243<?php rss_enclosure(); ?>
     44<?php do_action('atom_entry'); ?>
    4345    </entry>
    4446    <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
  • trunk/wp-rdf.php

    r2366 r2625  
    2121    xmlns:admin="http://webns.net/mvcb/"
    2222    xmlns:content="http://purl.org/rss/1.0/modules/content/"
     23    <?php do_action('rdf_ns'); ?>
    2324>
    2425<channel rdf:about="<?php bloginfo_rss("url") ?>">
     
    3132    <sy:updateFrequency>1</sy:updateFrequency>
    3233    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
     34    <?php do_action('rdf_header'); ?>
    3335    <items>
    3436        <rdf:Seq>
     
    5254    <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
    5355<?php endif; ?>
    54    
     56    <?php do_action('rdf_item'); ?>
    5557</item>
    5658<?php } }  ?>
  • trunk/wp-rss.php

    r2366 r2625  
    2222    <docs>http://backend.userland.com/rss092</docs>
    2323    <language><?php echo get_option('rss_language'); ?></language>
     24    <?php do_action('rss_head'); ?>
    2425
    2526<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     
    3233<?php } ?>
    3334        <link><?php permalink_single_rss() ?></link>
     35        <?php do_action('rss_item'); ?>
    3436    </item>
    3537<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
  • trunk/wp-rss2.php

    r2374 r2625  
    1919    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    2020    xmlns:dc="http://purl.org/dc/elements/1.1/"
     21    <?php do_action('rss2_ns'); ?>
    2122>
    2223
     
    2829    <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
    2930    <language><?php echo get_option('rss_language'); ?></language>
    30 
     31    <?php do_action('rss2_head'); ?>
    3132    <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
    3233    <item>
     
    5152        <wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
    5253<?php rss_enclosure(); ?>
     54    <?php do_action('rss2_item'); ?>
    5355    </item>
    5456    <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
Note: See TracChangeset for help on using the changeset viewer.