Make WordPress Core

Changeset 48684

Timestamp:
07/28/2020 09:19:53 PM (4 years 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
    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
    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 );
    167169
    168170    return $html;
Note: See TracChangeset for help on using the changeset viewer.