WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/04/2010 05:23:29 PM (10 years ago)
Author:
ryan
Message:

Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008

File:
1 edited

Legend:

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

    r12584 r12598  
    7979            $uri = parse_url($url);
    8080            $domain = $uri['host'];
    81             $uri = parse_url( get_option('home') );
     81            $uri = parse_url( home_url() );
    8282            $home_domain = $uri['host'];
    8383            if ( $wpdb->get_var($wpdb->prepare("SELECT link_id FROM $wpdb->links WHERE link_url LIKE (%s) LIMIT 1", '%'.$domain.'%')) || $domain == $home_domain )
     
    18201820    // when set to true, this outputs debug messages by itself
    18211821    $client->debug = false;
    1822     $home = trailingslashit( get_option('home') );
     1822    $home = trailingslashit( home_url() );
    18231823    if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping
    18241824        $client->query('weblogUpdates.ping', get_option('blogname'), $home);
Note: See TracChangeset for help on using the changeset viewer.