Make WordPress Core


Ignore:
Timestamp:
09/13/2012 05:09:41 PM (12 years ago)
Author:
nacin
Message:

Correct return values for two deprecated media admin functions. props SergeyBiryukov. fixes #21518.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/deprecated.php

    r21808 r21835  
    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
     
    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 ) {
     
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.