update stored article after filter has finished processing to prevent plugins from reverting changes of earlier invoked plugins (experimental)

master
Andrew Dolgov 10 years ago
parent 89018afa13
commit 0084f0d1ba

@ -687,6 +687,12 @@
foreach ($pluginhost->get_hooks(PluginHost::HOOK_ARTICLE_FILTER) as $plugin) {
$article = $plugin->hook_article_filter($article);
$article["stored"] = array("title" => $article["title"],
"content" => $article["content"],
"link" => $article["link"],
"tags" => $article["tags"],
"author" => $article["author"]);
}
$entry_tags = $article["tags"];
@ -697,7 +703,6 @@
$entry_plugin_data = db_escape_string($article["plugin_data"]);
$entry_content = $article["content"]; // escaped below
_debug("plugin data: $entry_plugin_data", $debug_enabled);
if ($cache_images && is_writable(CACHE_DIR . '/images'))

Loading…
Cancel
Save