[wp-trac] Re: [WordPress Trac] #9471: Attachments uploaded before
post is saved or autosaved get 0 (zero) for post_parent (instead of
temp_id value)
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 11 22:53:44 GMT 2009
#9471: Attachments uploaded before post is saved or autosaved get 0 (zero) for
post_parent (instead of temp_id value)
-------------------------+--------------------------------------------------
Reporter: aesqe | Type: defect (bug)
Status: new | Priority: low
Milestone: 2.8.1 | Component: Upload
Version: 2.8 | Severity: minor
Keywords: needs_patch |
-------------------------+--------------------------------------------------
Comment(by scribu):
I think it would be safer and easier to change the db schema to allow
negative integers. This way we don't have to rely on autosave. We already
have a function called _relocate_children() which updates the attachments
with negative parent ids.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9471#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list