Make WordPress Core

Ticket #3623: 3623.diff

File 3623.diff, 10.0 KB (added by rob1n, 19 years ago)
  • wp-admin/themes.php

     
    2626<?php if ( ! validate_current_theme() ) : ?>
    2727<div id="message1" class="updated fade"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div>
    2828<?php elseif ( isset($_GET['activated']) ) : ?>
    29 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site &raquo;</a>'), get_bloginfo('home') . '/'); ?></p></div>
     29<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site &raquo;</a>'), get_bloginfo('url') . '/'); ?></p></div>
    3030<?php endif; ?>
    3131
    3232<?php
  • wp-content/themes/default/searchform.php

     
    1 <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
     1<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    22<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    33<input type="submit" id="searchsubmit" value="Search" />
    44</div>
  • wp-content/themes/default/sidebar.php

     
    1717                        <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
    1818
    1919                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    20                         <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     20                        <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2121                        for the day <?php the_time('l, F jS, Y'); ?>.</p>
    2222
    2323                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    24                         <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     24                        <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2525                        for <?php the_time('F, Y'); ?>.</p>
    2626
    2727                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    28                         <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     28                        <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2929                        for the year <?php the_time('Y'); ?>.</p>
    3030
    3131                        <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    32                         <p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     32                        <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    3333                        for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
    3434
    3535                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    36                         <p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
     36                        <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
    3737
    3838                        <?php } ?>
    3939                        </li>
  • wp-includes/general-template.php

     
    6060
    6161function bloginfo($show='') {
    6262        $info = get_bloginfo($show);
    63         if (!strstr($show, 'url') && //don't filter URLs
    64                 !strstr($show, 'directory') &&
    65                 !strstr($show, 'home')) {
     63       
     64        // Don't filter URL's.
     65        if (strpos($show, 'url') === false ||
     66                strpos($show, 'directory') === false ||
     67                strpos($show, 'home') === false) {
    6668                $info = apply_filters('bloginfo', $info, $show);
    6769                $info = convert_chars($info);
    6870        } else {
     
    7274        echo $info;
    7375}
    7476
    75 
     77/**
     78 * Note: some of these values are DEPRECATED. Meaning they could be
     79 * taken out at any time and shouldn't be relied upon. Options
     80 * without "// DEPRECATED" are the preferred and recommended ways
     81 * to get the information.
     82 */
    7683function get_bloginfo($show='') {
    7784
    7885        switch($show) {
    7986                case 'url' :
    80                 case 'home' :
    81                 case 'siteurl' :
     87                case 'home' : // DEPRECATED
     88                case 'siteurl' : // DEPRECATED
    8289                        $output = get_option('home');
    8390                        break;
    8491                case 'wpurl' :
  • wp-includes/js/tinymce/wp-mce-help.php

     
    167167<div id="content4" class="hidden">
    168168        <h2><?php _e('About TinyMCE'); ?></h2>
    169169        <p><?php printf(__('Version: %s'), '2.0.9') ?></p>
    170         <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('home').'/wp-includes/js/tinymce/license.txt" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p>
     170        <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>
    171171        <p><?php _e('Copyright &copy; 2005, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
    172172        <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
    173173
  • wp-includes/link-template.php

     
    163163        }
    164164
    165165        if (! $link ) {
    166                 $link = get_bloginfo('home') . "/?attachment_id=$id";
     166                $link = get_bloginfo('url') . "/?attachment_id=$id";
    167167        }
    168168
    169169        return apply_filters('attachment_link', $link, $id);
  • wp-includes/post.php

     
    11981198//
    11991199
    12001200function is_local_attachment($url) {
    1201         if ( !strstr($url, get_bloginfo('home') ) )
     1201        if ( !strstr($url, get_bloginfo('url') ) )
    12021202                return false;
    1203         if ( strstr($url, get_bloginfo('home') . '/?attachment_id=') )
     1203        if ( strstr($url, get_bloginfo('url') . '/?attachment_id=') )
    12041204                return true;
    12051205        if ( $id = url_to_postid($url) ) {
    12061206                $post = & get_post($id);
  • wp-login.php

     
    153153<?php if (get_option('users_can_register')) : ?>
    154154        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    155155        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li>
    156         <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
     156        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    157157<?php else : ?>
    158         <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
     158        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    159159        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    160160<?php endif; ?>
    161161</ul>
     
    275275<ul>
    276276        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    277277        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    278         <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
     278        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    279279</ul>
    280280
    281281</body>
     
    366366<?php if (get_option('users_can_register')) : ?>
    367367        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li>
    368368        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    369         <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
     369        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    370370<?php else : ?>
    371         <li><a href="<?php bloginfo('home'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
     371        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>
    372372        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    373373<?php endif; ?>
    374374</ul>