Make WordPress Core

Opened 4 years ago

Closed 2 years ago

Last modified 2 years ago

#17859 closed defect (bug) (worksforme)

Can't attach media to private posts

Reported by: knome Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Media Keywords: has-patch
Focuses: Cc:


In the Media -page on the WordPress admin, one can attach unattached media to posts and pages.

However, the search does not show private posts, even with the master account.


  1. Upload media
  2. Try to attach to a private post or page

Attachments (2)

17859.diff (899 bytes) - added by kawauso 4 years ago.
Add private to post_status clause
17859.2.diff (920 bytes) - added by kawauso 4 years ago.
Add all missing post statuses

Download all attachments as: .zip

Change History (7)

@kawauso4 years ago

Add private to post_status clause

comment:1 @kawauso4 years ago

  • Keywords has-patch added

comment:2 @agjmills4 years ago

  • Keywords needs-patch added
  • Version changed from 3.1.3 to 3.1

Also cannot attach media to scheduled posts/pages

@kawauso4 years ago

Add all missing post statuses

comment:3 @kawauso4 years ago

  • Keywords needs-patch removed

comment:4 @sillybean2 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

This has been fixed sometime in the last couple of years. You can now attach unattached media to any post status.

comment:5 @dd322 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.