Changeset 35401 for trunk/src/wp-includes/media.php
- Timestamp:
- 10/26/2015 04:16:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r35378 r35401 1044 1044 */ 1045 1045 function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $width = null ) { 1046 // Try to get the image width from $argsparameter.1046 // Try to get the image width from the $width parameter. 1047 1047 if ( is_numeric( $width ) ) { 1048 1048 $img_width = (int) $width; 1049 // Next, usesee if a width value was passed in the $size parameter.1049 // Next, see if a width value was passed in the $size parameter. 1050 1050 } elseif ( is_array( $size ) ) { 1051 1051 $img_width = $size[0]; … … 1056 1056 } 1057 1057 1058 // Bail early if $im age_width isn't set.1058 // Bail early if $img_width isn't set. 1059 1059 if ( ! $img_width ) { 1060 1060 return false;
Note: See TracChangeset
for help on using the changeset viewer.