WordPress.org

Make WordPress Core

Ticket #24704: 00000.patch

File 00000.patch, 549 bytes (added by dpash, 5 years ago)

Simple patch to suppress is_dir warning

  • wp-includes/functions.php

     
    14261426        }
    14271427
    14281428        $temp = ini_get('upload_tmp_dir');
    1429         if ( is_dir( $temp ) && wp_is_writable( $temp ) )
     1429        if ( @is_dir( $temp ) && wp_is_writable( $temp ) )
    14301430                return trailingslashit( rtrim( $temp, '\\' ) );
    14311431
    14321432        $temp = WP_CONTENT_DIR . '/';
     
    40194019                return 'ISO-8859-1';
    40204020
    40214021        return $charset;
    4022 }
    4023  No newline at end of file
     4022}