Calculated the new dimensions for a downsampled image.
Description
See also
Parameters
$width
intrequired- Current width of the image
$height
intrequired- Current height of the image
Source
function get_udims( $width, $height ) {
_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
return wp_constrain_dimensions( $width, $height, 128, 96 );
}
Changelog
Version | Description |
---|---|
3.5.0 | Use wp_constrain_dimensions() |
2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.