wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_is_writable › WordPress Function

Depuis3.6.0
Dépréciéen/a
› wp_is_writable ( $path )
Paramètres:
  • (string) $path Path to check for write-ability.
    Requis: Oui
Voir:
Retourne:
  • (bool) Whether the path is writable.
Défini(e) dans:
Codex:

Determines if a directory is writable.

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


Source

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

	return @is_writable( $path );
}