mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
f3939dd8fd
git-svn-id: http://svn.automattic.com/wordpress/trunk@12824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
29 lines
895 B
PHP
29 lines
895 B
PHP
<?php
|
|
/**
|
|
* Deprecated admin functions from past WordPress versions. You shouldn't use these
|
|
* globals and functions and look for the alternatives instead. The functions
|
|
* and globals will be removed in a later version.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Deprecated
|
|
*/
|
|
|
|
/**
|
|
* Calculates the new dimentions for a downsampled image.
|
|
*
|
|
* @since 2.0.0
|
|
* @deprecated 3.0.0
|
|
* @deprecated Use wp_constrain_dimensions()
|
|
*
|
|
* @param int $width Current width of the image
|
|
* @param int $height Current height of the image
|
|
* @param int $wmax Maximum wanted width
|
|
* @param int $hmax Maximum wanted height
|
|
* @return mixed Array(height,width) of shrunk dimensions.
|
|
*/
|
|
function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
|
|
_deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
|
|
return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
|
|
}
|
|
|
|
?>
|