Changeset 7549
- Timestamp:
- 03/27/08 16:56:56 (5 months ago)
- Files:
-
- trunk/wp-admin/includes/image.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/image.php
r7135 r7549 41 41 */ 42 42 function wp_crop_image( $src_file, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs = false, $dst_file = false ) { 43 if ( ctype_digit( $src_file ) ) // Handle int as attachment ID43 if ( is_numeric( $src_file ) ) // Handle int as attachment ID 44 44 $src_file = get_attached_file( $src_file ); 45 45 … … 125 125 */ 126 126 function wp_load_image( $file ) { 127 if ( ctype_digit( $file ) )127 if ( is_numeric( $file ) ) 128 128 $file = get_attached_file( $file ); 129 129
