Changeset 21956 for trunk/wp-admin/includes/image.php
- Timestamp:
- 09/23/2012 05:48:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r21905 r21956 6 6 * @subpackage Administration 7 7 */ 8 9 /**10 * Create a thumbnail from an Image given a maximum side size.11 *12 * This function can handle most image file formats which PHP supports. If PHP13 * does not have the functionality to save in a file of the same format, the14 * thumbnail will be created as a jpeg.15 *16 * @since 1.2.017 *18 * @param mixed $file Filename of the original image, Or attachment id.19 * @param int $max_side Maximum length of a single side for the thumbnail.20 * @param mixed $deprecated Never used.21 * @return string Thumbnail path on success, Error string on failure.22 */23 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {24 if ( !empty( $deprecated ) )25 _deprecated_argument( __FUNCTION__, '1.2' );26 $thumbpath = image_resize( $file, $max_side, $max_side );27 return apply_filters( 'wp_create_thumbnail', $thumbpath );28 }29 8 30 9 /**
Note: See TracChangeset
for help on using the changeset viewer.