diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 985b06942b..8c616f30f8 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -251,7 +251,7 @@ class WP_Http { $r['ssl'] = $arrURL['scheme'] == 'https' || $arrURL['scheme'] == 'ssl'; // Determine if this request is to OUR install of WordPress - $homeURL = parse_url(get_bloginfo('url')); + $homeURL = home_url(); $r['local'] = $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host']; unset($homeURL); diff --git a/wp-includes/js/tinymce/wp-mce-help.php b/wp-includes/js/tinymce/wp-mce-help.php index bb431bde25..6d152ea7d6 100644 --- a/wp-includes/js/tinymce/wp-mce-help.php +++ b/wp-includes/js/tinymce/wp-mce-help.php @@ -240,7 +240,7 @@ wp_admin_css( 'wp-admin', true );

()

-

by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '') ?>

+

by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '') ?>

Moxiecode Systems AB, All rights reserved.') ?>

TinyMCE website.') ?>

diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 2ef9d54550..62afd9d931 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -321,7 +321,7 @@ function get_attachment_link($id = false) { } if ( ! $link ) - $link = trailingslashit(get_bloginfo('url')) . "?attachment_id=$id"; + $link = home_url( "/?attachment_id=$id" ); return apply_filters('attachment_link', $link, $id); } diff --git a/wp-includes/post.php b/wp-includes/post.php index 639e2a6a6d..deeb6e29da 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3130,9 +3130,9 @@ function &get_pages($args = '') { * @return bool True on success, false on failure. */ function is_local_attachment($url) { - if (strpos($url, get_bloginfo('url')) === false) + if (strpos($url, home_url()) === false) return false; - if (strpos($url, get_bloginfo('url') . '/?attachment_id=') !== false) + if (strpos($url, home_url('/?attachment_id=')) !== false) return true; if ( $id = url_to_postid($url) ) { $post = & get_post($id);