[wp-trac] [WordPress Trac] #22085: Correctly assign post_parent to uploaded attachments in the new media modal
WordPress Trac
noreply at wordpress.org
Mon Nov 26 18:02:42 UTC 2012
#22085: Correctly assign post_parent to uploaded attachments in the new media modal
------------------------------+-----------------------
Reporter: koopersmith | Owner: nacin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------
Comment (by nacin):
Replying to [comment:16 ryan]:
> wp_enqueue_media() sometimes gets a post object, sometimes and ID in
.2.diff, but it looks like wp_enqueue_media() uses get_post() so it
accepts either. Looks good so far.
Yep. wp_enqueue_media() can take either by design.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22085#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list