Make WordPress Core

Ticket #32363: 32363.diff

File 32363.diff, 1.4 KB (added by DrewAPicture, 11 years ago)

Docs + rename to wp_get_attachment_image_src

  • src/wp-includes/media.php

     
    711711                }
    712712        }
    713713        /**
    714          * Filter the image src result
     714         * Filter the image src result.
    715715         *
    716716         * @since 4.3.0
    717717         *
    718          * @param array|false   $image          Either array with src, width & height, icon src, or false.
    719          * @param int           $attachment_id  Image attachment ID.
    720          * @param string|array  $size           Optional. Registered image size to retrieve the source for or a flat
    721          *                                      array of height and width dimensions. Default 'thumbnail'.
    722          * @param bool          $icon           Optional. Whether the image should be treated as an icon. Default false.
     718         * @param array|false  $image         Either array with src, width & height, icon src, or false.
     719         * @param int          $attachment_id Image attachment ID.
     720         * @param string|array $size          Registered image size to retrieve the source for or a flat
     721         *                                    array of height and width dimensions. Default 'thumbnail'.
     722         * @param bool         $icon          Whether the image should be treated as an icon. Default false.
    723723         */
    724         return apply_filters( 'attachment_image_src', $image, $attachment_id, $size, $icon );
     724        return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );
    725725}
    726726
    727727/**