Opened 18 years ago
Closed 18 years ago
#6691 closed defect (bug) (fixed)
'image_send_to_editor' hook has a missing parameter
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.5.1 | Priority: | normal |
| Severity: | normal | Version: | 2.5 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
I am implementing a plugin using a filter that hooks 'image_send_to_editor'. This filter is called in functions get_image_tag($id, $alt, $title, $align, $size='medium') and get_image_send_to_editor($id, $alt, $title, $align, $url=, $rel = false, $size='medium') . The hook accepts parameters $html, $id, $alt, $title, $align, $url as it is called in these two functions by the command apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url ). There is a missing parameter here. Both these functions get and use $size parameter, but the filter does not get it. $size parameter is necessary for the filter. Otherwise it can not detect the image size selected in the media uploader. Could you please update the hook 'image_send_to_editor' so that it also accepts $size parameter?
[7671] and [7672]