WordPress.org

Make WordPress Core

Ticket #21518: 21518.2.patch

File 21518.2.patch, 1.3 KB (added by SergeyBiryukov, 6 years ago)
  • wp-admin/includes/deprecated.php

     
    4242 * @since 2.0.0
    4343 * @deprecated 3.0.0
    4444 * @deprecated Use wp_constrain_dimensions()
     45 * @see wp_constrain_dimensions()
    4546 *
    4647 * @param int $width Current width of the image
    4748 * @param int $height Current height of the image
    4849 * @param int $wmax Maximum wanted width
    4950 * @param int $hmax Maximum wanted height
    50  * @return mixed Array(height,width) of shrunk dimensions.
     51 * @return array Shrunk dimensions (width, height).
    5152 */
    5253function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
    5354        _deprecated_function( __FUNCTION__, '3.0', 'wp_constrain_dimensions()' );
     
    5960 *
    6061 * @since 2.0.0
    6162 * @deprecated 3.5.0
     63 * @deprecated Use wp_constrain_dimensions()
    6264 * @see wp_constrain_dimensions()
    6365 *
    6466 * @param int $width Current width of the image
    6567 * @param int $height Current height of the image
    66  * @return mixed Array(height,width) of shrunk dimensions.
     68 * @return array Shrunk dimensions (width, height).
    6769 */
    6870function get_udims( $width, $height ) {
    6971        _deprecated_function( __FUNCTION__, '3.5', 'wp_constrain_dimensions()' );