WordPress.org

Make WordPress Core

Changeset 7966


Ignore:
Timestamp:
05/20/08 22:26:20 (7 years ago)
Author:
ryan
Message:

Don't use php 5 only component parameter to parse_url. Props azaozz. see #6998

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r7961 r7966  
    105105            continue; 
    106106         
    107         $host = parse_url($_GET['u'], PHP_URL_HOST); 
     107        $host = parse_url($_GET['u']); 
    108108         
    109109        if (strpos($src, 'http://') === false) { 
    110             $src = 'http://'.str_replace('//','/', $host.'/'.$src); 
     110            $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src); 
    111111        } 
    112112         
Note: See TracChangeset for help on using the changeset viewer.