Skip to:
Content

bbPress.org

Opened 8 years ago

Last modified 6 years ago

#2653 closed defect (bug)

Closed topics missing _bbp_status post meta key — at Version 2

Reported by: netweb Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Component - Topics Keywords: has-patch commit
Cc:

Description (last modified by netweb)

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:

  1. When creating a new topic and including the status 'closed' post meta key _bbp_status is not created.
  1. Previously imported closed topics were not assigned the _bbp_status = publish meta key.

Extra Issues:

  1. Currently if a closed topic is missing it's _bbp_status meta key we cannot update the status meta.

ToDo:

  1. Update bbp_close_topic() to allow _bbp_status to be added to existing post_status = closed topics
  1. Update repair tools to repair closed topics missing _bbp_status meta key See #2577
  1. Add bbPress 2.6 database upgrade routine we should update closed topics where post_status = closed and meta bbp_status = publish does not exist. See #2654

Related: #2577 Imported closed/locked topics missing 'publish' postmeta _bbp_status

Change History (3)

@netweb
8 years ago

#1 @netweb
8 years ago

  • Keywords needs-patch added

In 2653.diff:

  • Adds a 'closed topic' check in bbp_new_topic_handler() to properly create new closed topics
  • Allow bbp_close_topic() to add/update _bbp_status to existing post_status = closed topics.
  • Repair tools will now be able to utilise bbp_close_topic() to repair existing instances

Still to do, add repair tool and database upgrade

#2 @netweb
8 years ago

  • Description modified (diff)
  • Keywords has-patch added; needs-patch removed

See #2654 for bbPress 2.6 database upgrade routine

Last edited 7 years ago by netweb (previous) (diff)
Note: See TracTickets for help on using tickets.