Opened 12 years ago
Closed 11 years ago
#2647 closed defect (bug) (fixed)
Missing forum post meta keys when creating a new forum
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6 | Priority: | high |
| Severity: | normal | Version: | |
| Component: | Component - Forums | Keywords: | has-patch commit |
| Cc: |
Description (last modified by )
When creating a new 'open' forum (i.e. not closed) post meta key _bbp_status with meta value open is not created.
- When editing a forums status post meta key
_bbp_statusis correctly updated withopenorclosedvalues
- A forum's
_bbp_statuscan be eitheropenorclosed
When creating a new 'forum' forum (i.e. not a category) post meta key _bbp_forum_type with meta value forum is not created.
- When editing a forums type post meta key
_bbp_forum_typeis correctly updated withforumorcategoryvalues - A forum's
_bbp_forum_typecan be eitherforumorcategory
Related:
- #2303 $check_ancestors Parameter Logic
Edit: Edited and updated ticket description of exact behaviour
Attachments (2)
Change History (10)
#1
@
12 years ago
- Component changed from General to Forums
- Keywords has-patch added; needs-patch removed
#2
@
12 years ago
- Description modified (diff)
- Keywords needs-patch added; has-patch removed
- Summary changed from Post meta key _bbp_forum_id is not created when creating new forums to Missing forum post meta keys when creating a new forum
I have deleted (strikethough text) the original _bbp_forum_id section from the original ticket and in comment:1:
- Meta key
_bbp_forum_idis only used inbbp_exclude_forum_ids()andbbp_request_feed_trap()with topic and reply queries to not include topics or replies in hidden and/or private forums unless the user has the capability to read those forums
The _bbp_status and _bbp_forum_type meta keys issues when creating a new forum are still valid and needs patch
#4
@
12 years ago
- Keywords has-patch added; needs-patch removed
In 2647.diff, when creating a new forum as part of bbp_save_forum_extras():
- Call
bbp_open_forum()if the forum is open to add the forums_bbp_status=openmeta - Call
bbp_normalize_forum()if the forum is a forum to add the forums_bbp_forum_type=forummeta
In 2647.diff:* Introducebbp_update_forum_forum_id()updater forum function*bbp_update_forum()callsbbp_update_forum_forum_id()to add_bbp_forum_idpost meta key when a forum is created or edited usingbbp_new_forum_handler()andbbp_edit_forum_handler()respectivelyWe should also updating existing forum meta as part of the bbPress 2.6 update.Related: #2652 Post meta key _bbp_reply_id is not created when creating new replies