WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/23/2012 05:48:24 PM (9 years ago)
Author:
nacin
Message:

Deprecate wp_create_thumbnail(). props obenland. fixes #21555.

File:
1 edited

Legend:

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

    r21835 r21956  
    998998 * @since 2.5.0
    999999 * @deprecated 3.5.0
    1000  * @deprecated Use get_default_post_to_edit() 
     1000 * @deprecated Use get_default_post_to_edit()
    10011001 *
    10021002 * @return WP_Post Post object containing all the default post data as attributes
     
    10101010}
    10111011
     1012/**
     1013 * This was once used to create a thumbnail from an Image given a maximum side size.
     1014 *
     1015 * @since 1.2.0
     1016 * @deprecated 3.5.0
     1017 * @deprecated Use image_resize()
     1018 * @see  image_resize()
     1019 *
     1020 * @param mixed $file Filename of the original image, Or attachment id.
     1021 * @param int $max_side Maximum length of a single side for the thumbnail.
     1022 * @param mixed $deprecated Never used.
     1023 * @return string Thumbnail path on success, Error string on failure.
     1024 */
     1025function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
     1026    _deprecated_function( __FUNCTION__, '3.5', 'image_resize' );
     1027    return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
     1028}
Note: See TracChangeset for help on using the changeset viewer.