Changeset 15932
- Timestamp:
- 10/23/2010 05:13:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r15843 r15932 1958 1958 $home = get_blog_option( $blog_id, 'home' ); 1959 1959 1960 $url = str_replace( 'http://', "$scheme://", $home ); 1960 if ( 'http' != $scheme ) 1961 $url = str_replace( 'http://', "$scheme://", $home ); 1961 1962 1962 1963 if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) … … 2020 2021 $url = get_blog_option( $blog_id, 'siteurl' ); 2021 2022 2022 $url = str_replace( 'http://', "{$scheme}://", $url ); 2023 if ( 'http' != $scheme ) 2024 $url = str_replace( 'http://', "{$scheme}://", $url ); 2023 2025 2024 2026 if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) … … 2171 2173 } 2172 2174 2173 $url = 'http://' . $current_site->domain . $current_site->path; 2174 2175 $url = str_replace( 'http://', "{$scheme}://", $url ); 2175 $url = $scheme . '://' . $current_site->domain . $current_site->path; 2176 2176 2177 2177 if ( !empty($path) && is_string($path) && strpos($path, '..') === false ) … … 2206 2206 $scheme = is_ssl() && !is_admin() ? 'https' : 'http'; 2207 2207 2208 $url = 'http://' . $current_site->domain . $current_site->path; 2209 2210 $url = str_replace( 'http://', "$scheme://", $url ); 2208 $url = $scheme . '://' . $current_site->domain . $current_site->path; 2211 2209 2212 2210 if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false )
Note: See TracChangeset
for help on using the changeset viewer.