diff --git wp-includes/formatting.php wp-includes/formatting.php
index 835862c..3ab3f6b 100755
|
|
function esc_url( $url, $protocols = null, $_context = 'display' ) { |
4190 | 4190 | $url = str_replace( ';//', '://', $url ); |
4191 | 4191 | /* If the URL doesn't appear to contain a scheme, we |
4192 | 4192 | * presume it needs http:// prepended (unless a relative |
4193 | | * link starting with /, # or ? or a php file). |
| 4193 | * link starting with ., /, # or ? or a php file). |
4194 | 4194 | */ |
4195 | | if ( strpos( $url, ':' ) === false && ! in_array( $url[0], array( '/', '#', '?' ) ) && |
| 4195 | if ( strpos( $url, ':' ) === false && ! in_array( $url[0], array( '.', '/', '#', '?' ) ) && |
4196 | 4196 | ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) ) { |
4197 | 4197 | $url = 'http://' . $url; |
4198 | 4198 | } |