From aba2cafb40b449d4f061c30e85ea9e043b692c25 Mon Sep 17 00:00:00 2001 From: mihdan Date: Tue, 28 Jul 2020 01:08:38 +0300 Subject: [PATCH] Pass the $rel parameter to 'image_send_to_editor' filter --- src/wp-admin/includes/media.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 3daa4a2ad1539..e31b9e1095918 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -162,8 +162,9 @@ function get_image_send_to_editor( $id, $caption, $title, $align, $url = '', $re * @param string|array $size Size of image. Image size or array of width and height values * (in that order). Default 'medium'. * @param string $alt The image alternative, or alt, text. + * @param string $rel The image rel attribute. */ - $html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt ); + $html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel ); return $html; }