Uses
Uses | Description |
---|---|
wp-includes/functions.php: win_is_writable() | Workaround for Windows bug in is_writable() function |
Determine if a directory is writable.
This function is used to work around certain ACL issues in PHP primarily affecting Windows Servers.
(string) (Required) Path to check for write-ability.
(bool) Whether the path is writable.
File: wp-includes/functions.php
function wp_is_writable( $path ) { if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) { return win_is_writable( $path ); } else { return @is_writable( $path ); } }
Version | Description |
---|---|
3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_is_writable