diff -Naur wordpress-orig/wp-includes/functions.php wordpress/wp-includes/functions.php
|
old
|
new
|
|
| 1709 | 1709 | * @return string Normalized path. |
| 1710 | 1710 | */ |
| 1711 | 1711 | function wp_normalize_path( $path ) { |
| | 1712 | $wrapper = ''; |
| | 1713 | if ( wp_is_stream( $path ) ) { |
| | 1714 | list( $wrapper, $path ) = explode( '://', $path, 2 ); |
| | 1715 | $wrapper .= '://'; |
| | 1716 | } |
| 1712 | 1717 | $path = str_replace( '\\', '/', $path ); |
| 1713 | 1718 | $path = preg_replace( '|(?<=.)/+|', '/', $path ); |
| 1714 | 1719 | if ( ':' === substr( $path, 1, 1 ) ) { |
| 1715 | 1720 | $path = ucfirst( $path ); |
| 1716 | 1721 | } |
| 1717 | | return $path; |
| | 1722 | return $wrapper . $path; |
| 1718 | 1723 | } |
| 1719 | 1724 | |
| 1720 | 1725 | /** |