Changeset 204729
- Timestamp:
- 02/12/2010 11:45:58 PM (16 years ago)
- Location:
- pubsubhubbub/trunk
- Files:
-
- 5 added
- 2 edited
-
pubsubhubbub.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
tags/1.4 (added)
-
tags/1.4/publisher.php (added)
-
tags/1.4/pubsubhubbub.php (added)
-
tags/1.4/readme.txt (added)
-
tags/1.4/screenshot-1.png (added)
Legend:
- Unmodified
- Added
- Removed
-
pubsubhubbub/trunk/pubsubhubbub.php
r197282 r204729 13 13 14 14 // function that is called whenever a new post is published 15 function publish_to_hub($post_id) { 15 // the ability for other plugins to hook into the PuSH code was added by Stephen Paul Weber (http://singpolyma.net) 16 function publish_to_hub($post_id,$feed_urls=NULL) { 16 17 17 18 // we want to notify the hub for every feed 18 $feed_urls = array(); 19 $feed_urls[] = get_bloginfo('atom_url'); 20 $feed_urls[] = get_bloginfo('rss_url'); 21 $feed_urls[] = get_bloginfo('rdf_url'); 22 $feed_urls[] = get_bloginfo('rss2_url'); 19 if(!$feed_urls) { 20 $feed_urls = array(); 21 $feed_urls[] = get_bloginfo('atom_url'); 22 $feed_urls[] = get_bloginfo('rss_url'); 23 $feed_urls[] = get_bloginfo('rdf_url'); 24 $feed_urls[] = get_bloginfo('rss2_url'); 25 } 23 26 // remove dups (ie. they all point to feedburner) 24 27 $feed_urls = array_unique($feed_urls); -
pubsubhubbub/trunk/readme.txt
r198444 r204729 15 15 This plugin: 16 16 17 * Supports multi-user installations (NEW!)17 * Supports multi-user installations 18 18 * Supports multiple hubs 19 * Offers hooks for other plugin developers to add PuSH support to their own custom feeds (NEW!) 19 20 * Supports all of the feed formats used by WordPress, not just ATOM and RSS2 20 21 * Announces which hubs you are using by adding `<link rel="hub" ...>` declarations to your template header and ATOM feed
Note: See TracChangeset
for help on using the changeset viewer.