Opened 12 years ago
Closed 12 years ago
#22673 closed defect (bug) (fixed)
QuickPress: Media modal doesn't use the new post id when a post is published
Reported by: | ocean90 | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
- Upload and insert an image to QuickPress
- Save/publish the post
- Open the media modal again
- Go to the library and select "Uploaded to this post"
It should be empty, but still contains the old image. Also new uploads will be attached to the old post.
Do we have a "render new media modal" method which we can fire on a new QuickPress rendering?
Attachments (2)
Change History (7)
#2
@
12 years ago
This isn't going to be enough, we're also going to need to change the corresponding update nonce.
#3
@
12 years ago
Possibly relevant: If you upload an image, abandon the post, and then return to QuickPress later, the same ID and Auto Draft are in play. Then, if you upload an image and save or publish the new draft, it will have two attachments.
Note: See
TracTickets for help on using
tickets.
The templates are designed to be post-agnostic on render precisely for situations like this.
So I suppose we need to set media.view.settings.postId on the fly. This value also gets copied over to media.model.