MyBB Community Forums

Full Version: editpost_start hook
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
	$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)