id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 3125,bbp_get_topic_id might incorrectly give back a reply_id or forum_id,casiepa,,"Calling the bbp_get_topic_id($id) function will check if $id is a valid number by using ( ! empty( $topic_id ) && is_numeric( $topic_id ) ). If function bbp_get_topic_id is called with a forum_id or a reply_id, it will still accept the value. This behaviour should be changed, but there might be 2 ways: 1) if $id is a topic, return $id, otherwise 0 (so add the logic of bbp_is_topic to make sure $id is indeed a topic) or 2) if $id is an ID for a reply, return the corresponding ID for the topic this reply is part of (ID crawling) Regardless of chosing 1) or 2) apply the same logic to bbp_get_forum_id and bbp_get_reply_id.",enhancement,new,normal,Awaiting Review,General,,normal,,,