#2653 closed defect (bug) (fixed)
Closed topics missing _bbp_status post meta key
Reported by: | netweb | Owned by: | netweb |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Component - Topics | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
Some 'closed' topics are missing the _bbp_status
= publish
meta key.
A topic's _bbp_status
only exists if the topic is closed with status publish
(It does not exist if post_status
= publish
)
Occurrences:
- When creating a new topic and including the status 'closed' post meta key
_bbp_status
is not created.
- Previously imported closed topics were not assigned the
_bbp_status
=publish
meta key.
Extra Issues:
- Currently if a closed topic is missing it's
_bbp_status
meta key we cannot update the status meta.
ToDo:
- Update
bbp_close_topic()
to allow_bbp_status
to be added to existingpost_status
=closed
topics
- Update repair tools to repair closed topics missing
_bbp_status
meta key See #2577
- Add bbPress 2.6 database upgrade routine we should update closed topics where
post_status
=closed
and metabbp_status
=publish
does not exist. See #2654
Related: #2577 Imported closed/locked topics missing 'publish' postmeta _bbp_status
Attachments (3)
Change History (13)
#2
@
11 years ago
- Description modified (diff)
- Keywords has-patch added; needs-patch removed
See #2654 for bbPress 2.6 database upgrade routine
#3
@
11 years ago
In 2653.2.diff add revision toggle so a post revision is not created when closing a topic.
#4
@
10 years ago
- Keywords commit added
In 2653.3.diff, refresh of 2653.2.diff and includes new repair tool "Repair closed topics"
#5
@
10 years ago
In #2654 the patch 2654-repair-closed-topics.diff will run bbp_admin_repair_closed_topics()
as part of bbPress 2.6 database upgrade.
In 2653.diff:
bbp_new_topic_handler()
to properly create new closed topicsbbp_close_topic()
to add/update_bbp_status
to existingpost_status
=closed
topics.bbp_close_topic()
to repair existing instancesStill to do, add repair tool and database upgrade