wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_is_writable › WordPress Function

Seit3.6.0
Veraltetn/v
wp_is_writable ( $path )
Parameter:
  • (string) $path Path to check for write-ability.
    Erforderlich: Ja
Siehe:
Gibt zurück:
  • (bool) Whether the path is writable.
Definiert in:
Codex:

Determines if a directory is writable.

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


Quellcode

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