]> git.mjollnir.org Git - s9y.git/commitdiff
Shuffle trackback logic to the end of entry-save process. Thanks to isotopp.
authorgarvinhicking <garvinhicking>
Fri, 3 Nov 2006 16:41:52 +0000 (16:41 +0000)
committergarvinhicking <garvinhicking>
Fri, 3 Nov 2006 16:41:52 +0000 (16:41 +0000)
docs/NEWS
include/functions_entries.inc.php

index 9061e12fa8a3484100159e8d43f1c7270c1cdade..6f3013d7b9a2aceaae52ef79c3ae38076284eb67 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,10 @@
 Version 1.1 ()
 ------------------------------------------------------------------------
 
+    * Move trackback sending logic to the end when saving an entry.
+      Should get rid of event plugins not operating when trackbacks
+      painfully fail. Thanks to isotopp (garvinhicking)
+
     * Portuguese translation update by Angel
 
     * Fixed bug that prevented native imports from other blog system
index ac2e5db64551853b9429f13fcd573911cbb40552..4632409ef8404d63f05171267976cd2d7196e91d 100644 (file)
@@ -1237,7 +1237,6 @@ function serendipity_updertEntry($entry) {
 
     if (!serendipity_db_bool($entry['isdraft'])) {
         serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true, 'from' => 'functions_entries:updertEntry'));
-        serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $entry['title'], $entry['body'] . $entry['extended'], $newEntry);
     }
 
     serendipity_purgeEntry($entry['id'], $entry['timestamp']);
@@ -1251,6 +1250,10 @@ function serendipity_updertEntry($entry) {
         serendipity_plugin_api::hook_event('backend_save', $entry, $newEntry);
     }
 
+    if (!serendipity_db_bool($entry['isdraft'])) {
+        serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $entry['title'], $entry['body'] . $entry['extended'], $newEntry);
+    }
+
     return (int)$entry['id'];
 }