wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_is_writable › WordPress Function

Da3.6.0
Deprecaton/a
› wp_is_writable ( $path )
Parametri:
  • (string) $path Path to check for write-ability.
    Richiesto: Sì
Vedi:
Ritorna:
  • (bool) Whether the path is writable.
Definito a:
Codex:

Determines if a directory is writable.

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


Sorgenti

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

	return @is_writable( $path );
}