Changeset 49597 for trunk/src/wp-includes/media.php
- Timestamp:
- 11/14/2020 04:33:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r49539 r49597 43 43 * @since 2.5.0 44 44 * 45 * @global int 45 * @global int $content_width 46 46 * 47 47 * @param int $width Width of the image in pixels. … … 1082 1082 * @since 2.8.0 1083 1083 * 1084 * @param array$attr Array of attribute values for the image markup, keyed by attribute name.1084 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 1085 1085 * See wp_get_attachment_image(). 1086 1086 * @param WP_Post $attachment Image attachment post. … … 1110 1110 * an array of width and height values in pixels (in that order). 1111 1111 * @param bool $icon Whether the image should be treated as an icon. 1112 * @param array$attr Array of attribute values for the image markup, keyed by attribute name.1112 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 1113 1113 * See wp_get_attachment_image(). 1114 1114 */ … … 1238 1238 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 1239 1239 * @param int $attachment_id Optional. The image attachment ID. Default 0. 1240 * @return string| boolThe 'srcset' attribute value. False on error or when only one source exists.1240 * @return string|false The 'srcset' attribute value. False on error or when only one source exists. 1241 1241 */ 1242 1242 function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) { … … 1477 1477 * @param int $attachment_id Optional. Image attachment ID. Either `$image_meta` or `$attachment_id` 1478 1478 * is needed when using the image size name as argument for `$size`. Default 0. 1479 * @return string| boolA valid source size value for use in a 'sizes' attribute or false.1479 * @return string|false A valid source size value for use in a 'sizes' attribute or false. 1480 1480 */ 1481 1481 function wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, $attachment_id = 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.