Make WordPress Core

Ticket #43543: 43543.patch

File 43543.patch, 933 bytes (added by sebastian.pisula, 7 years ago)
  • wp-includes/media.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    927927                $html .= ' />';
    928928        }
    929929
    930         return $html;
     930        /**
     931         * Filters the attachment image HTML.
     932         *
     933         * @since 5.0.0
     934         *
     935         * @param string       $html          The attachment image HTML.
     936         * @param int          $attachment_id Image attachment ID.
     937         * @param string       $attr          Attributes for the image markup.
     938         * @param string|array $size          Requested size. Image size or array of width and height values
     939         *                                    (in that order). Default 'thumbnail'.
     940         */
     941        return apply_filters( 'attachment_image_html', $html, $attachment_id, $attr, $size );
    931942}
    932943
    933944/**