Opened 5 months ago
Last modified 3 months ago
#3609 assigned defect (bug)
Bug - prevents attaching media to draft items
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6.12 | Priority: | high |
Severity: | major | Version: | 2.6.11 |
Component: | General - Content Creation | Keywords: | has-patch |
Cc: | SirLouen |
Description
Team,
I have identified a bug with BBpress
Nemly when it is activated only items with a publish post status appear when you try to attach an attachment without a parent using the attach functionality in upload.php. This means that you cannot attach media items to draft and pending posts/pages etc
This occurs with wordpress 6.6 and can be reproduced by installing BBpress as the only plugin on a fresh install and uploading standalone attachment then trying to attach it to an existing post or page which does not have a publish status.
Attachments (2)
Change History (6)
#2
@
5 months ago
- Component changed from General to General - Content Creation
- Keywords needs-testing needs-patch added
- Milestone changed from Awaiting Review to 2.6.12
- Owner set to johnjamesjacoby
- Status changed from new to assigned
- Version set to 2.6.11
#3
@
3 months ago
- Cc SirLouen added
- Keywords needs-testing removed
- Priority changed from normal to high
- Severity changed from normal to major
Reproduction Report
This report validates that the issue can be reproduced.
Environment
- OS: Windows 11
- Web Stack: WP-Env 10.8
- WordPress: 6.8-alpha-59336
- Browser: Chrome 130.0.6723.92
- Theme: Twenty Ten
- Active Plugins:
- bbPress 2.7.0-alpha-2
- Query Monitor 3.16.4
Steps
No plugins activated
- Create a Draft Post
- Add New Media File
- Set
List Mode
in Media Library - Select
Attach
- We can observe that our draft post appears in the list
Activating bbPress
- Repeat previous steps 1-4
- The draft post is not there anymore.
Actual Results
- ✅ Error condition occurs (reproduced).
This ticket was mentioned in PR #24 on bbpress/bbPress by @SirLouen.
3 months ago
#4
- Keywords has-patch added; needs-patch removed
Trac Issue:
https://bbpress.trac.wordpress.org/ticket/3609
I have done some further investigation.
The bug is created by line 169 of actions.php, namely:
add_action( 'pre_get_posts', 'bbp_pre_get_posts_normalize_forum_visibility', 4 );
The function bbp_pre_get_posts_normalize_forum_visibility needs to be refined so that it does not effect this functionality (and potentially other places as well)
Pete