Changeset 21808 for trunk/wp-admin/includes/deprecated.php
- Timestamp:
- 09/11/2012 01:38:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r21800 r21808 53 53 _deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' ); 54 54 return wp_constrain_dimensions( $width, $height, $wmax, $hmax ); 55 } 56 57 /** 58 * Calculated the new dimensions for a downsampled image. 59 * 60 * @since 2.0.0 61 * @deprecated 3.5.0 62 * @see wp_constrain_dimensions() 63 * 64 * @param int $width Current width of the image 65 * @param int $height Current height of the image 66 * @return mixed Array(height,width) of shrunk dimensions. 67 */ 68 function get_udims( $width, $height ) { 69 _deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' ); 70 return wp_constrain_dimensions( $width, $height, 128, 96 ); 55 71 } 56 72
Note: See TracChangeset
for help on using the changeset viewer.