WordPress.org

Make WordPress Core

Changeset 12544


Ignore:
Timestamp:
12/26/09 08:47:47 (6 years ago)
Author:
azaozz
Message:

Replace ctype_digit() with is_numeric() for better compatibility, props markup, fixes #11620 for trunk

File:
1 edited

Legend:

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

    r12519 r12544  
    240240 
    241241    // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file.  Handle that gracefully. 
    242     if ( isset( $file['error'] ) && !ctype_digit( $file['error'] ) && $file['error'] ) 
     242    if ( isset( $file['error'] ) && !is_numeric( $file['error'] ) && $file['error'] ) 
    243243        return $upload_error_handler( $file, $file['error'] ); 
    244244 
Note: See TracChangeset for help on using the changeset viewer.