Make WordPress Core


Ignore:
Timestamp:
12/30/2009 04:23:39 PM (15 years ago)
Author:
westi
Message:

Updates and improvements to _depreceated_argument. See #11386 props nacin.

File:
1 edited

Legend:

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

    r12524 r12584  
    1818 * @param mixed $file Filename of the original image, Or attachment id.
    1919 * @param int $max_side Maximum length of a single side for the thumbnail.
     20 * @param mixed $deprecated Not used.
    2021 * @return string Thumbnail path on success, Error string on failure.
    2122 */
    2223function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
     24    if ( !empty( $deprecated ) )
     25        _deprecated_argument( __FUNCTION__, '0.0' );
    2326    $thumbpath = image_resize( $file, $max_side, $max_side );
    2427    return apply_filters( 'wp_create_thumbnail', $thumbpath );
Note: See TracChangeset for help on using the changeset viewer.