WordPress.org

Make WordPress Core

Changeset 11126


Ignore:
Timestamp:
04/29/09 20:10:06 (6 years ago)
Author:
ryan
Message:

Don't prepend http to fragments. Props scohoust. fixes #4051

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r11109 r11126  
    20052005     */ 
    20062006    if ( strpos($url, ':') === false && 
    2007         substr( $url, 0, 1 ) != '/' && !preg_match('/^[a-z0-9-]+?\.php/i', $url) ) 
     2007        substr( $url, 0, 1 ) != '/' && substr( $url, 0, 1 ) != '#' && !preg_match('/^[a-z0-9-]+?\.php/i', $url) ) 
    20082008        $url = 'http://' . $url; 
    20092009 
Note: See TracChangeset for help on using the changeset viewer.