Opened 11 years ago
Last modified 10 years ago
#2684 new defect (bug)
Depreciate function bbp_update_topic_topic_id()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Component - Topics | Keywords: | |
| Cc: |
Description
Following on from a previos IRC chat on bbPress meta where we have posts saving their own post ID as meta.
Depreciate bbp_update_topic_topic_id() introduced in r2955
Called only by bbp_move_reply_handler(), bbp_update_topic() and bbp_split_topic_handler()
bbPress does not make any queries to get a topics _bbp_topic_id from postmeta
We should use bbp_update_topic() instead to update a topic
Change History (4)
This ticket was mentioned in IRC in #bbpress-dev by netweb. View the logs.
11 years ago
#4
@
10 years ago
Also noting that bbp_insert_topic() adds _bbp_topic_id meta of itself when inserting topics:
https://bbpress.trac.wordpress.org/browser/trunk/src/includes/topics/functions.php#L56
(I've been deliberately ignoring this meta in unit tests thus far, not checking for it nor checking to ensure it doesn't exist)
Adding original discussion via IRC here:
https://irclogs.wordpress.org/chanlog.php?channel=bbpress-dev&day=2014-07-09&sort=asc#m20345