Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#50765 closed enhancement (fixed)

Pass the $rel parameter to 'image_send_to_editor' filter

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile 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
5 years ago

  • Description modified (diff)

#2 @SergeyBiryukov
5 years ago

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

#3 @SergeyBiryukov
5 years ago

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

#4 @SergeyBiryukov
5 years 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.