[wp-trac] [WordPress Trac] #22085: Correctly assign post_parent to uploaded attachments in the new media modal
WordPress Trac
noreply at wordpress.org
Thu Oct 18 20:14:11 UTC 2012
#22085: Correctly assign post_parent to uploaded attachments in the new media modal
--------------------------+--------------------
Reporter: koopersmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by koopersmith):
Helen's comment above is exactly on point. In 3.5, we're working with the
following concept:
If an attachment is uploaded while editing another post, we record that
post's ID as the attachment's post_parent.
This will allow code that utilizes the post_parent field to continue
working as intended, but expresses the concept in a less restrictive
way: an attachment can only be uploaded to a single post. This does not
prevent us from inserting the attachment into any number of posts or
galleries, and allows us to retain backwards compatibility while
continuing to treat the data as meaningful (rather than deprecated).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22085#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list