Linkback plugin does pingback by default

We do pingback by default for the linkback plugin.
This commit is contained in:
Evan Prodromou 2009-03-28 17:11:21 -04:00
parent d1f2e68133
commit a4919eab6a
1 changed files with 6 additions and 5 deletions

View File

@ -105,12 +105,13 @@ class LinkbackPlugin extends Plugin
$pb = $match[1];
}
$tb = $this->getTrackback($result->body, $result->final_url);
if (!empty($tb)) {
$this->trackback($result->final_url, $tb);
} else if (!empty($pb)) {
if (!empty($pb)) {
$this->pingback($result->final_url, $pb);
} else {
$tb = $this->getTrackback($result->body, $result->final_url);
if (!empty($tb)) {
$this->trackback($result->final_url, $tb);
}
}
return $orig;