Changeset 24055 for trunk/wp-includes/class-wp-image-editor-gd.php
- Timestamp:
- 04/22/2013 08:28:05 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-image-editor-gd.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-image-editor-gd.php
r23884 r24055 179 179 * multiple sizes from single source. 180 180 * 181 * @since 3.5.0 182 * @access public 183 * 184 * @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... } 181 * 'width' and 'height' are required. 182 * 'crop' defaults to false when not provided. 183 * 184 * @since 3.5.0 185 * @access public 186 * 187 * @param array $sizes { {'width'=>int, 'height'=>int, ['crop'=>bool]}, ... } 185 188 * @return array 186 189 */ … … 190 193 191 194 foreach ( $sizes as $size => $size_data ) { 195 if ( ! ( isset( $size_data['width'] ) && isset( $size_data['height'] ) ) ) 196 continue; 197 198 if ( ! isset( $size_data['crop'] ) ) 199 $size_data['crop'] = false; 200 192 201 $image = $this->_resize( $size_data['width'], $size_data['height'], $size_data['crop'] ); 193 202
Note: See TracChangeset
for help on using the changeset viewer.