Changeset 34104 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/14/2015 01:58:03 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r34059 r34104 1576 1576 * Normalize a filesystem path. 1577 1577 * 1578 * Replaces backslashes with forward slashes for Windows systems, and ensures 1579 * no duplicate slashes exist. 1578 * On windows systems, replaces backslashes with forward slashes 1579 * and forces upper-case drive letters. 1580 * Ensures that no duplicate slashes exist. 1580 1581 * 1581 1582 * @since 3.9.0 1583 * @since 4.4.0 Ensures upper-case drive letters on Windows systems. 1582 1584 * 1583 1585 * @param string $path Path to normalize. … … 1587 1589 $path = str_replace( '\\', '/', $path ); 1588 1590 $path = preg_replace( '|/+|','/', $path ); 1591 if ( ':' === substr( $path, 1, 1 ) ) { 1592 $path = ucfirst( $path ); 1593 } 1589 1594 return $path; 1590 1595 }
Note: See TracChangeset
for help on using the changeset viewer.