mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Code Modernization: Replace substr( PHP_OS, 0, 3 ) calls with PHP_OS_FAMILY.
The `PHP_OS_FAMILY` constant indicates the operating system family PHP was built for, and is available as of PHP 7.2.0. Reference: [https://www.php.net/manual/en/reserved.constants.php#constant.php-os-family PHP Manual: Predefined Constants: PHP_OS_FAMILY]. Follow-up to [23255], [57753], [57985], [58678]. Props ayeshrajans, jrf. See #61574. Built from https://develop.svn.wordpress.org/trunk@58684 git-svn-id: http://core.svn.wordpress.org/trunk@58086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82ef77948a
commit
61c8c315a9
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user