wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_is_writable › WordPress Function

Since3.6.0
已弃用n/a
wp_is_writable ( $path )
参数:
  • (string) $path Path to check for write-ability.
    Required: Yes
查看:
返回:
  • (bool) Whether the path is writable.
定义在:
文档:

Determines if a directory is writable.

This function is used to work around certain ACL issues in PHP primarily affecting Windows Servers.


源码

function wp_is_writable( $path ) {
	if ( 'Windows' === PHP_OS_FAMILY ) {
		return win_is_writable( $path );
	}

	return @is_writable( $path );
}