Changeset 35465
- Timestamp:
- 10/30/2015 11:35:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r35464 r35465 896 896 * @access private 897 897 * 898 * @param string $size_name Image size. Accepts any valid image size name ( thumbnail, medium, etc.).898 * @param string $size_name Image size. Accepts any valid image size name ('thumbnail', 'medium', etc.). 899 899 * @param array $image_meta The image meta data. 900 900 * @return array|bool Array of width and height values in pixels (in that order) … … 922 922 * @since 4.4.0 923 923 * 924 925 924 * @param int $attachment_id Optional. Image attachment ID. 926 925 * @param array|string $size Image size. Accepts any valid image size, or an array of width and height … … 974 973 } 975 974 976 // Add full size to the '$im g_sizes' array.975 // Add full size to the '$image_sizes' array. 977 976 $image_sizes['full'] = array( 978 977 'width' => $image_meta['width'], … … 1100 1099 1101 1100 if ( is_array( $image_meta ) ) { 1102 $ width= _wp_get_image_size_from_meta( $size, $image_meta );1103 if ( $ width) {1104 $width = absint( $ width[0] );1101 $size_array = _wp_get_image_size_from_meta( $size, $image_meta ); 1102 if ( $size_array ) { 1103 $width = absint( $size_array[0] ); 1105 1104 } 1106 1105 }
Note: See TracChangeset
for help on using the changeset viewer.