diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ed41eed8c7..c2fe1228bf 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2257,11 +2257,11 @@ function get_temp_dir() { * @return bool Whether the path is writable. */ function wp_is_writable( $path ) { - if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) { + if ( 'Windows' === PHP_OS_FAMILY ) { return win_is_writable( $path ); - } else { - return @is_writable( $path ); } + + return @is_writable( $path ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 4bcce31037..62ecf5f741 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58683'; +$wp_version = '6.7-alpha-58684'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.