wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_udims › WordPress Function

Da2.0.0
Deprecato3.5.0
get_udims ( $width, $height )
Parametri: (2)
  • (int) $width Current width of the image
    Richiesto:
  • (int) $height Current height of the image
    Richiesto:
Vedi:
Ritorna:
  • (array) Shrunk dimensions (width, height).
Definito a:
Codex:

Calculated the new dimensions for a downsampled image.



Sorgenti

function get_udims( $width, $height ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
	return wp_constrain_dimensions( $width, $height, 128, 96 );
}