Make WordPress Core

Changeset 14429


Ignore:
Timestamp:
05/04/2010 12:28:29 AM (14 years ago)
Author:
wpmuguru
Message:

use homeurl(), props PeteMall, see #9008

Location:
trunk/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r14404 r14429  
    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);
  • trunk/wp-includes/js/tinymce/wp-mce-help.php

    r14360 r14429  
    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>
  • trunk/wp-includes/link-template.php

    r14374 r14429  
    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);
  • trunk/wp-includes/post.php

    r14426 r14429  
    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) ) {
Note: See TracChangeset for help on using the changeset viewer.