generic_ping() improvements from fitztrev. fixes #5855
git-svn-id: http://svn.automattic.com/wordpress/trunk@6853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ab3dab56b0
commit
1857fc1627
|
@ -1061,11 +1061,11 @@ function do_trackbacks($post_id) {
|
|||
*/
|
||||
function generic_ping($post_id = 0) {
|
||||
$services = get_option('ping_sites');
|
||||
$services = preg_replace("|(\s)+|", '$1', $services); // Kill dupe lines
|
||||
$services = trim($services);
|
||||
if ( '' != $services ) {
|
||||
$services = explode("\n", $services);
|
||||
foreach ( (array) $services as $service )
|
||||
|
||||
$services = explode("\n", $services);
|
||||
foreach ( (array) $services as $service ) {
|
||||
$service = trim($service);
|
||||
if ( '' != $service )
|
||||
weblog_ping($service);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue