Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6691 closed defect (bug) (fixed)

'image_send_to_editor' hook has a missing parameter

Reported by: duncanmc Owned by:
Milestone: 2.5.1 Priority: normal
Severity: normal Version: 2.5
Component: General Keywords:
Focuses: Cc:


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?

Change History (1)

comment:1 ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.