deprecated.php 803 Bytes
Newer Older
lucha's avatar
lucha committed
1
2
3
4
5
6
7
8
<?php
/**
 * Beeing backwards compatible
 * based on a fix by Stephen Paul Weber (http://singpolyma.net)
 *
 * @deprecated
 */
function publish_to_hub( $deprecated = null, $feed_urls ) {
lucha's avatar
lucha committed
9
	PubSubHubbub_Publisher::publish_to_hub( $feed_urls );
lucha's avatar
lucha committed
10
11
12
13
14
15
16
17
18
19
}

/**
 * The ability for other plugins to hook into the PuSH code
 *
 * @param array $feed_urls a list of feed urls you want to publish
 *
 * @deprecated
 */
function pshb_publish_to_hub( $feed_urls ) {
lucha's avatar
lucha committed
20
	PubSubHubbub_Publisher::publish_to_hub( $feed_urls );
lucha's avatar
lucha committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
}

/**
 * Map old filter to new filter
 *
 * @param array $feed_urls the list of feed urls
 *
 * @return array filtered list
 *
 * @deprecated
 */
function pshb_feed_urls( $feed_urls ) {
	return apply_filters( 'pshb_feed_urls', $feed_urls );
}
add_filter( 'pubsubhubbub_feed_urls', 'pshb_feed_urls' );