mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@12680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -17,12 +17,12 @@
|
||||
*
|
||||
* @param mixed $file Filename of the original image, Or attachment id.
|
||||
* @param int $max_side Maximum length of a single side for the thumbnail.
|
||||
* @param mixed $deprecated Not used.
|
||||
* @param mixed $deprecated Never used.
|
||||
* @return string Thumbnail path on success, Error string on failure.
|
||||
*/
|
||||
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
|
||||
if ( !empty( $deprecated ) )
|
||||
_deprecated_argument( __FUNCTION__, '0.0' );
|
||||
_deprecated_argument( __FUNCTION__, '1.2' );
|
||||
$thumbpath = image_resize( $file, $max_side, $max_side );
|
||||
return apply_filters( 'wp_create_thumbnail', $thumbpath );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user