WordPress.org

Make WordPress Core

Changeset 35043


Ignore:
Timestamp:
10/12/2015 03:37:17 PM (5 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in the wp_get_attachment_image_attributes hook doc to clarify the required order of width and height values when an array is passed.

See #34257.

File:
1 edited

Legend:

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

    r35042 r35043  
    802802         * @param array        $attr       Attributes for the image markup.
    803803         * @param WP_Post      $attachment Image attachment post.
    804          * @param string|array $size       Requested size.
     804         * @param string|array $size       Requested size. Image size or array of width and height values
     805         *                                 (in that order). Default 'thumbnail'.
    805806         */
    806807        $attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size );
Note: See TracChangeset for help on using the changeset viewer.