Shuffle trackback logic to the end of entry-save process. Thanks to isotopp.

This commit is contained in:
Garvin Hicking 2006-11-03 16:41:52 +00:00
parent 75483ee2fe
commit b16733cf40
2 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,10 @@
Version 1.1 () 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 * Portuguese translation update by Angel
* Fixed bug that prevented native imports from other blog system * Fixed bug that prevented native imports from other blog system

View File

@ -1237,7 +1237,6 @@ function serendipity_updertEntry($entry) {
if (!serendipity_db_bool($entry['isdraft'])) { if (!serendipity_db_bool($entry['isdraft'])) {
serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true, 'from' => 'functions_entries:updertEntry')); 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']); serendipity_purgeEntry($entry['id'], $entry['timestamp']);
@ -1251,6 +1250,10 @@ function serendipity_updertEntry($entry) {
serendipity_plugin_api::hook_event('backend_save', $entry, $newEntry); 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']; return (int)$entry['id'];
} }