return false;
}
- $plugins =& serendipity_plugin_api::get_event_plugins();
+ // We can NOT use a "return by reference" here, because then when
+ // a plugin executes another event_hook, the referenced variable within
+ // that call will overwrite the previous original plugin listing and
+ // skip the execution of any follow-up plugins.
+ $plugins = serendipity_plugin_api::get_event_plugins();
if (is_array($plugins)) {
// foreach() operates on copies of values, but we want to operate on references, so we use while()