Changeset 58684
- Timestamp:
- 07/07/2024 12:42:44 PM (9 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r58570 r58684 2258 2258 */ 2259 2259 function wp_is_writable( $path ) { 2260 if ( 'W IN' === strtoupper( substr( PHP_OS, 0, 3 ) )) {2260 if ( 'Windows' === PHP_OS_FAMILY ) { 2261 2261 return win_is_writable( $path ); 2262 } else {2263 return @is_writable( $path ); 2264 }2262 } 2263 2264 return @is_writable( $path ); 2265 2265 } 2266 2266 -
trunk/tests/phpunit/tests/filesystem/wpFilesystemDirect/base.php
r57753 r58684 161 161 */ 162 162 public static function is_windows() { 163 return 'W IN' === substr( PHP_OS, 0, 3 );163 return 'Windows' === PHP_OS_FAMILY; 164 164 } 165 165
Note: See TracChangeset
for help on using the changeset viewer.