Changeset 35696
- Timestamp:
- 11/18/2015 10:43:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r35678 r35696 937 937 * width and height values in pixels (in that order). Default 'medium'. 938 938 * @param array $image_meta Optional. The image meta data as returned by 'wp_get_attachment_metadata()'. 939 * Default null. 939 940 * @return string|bool A 'srcset' value string or false. 940 941 */ … … 965 966 * @param string $image_src The 'src' of the image. 966 967 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 967 * @param int $attachment_id Optional. The image attachment ID to pass to the filter. 968 * @param int $attachment_id Optional. The image attachment ID to pass to the filter. Default 0. 968 969 * @return string|bool The 'srcset' attribute value. False on error or when only one source exists. 969 970 */ … … 1089 1090 * @param string $image_src The 'src' of the image. 1090 1091 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 1091 * @param int $attachment_id Image attachment ID .1092 * @param int $attachment_id Image attachment ID or 0. 1092 1093 */ 1093 1094 $sources = apply_filters( 'wp_calculate_image_srcset', $sources, $size_array, $image_src, $image_meta, $attachment_id ); … … 1116 1117 * and height values in pixels (in that order). Default 'medium'. 1117 1118 * @param array $image_meta Optional. The image meta data as returned by 'wp_get_attachment_metadata()'. 1118 * @return string|bool A 'srcset' value string or false. 1119 * Default null. 1120 * @return string|bool A valid source size value for use in a 'sizes' attribute or false. 1119 1121 */ 1120 1122 function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $image_meta = null ) {
Note: See TracChangeset
for help on using the changeset viewer.