wp_normalize_path


wp_normalize_path ( $path )

Parameters:
  • (string) $path Path to normalize.
Returns:
  • (string) Normalized path.
Defined at:
Change Log:
  • 4: .
  • 4: .
  • 4: .

Description

Normalize a filesystem path.

On windows systems, replaces backslashes with forward slashes and forces upper-case drive letters. Allows for two leading slashes for Windows network shares, but ensures that all other duplicate slashes are reduced to a single.

Related Functions

wp_normalize_site_data, wp_localize_script, normalize_whitespace, wp_kses_normalize_entities, wp_kses_normalize_entities2

Top Google Results

User discussions

wpseek mobile