Changeset 5776

Show
Ignore:
Timestamp:
07/03/07 18:10:20 (1 year ago)
Author:
markjaquith
Message:

Make it possible for a plugin to replace the feed-parsing engine. see: #4547

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/rss.php

    r5698 r5776  
    11<?php 
     2do_action('load_feed_engine'); 
     3 
    24/* 
    35 * Project:     MagpieRSS: a simple RSS integration tool 
     
    776778} 
    777779 
     780if ( !function_exists('parse_w3cdtf') ) : 
    778781function parse_w3cdtf ( $date_str ) { 
    779782 
     
    817820    } 
    818821} 
    819  
     822endif; 
     823 
     824if ( !function_exists('wp_rss') ) : 
    820825function wp_rss( $url, $num_items = -1 ) { 
    821826    if ( $rss = fetch_rss( $url ) ) { 
     
    840845    } 
    841846} 
    842  
     847endif; 
     848 
     849if ( !function_exists('get_rss') ) : 
    843850function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS 
    844851    $rss = fetch_rss($url); 
     
    856863    } 
    857864} 
     865endif; 
     866 
    858867?>