WordPress.org

Make WordPress Core

Ticket #9008: 9008.4.diff

File 9008.4.diff, 3.0 KB (added by PeteMall, 4 years ago)
  • wp-includes/class-http.php

     
    251251                $r['ssl'] = $arrURL['scheme'] == 'https' || $arrURL['scheme'] == 'ssl'; 
    252252 
    253253                // Determine if this request is to OUR install of WordPress 
    254                 $homeURL = parse_url(get_bloginfo('url')); 
     254                $homeURL = home_url(); 
    255255                $r['local'] = $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host']; 
    256256                unset($homeURL); 
    257257 
  • wp-includes/post.php

     
    31303130 * @return bool True on success, false on failure. 
    31313131 */ 
    31323132function is_local_attachment($url) { 
    3133         if (strpos($url, get_bloginfo('url')) === false) 
     3133        if (strpos($url, home_url()) === false) 
    31343134                return false; 
    3135         if (strpos($url, get_bloginfo('url') . '/?attachment_id=') !== false) 
     3135        if (strpos($url, home_url('/?attachment_id=')) !== false) 
    31363136                return true; 
    31373137        if ( $id = url_to_postid($url) ) { 
    31383138                $post = & get_post($id); 
  • wp-includes/js/tinymce/wp-mce-help.php

     
    240240        <h2><?php _e('About TinyMCE'); ?></h2> 
    241241 
    242242    <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p> 
    243         <p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under %sLGPL</a> by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.get_bloginfo('url').'/wp-includes/js/tinymce/license.txt" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p> 
     243        <p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under %sLGPL</a> by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.home_url('/wp-includes/js/tinymce/license.txt').'" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p> 
    244244        <p><?php _e('Copyright &copy; 2003-2007, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p> 
    245245        <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p> 
    246246 
  • wp-includes/link-template.php

     
    321321        } 
    322322 
    323323        if ( ! $link ) 
    324                 $link = trailingslashit(get_bloginfo('url')) . "?attachment_id=$id"; 
     324                $link = home_url( "/?attachment_id=$id" ); 
    325325 
    326326        return apply_filters('attachment_link', $link, $id); 
    327327}