Opened 12 years ago
Closed 11 years ago
#2669 closed defect (bug) (fixed)
Repair tool bbp_admin_repair_forum_meta() incorrectly adding _bbp_forum_id meta keys to forums
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6 | Priority: | normal |
| Severity: | normal | Version: | 2.5 |
| Component: | Tools | Keywords: | has-patch commit |
| Cc: |
Description
Any forum that currently includes a forum _bbp_forum_id post meta key is due to either:
- 1. Running the repair tool "Recalculate parent forum for each reply" (
bbp_admin_repair_forum_meta()) - 2. The forums were imported as the imports include the
_bbp_forum_idmeta key
Attached patch removes this from the bbp_admin_repair_forum_meta() repair tool
Existing forums with _bbp_forum_id should be removed as part of #2654 bbPress 2.6 Database upgrade.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Theoretically what this part of the
bbp_admin_repair_forum_meta()repair tool was trying to achieve was to add a meta key_bbp_forum_idto each forum with the forum ID of the parent forum.When a new forum is created with
bbp_insert_forum()the following forum meta is created:https://bbpress.trac.wordpress.org/browser/trunk/src/includes/forums/functions.php#L52