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