WordPress.org

Make WordPress Core

Ticket #20778: 20778.warning.patch

File 20778.warning.patch, 743 bytes (added by ocean90, 6 years ago)
  • wp-includes/functions.php

     
    13911391
    13921392        if ( function_exists('sys_get_temp_dir') ) {
    13931393                $temp = sys_get_temp_dir();
    1394                 if ( is_dir( $temp ) && ( $is_win ? win_is_writable( $temp ) : @is_writable( $temp ) ) ) {
     1394                if ( @is_dir( $temp ) && ( $is_win ? win_is_writable( $temp ) : @is_writable( $temp ) ) ) {
    13951395                        return trailingslashit( $temp );
    13961396                }
    13971397        }
     
    37583758 */
    37593759function wp_checkdate( $month, $day, $year, $source_date ) {
    37603760        return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );
    3761 }
    3762  No newline at end of file
     3761}