Changeset 4144 for trunk/wp-includes/rewrite.php
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r4133 r4144 90 90 91 91 // Add 'www.' if it is absent and should be there 92 if ( false !== strpos(get_ settings('home'), '://www.') && false === strpos($url, '://www.') )92 if ( false !== strpos(get_option('home'), '://www.') && false === strpos($url, '://www.') ) 93 93 $url = str_replace('://', '://www.', $url); 94 94 95 95 // Strip 'www.' if it is present and shouldn't be 96 if ( false === strpos(get_ settings('home'), '://www.') )96 if ( false === strpos(get_option('home'), '://www.') ) 97 97 $url = str_replace('://www.', '://', $url); 98 98 … … 101 101 $url = str_replace('index.php/', '', $url); 102 102 103 if ( false !== strpos($url, get_ settings('home')) ) {103 if ( false !== strpos($url, get_option('home')) ) { 104 104 // Chop off http://domain.com 105 $url = str_replace(get_ settings('home'), '', $url);105 $url = str_replace(get_option('home'), '', $url); 106 106 } else { 107 107 // Chop off /path/to/blog 108 $home_path = parse_url(get_ settings('home'));108 $home_path = parse_url(get_option('home')); 109 109 $home_path = $home_path['path']; 110 110 $url = str_replace($home_path, '', $url); … … 260 260 261 261 function page_rewrite_rules() { 262 $uris = get_ settings('page_uris');263 $attachment_uris = get_ settings('page_attachment_uris');262 $uris = get_option('page_uris'); 263 $attachment_uris = get_option('page_attachment_uris'); 264 264 265 265 $rewrite_rules = array(); … … 758 758 } 759 759 760 $site_root = parse_url(get_ settings('siteurl'));760 $site_root = parse_url(get_option('siteurl')); 761 761 $site_root = trailingslashit($site_root['path']); 762 762 763 $home_root = parse_url(get_ settings('home'));763 $home_root = parse_url(get_option('home')); 764 764 $home_root = trailingslashit($home_root['path']); 765 765 … … 854 854 function init() { 855 855 $this->extra_rules = $this->non_wp_rules = $this->endpoints = array(); 856 $this->permalink_structure = get_ settings('permalink_structure');856 $this->permalink_structure = get_option('permalink_structure'); 857 857 $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%')); 858 858 $this->root = ''; … … 860 860 $this->root = $this->index . '/'; 861 861 } 862 $this->category_base = get_ settings('category_base');862 $this->category_base = get_option('category_base'); 863 863 unset($this->category_structure); 864 864 unset($this->author_structure);
Note: See TracChangeset
for help on using the changeset viewer.