From b764f60728be1d4e026f9d7ae618ab47e23322f8 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 31 Aug 2006 14:55:29 +0000 Subject: WP Merge to rev #4147 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@729 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/rewrite.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'wp-includes/rewrite.php') diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 178ee07..7865351 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -84,28 +84,28 @@ function url_to_postid($url) { $url_split = explode('#', $url); $url = $url_split[0]; - // Get rid of URI ?query=string + // Get rid of URL ?query=string $url_split = explode('?', $url); $url = $url_split[0]; // Add 'www.' if it is absent and should be there - if ( false !== strpos(get_settings('home'), '://www.') && false === strpos($url, '://www.') ) + if ( false !== strpos(get_option('home'), '://www.') && false === strpos($url, '://www.') ) $url = str_replace('://', '://www.', $url); // Strip 'www.' if it is present and shouldn't be - if ( false === strpos(get_settings('home'), '://www.') ) + if ( false === strpos(get_option('home'), '://www.') ) $url = str_replace('://www.', '://', $url); // Strip 'index.php/' if we're not using path info permalinks if ( false === strpos($rewrite, 'index.php/') ) $url = str_replace('index.php/', '', $url); - if ( false !== strpos($url, get_settings('home')) ) { + if ( false !== strpos($url, get_option('home')) ) { // Chop off http://domain.com - $url = str_replace(get_settings('home'), '', $url); + $url = str_replace(get_option('home'), '', $url); } else { // Chop off /path/to/blog - $home_path = parse_url(get_settings('home')); + $home_path = parse_url(get_option('home')); $home_path = $home_path['path']; $url = str_replace($home_path, '', $url); } @@ -259,8 +259,8 @@ class WP_Rewrite { } function page_rewrite_rules() { - $uris = get_settings('page_uris'); - $attachment_uris = get_settings('page_attachment_uris'); + $uris = get_option('page_uris'); + $attachment_uris = get_option('page_attachment_uris'); $rewrite_rules = array(); $page_structure = $this->get_page_permastruct(); @@ -757,10 +757,10 @@ class WP_Rewrite { return ''; } - $site_root = parse_url(get_settings('siteurl')); + $site_root = parse_url(get_option('siteurl')); $site_root = trailingslashit($site_root['path']); - $home_root = parse_url(get_settings('home')); + $home_root = parse_url(get_option('home')); $home_root = trailingslashit($home_root['path']); $rules = "\n"; @@ -853,13 +853,13 @@ class WP_Rewrite { function init() { $this->extra_rules = $this->non_wp_rules = $this->endpoints = array(); - $this->permalink_structure = get_settings('permalink_structure'); + $this->permalink_structure = get_option('permalink_structure'); $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%')); $this->root = ''; if ($this->using_index_permalinks()) { $this->root = $this->index . '/'; } - $this->category_base = get_settings('category_base'); + $this->category_base = get_option('category_base'); unset($this->category_structure); unset($this->author_structure); unset($this->date_structure); -- cgit