diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 88d210bbd2..b4ea6fbce0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3503,7 +3503,7 @@ function wp_filesize( $path ) { return $size; } - $size = (int) @filesize( $path ); + $size = file_exists( $path ) ? (int) filesize( $path ) : 0; /** * Filters the size of the file. diff --git a/wp-includes/version.php b/wp-includes/version.php index ff42ceb795..3815928f02 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53371'; +$wp_version = '6.1-alpha-53372'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.