WordPress.org

Make WordPress Core

Changeset 12545


Ignore:
Timestamp:
12/26/2009 08:49:32 AM (10 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r12490 r12545  
    236236
    237237    // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file.  Handle that gracefully.
    238     if ( isset( $file['error'] ) && !ctype_digit( $file['error'] ) && $file['error'] )
     238    if ( isset( $file['error'] ) && !is_numeric( $file['error'] ) && $file['error'] )
    239239        return $upload_error_handler( $file, $file['error'] );
    240240
Note: See TracChangeset for help on using the changeset viewer.