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

Normalizes 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_get_original_image_path, wp_kses_normalize_entities

Top Google Results

User discussions

wpseek mobile