wp_is_writable()WP 3.6.0

Determines if a directory is writable.

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

Хуков нет.

Возвращает

bool. Whether the path is writable.

Использование

wp_is_writable( $path );
$path(строка) (обязательный)
Path to check for write-ability.

Заметки

Смотрите: win_is_writable()

Список изменений

С версии 3.6.0 Введена.

Код wp_is_writable() WP 7.1

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

	return @is_writable( $path );
}