[wp-trac] [WordPress Trac] #29646: wp_insert_attachment() doesn't allow to add post_parent for orphan attachments
WordPress Trac
noreply at wordpress.org
Mon Sep 15 13:48:34 UTC 2014
#29646: wp_insert_attachment() doesn't allow to add post_parent for orphan
attachments
----------------------------+--------------------
Reporter: dikiy_forester | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0.1
Component: Media | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+--------------------
Comment (by jesin):
Replying to [comment:5 dikiy_forester]:
> Patch doesn't allows to process $file parameter. It always will `false`.
Patch [attachment:29646.2.diff] changes only the `post_parent` value of
`$defaults`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29646#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list