Uses
| Uses | Description |
|---|---|
| wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
| wp-includes/media.php: wp_constrain_dimensions() | Calculates the new dimensions for a down-sampled image. |
This function has been deprecated. Use wp_constrain_dimensions() instead.
Calculated the new dimensions for a downsampled image.
(int) (Required) Current width of the image
(int) (Required) Current height of the image
(array) Shrunk dimensions (width, height).
File: wp-admin/includes/deprecated.php
function get_udims( $width, $height ) {
_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
return wp_constrain_dimensions( $width, $height, 128, 96 );
} | Version | Description |
|---|---|
| 3.5.0 | Use wp_constrain_dimensions() |
| 2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_udims