[wp-trac] [WordPress Trac] #20720: attachment_fields_to_save filter is called twice after initial image upload in post
WordPress Trac
wp-trac at lists.automattic.com
Tue May 22 00:12:21 UTC 2012
#20720: attachment_fields_to_save filter is called twice after initial image upload
in post
--------------------------+------------------------------
Reporter: williamsba1 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => has-patch
Comment:
Both calls are in `wp_media_upload_handler()`.
First, `media_upload_form_handler()` is called in line 555: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.3.2/wp-
admin/includes/media.php#L554
Then `media_upload_gallery()` is called, which has exactly the same block:
[[BR]]
http://core.trac.wordpress.org/browser/tags/3.3.2/wp-
admin/includes/media.php#L637
[attachment:20720.patch] is an attempt to correct the logic.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20720#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list