Make WordPress Core


Ignore:
Timestamp:
01/09/2010 10:03:55 AM (16 years ago)
Author:
westi
Message:

Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

File:
1 edited

Legend:

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

    r12659 r12680  
    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.
     20 * @param mixed $deprecated Never used.
    2121 * @return string Thumbnail path on success, Error string on failure.
    2222 */
    2323function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
    2424    if ( !empty( $deprecated ) )
    25         _deprecated_argument( __FUNCTION__, '0.0' );
     25        _deprecated_argument( __FUNCTION__, '1.2' );
    2626    $thumbpath = image_resize( $file, $max_side, $max_side );
    2727    return apply_filters( 'wp_create_thumbnail', $thumbpath );
Note: See TracChangeset for help on using the changeset viewer.