2010-01-24, 06:01 AM
The editpost_start hook is placed before a lot of "elementary" stuff is evaluated (eg thread info) - it would make sense for stuff like retrieving thread information be done before the hook is run, so that a plugin which hooks there doesn't have to do it twice.
Also, in the same file
Also, in the same file
$query = $db->simple_select("posts", "*", "pid='$pid'");
$post = $db->fetch_array($query);
Should probably be $post = get_post($pid);
(so at least if a plugin does have to get all the information, it doesn't execute a 2nd query)