WordPress.org

Make WordPress Core

Changeset 48684


Ignore:
Timestamp:
07/28/2020 09:19:53 PM (14 months ago)
Author:
SergeyBiryukov
Message:

Media: Pass the $rel parameter to image_send_to_editor filter.

Props mihdan, pputzer.
Fixes #50765.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r48586 r48684  
    153153     *
    154154     * @since 2.5.0
     155     * @since 5.6.0 The `$rel` parameter was added.
    155156     *
    156157     * @param string       $html    The image HTML markup to send.
     
    163164     *                              (in that order). Default 'medium'.
    164165     * @param string       $alt     The image alternative, or alt, text.
     166     * @param string       $rel     The image rel attribute.
    165167     */
    166     $html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt );
     168    $html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt, $rel );
    167169
    168170    return $html;
Note: See TracChangeset for help on using the changeset viewer.