Make WordPress Core

Ticket #55678: 55678-1.diff

File 55678-1.diff, 391 bytes (added by antpb, 2 years ago)
  • src/wp-includes/functions.php

     
    35033503                return $size;
    35043504        }
    35053505
    3506         $size = (int) @filesize( $path );
     3506        $size = is_readable( $path ) ? (int) filesize( $path ) : 0;
    35073507
    35083508        /**
    35093509         * Filters the size of the file.