Version 0.9 ()
------------------------------------------------------------------------
+ * Added new event hook to the trackback sending facility so that
+ plugins like serendipity_event_trackback (additional_plugins)
+ can send trackbacks to Blogs without RDF-metadata (garvinhicking)
+
* Allow to view and fetch multiple categories. Categories plugin
can allow viewers to select multiple categories to view.
(garvinhicking)
function serendipity_trackback_autodiscover($res, $loc, $url, $author, $title, $text, $loc2 = '') {
if (!preg_match('@trackback:ping(\s*rdf:resource)?\s*=\s*["\'](https?:[^"\']+)["\']@i', $res, $matches)) {
- echo '<div>• ' . sprintf(TRACKBACK_FAILED, TRACKBACK_NOT_FOUND) . '</div>';
- return false;
+ $matches = array();
+ serendipity_plugin_api::hook_event('backend_trackback_check', $matches, $loc);
+
+ // Plugins may say that a URI is valid, in situations where a blog has no valid RDF metadata
+ if (empty($matches[2])) {
+ echo '<div>• ' . sprintf(TRACKBACK_FAILED, TRACKBACK_NOT_FOUND) . '</div>';
+ return false;
+ }
}
$trackURI = trim($matches[2]);