wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_is_writable › WordPress Function

Desde3.6.0
Obsoleton/a
wp_is_writable ( $path )
Parâmetros:
  • (string) $path Path to check for write-ability.
    Required: Yes
Ver:
Retorna:
  • (bool) Whether the path is writable.
Definido em:
Codex:

Determines if a directory is writable.

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


Fonte

function wp_is_writable( $path ) {
	if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) {
		return win_is_writable( $path );
	} else {
		return @is_writable( $path );
	}
}