Twenty Sixteen: Correct the @return
value for twentysixteen_post_thumbnail_sizes_attr()
.
Props truongwp. See #41830. git-svn-id: https://develop.svn.wordpress.org/trunk@41341 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea3507034f
commit
5df690648a
@ -393,7 +393,7 @@ add_filter( 'wp_calculate_image_sizes', 'twentysixteen_content_image_sizes_attr'
|
|||||||
* @param array $attr Attributes for the image markup.
|
* @param array $attr Attributes for the image markup.
|
||||||
* @param int $attachment Image attachment ID.
|
* @param int $attachment Image attachment ID.
|
||||||
* @param array $size Registered image size or flat array of height and width dimensions.
|
* @param array $size Registered image size or flat array of height and width dimensions.
|
||||||
* @return string A source size value for use in a post thumbnail 'sizes' attribute.
|
* @return array The filtered attributes for the image markup.
|
||||||
*/
|
*/
|
||||||
function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {
|
function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {
|
||||||
if ( 'post-thumbnail' === $size ) {
|
if ( 'post-thumbnail' === $size ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user