WordPress.org

Make WordPress Core

#50765 closed enhancement (fixed)

Pass the $rel parameter to 'image_send_to_editor' filter

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

As previously mentioned in comment:1:ticket:35595, the image_send_to_editor filter accepts all the parameters of get_image_send_to_editor(), except for $rel.

This seems like an oversight, it would be helpful if $rel was passed too.

Change History (4)

#1 @SergeyBiryukov
11 months ago

  • Description modified (diff)

#2 @SergeyBiryukov
11 months ago

Props to @pputzer for the original ticket and @mihdan for bringing this up again.

#3 @SergeyBiryukov
11 months ago

  • Keywords has-patch added; needs-patch good-first-bug removed

#4 @SergeyBiryukov
11 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 48684:

Media: Pass the $rel parameter to image_send_to_editor filter.

Props mihdan, pputzer.
Fixes #50765.

Note: See TracTickets for help on using tickets.