Shuffle trackback logic to the end of entry-save process. Thanks to isotopp.
This commit is contained in:
parent
75483ee2fe
commit
b16733cf40
@ -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
|
||||
|
@ -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'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user