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:
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 ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) {
		return win_is_writable( $path );
	} else {
		return @is_writable( $path );
	}
}