Changeset 7549 for trunk/wp-admin/includes/image.php
- Timestamp:
- 03/27/2008 04:56:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.