[wp-trac] [WordPress Trac] #6806: image_send_to_editor is called
twice for every image
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 22 17:47:42 GMT 2008
#6806: image_send_to_editor is called twice for every image
---------------------------+------------------------------------------------
Reporter: AaronCampbell | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.5.1
Component: General | Version:
Severity: major | Keywords: has-patch needs-testing
---------------------------+------------------------------------------------
Inside the get_image_send_to_editor function in wp-
admin/includes/media.php, first get_image_tag is called, which applies the
filter image_send_to_editor, then later in that same function the
image_send_to_editor filter is applied again. I'm adding image
captioning, so I need to modify the image code sent to the editor, but not
the image tag. We should change the call inside get_image_tag to be
"get_image_tag" rather than "image_send_to_editor"
Patch Attached.
--
Ticket URL: <http://trac.wordpress.org/ticket/6806>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list