wp_is_writable( string $path )
Determine if a directory is writable.
Contents
Description Description
This function is used to work around certain ACL issues in PHP primarily affecting Windows Servers.
See also See also
Parameters Parameters
- $path
-
(string) (Required) Path to check for write-ability.
Return Return
(bool) Whether the path is writable.
Source Source
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 ); } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |