WordPress.org

Make WordPress Core

Changeset 21810


Ignore:
Timestamp:
09/11/12 01:44:48 (19 months ago)
Author:
nacin
Message:

Use site_url() in WP_Rewrite::mod_rewrite_rules(), rather than get_option(). props JustinSainton. fixes #21186.

File:
1 edited

Legend:

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

    r21705 r21810  
    16391639            return ''; 
    16401640 
    1641         $site_root = parse_url(get_option('siteurl')); 
     1641        $site_root = parse_url( site_url() ); 
    16421642        if ( isset( $site_root['path'] ) ) 
    16431643            $site_root = trailingslashit($site_root['path']); 
Note: See TracChangeset for help on using the changeset viewer.