Correct return values for two deprecated media admin functions. props SergeyBiryukov. fixes #21518.
git-svn-id: https://develop.svn.wordpress.org/trunk@21835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b0bcbe0b01
commit
2313f09a45
@ -42,12 +42,13 @@ function documentation_link() {
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
* @deprecated 3.0.0
|
* @deprecated 3.0.0
|
||||||
* @deprecated Use wp_constrain_dimensions()
|
* @deprecated Use wp_constrain_dimensions()
|
||||||
|
* @see wp_constrain_dimensions()
|
||||||
*
|
*
|
||||||
* @param int $width Current width of the image
|
* @param int $width Current width of the image
|
||||||
* @param int $height Current height of the image
|
* @param int $height Current height of the image
|
||||||
* @param int $wmax Maximum wanted width
|
* @param int $wmax Maximum wanted width
|
||||||
* @param int $hmax Maximum wanted height
|
* @param int $hmax Maximum wanted height
|
||||||
* @return mixed Array(height,width) of shrunk dimensions.
|
* @return array Shrunk dimensions (width, height).
|
||||||
*/
|
*/
|
||||||
function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
|
function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
|
||||||
_deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
|
_deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
|
||||||
@ -59,11 +60,12 @@ function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
* @deprecated 3.5.0
|
* @deprecated 3.5.0
|
||||||
|
* @deprecated Use wp_constrain_dimensions()
|
||||||
* @see wp_constrain_dimensions()
|
* @see wp_constrain_dimensions()
|
||||||
*
|
*
|
||||||
* @param int $width Current width of the image
|
* @param int $width Current width of the image
|
||||||
* @param int $height Current height of the image
|
* @param int $height Current height of the image
|
||||||
* @return mixed Array(height,width) of shrunk dimensions.
|
* @return array Shrunk dimensions (width, height).
|
||||||
*/
|
*/
|
||||||
function get_udims( $width, $height ) {
|
function get_udims( $width, $height ) {
|
||||||
_deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' );
|
_deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' );
|
||||||
|
Loading…
Reference in New Issue
Block a user