Ticket #3623: 3623.diff
| File 3623.diff, 10.0 KB (added by , 19 years ago) |
|---|
-
wp-admin/themes.php
26 26 <?php if ( ! validate_current_theme() ) : ?> 27 27 <div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 28 28 <?php elseif ( isset($_GET['activated']) ) : ?> 29 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site »</a>'), get_bloginfo(' home') . '/'); ?></p></div>29 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site »</a>'), get_bloginfo('url') . '/'); ?></p></div> 30 30 <?php endif; ?> 31 31 32 32 <?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'); ?>/"> 2 2 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 3 3 <input type="submit" id="searchsubmit" value="Search" /> 4 4 </div> -
wp-content/themes/default/sidebar.php
17 17 <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> 18 18 19 19 <?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 archives20 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 21 21 for the day <?php the_time('l, F jS, Y'); ?>.</p> 22 22 23 23 <?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 archives24 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 25 25 for <?php the_time('F, Y'); ?>.</p> 26 26 27 27 <?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 archives28 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 29 29 for the year <?php the_time('Y'); ?>.</p> 30 30 31 31 <?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 archives32 <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 33 33 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> 34 34 35 35 <?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> 37 37 38 38 <?php } ?> 39 39 </li> -
wp-includes/general-template.php
60 60 61 61 function bloginfo($show='') { 62 62 $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) { 66 68 $info = apply_filters('bloginfo', $info, $show); 67 69 $info = convert_chars($info); 68 70 } else { … … 72 74 echo $info; 73 75 } 74 76 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 */ 76 83 function get_bloginfo($show='') { 77 84 78 85 switch($show) { 79 86 case 'url' : 80 case 'home' : 81 case 'siteurl' : 87 case 'home' : // DEPRECATED 88 case 'siteurl' : // DEPRECATED 82 89 $output = get_option('home'); 83 90 break; 84 91 case 'wpurl' : -
wp-includes/js/tinymce/wp-mce-help.php
167 167 <div id="content4" class="hidden"> 168 168 <h2><?php _e('About TinyMCE'); ?></h2> 169 169 <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> 171 171 <p><?php _e('Copyright © 2005, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p> 172 172 <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p> 173 173 -
wp-includes/link-template.php
163 163 } 164 164 165 165 if (! $link ) { 166 $link = get_bloginfo(' home') . "/?attachment_id=$id";166 $link = get_bloginfo('url') . "/?attachment_id=$id"; 167 167 } 168 168 169 169 return apply_filters('attachment_link', $link, $id); -
wp-includes/post.php
1198 1198 // 1199 1199 1200 1200 function is_local_attachment($url) { 1201 if ( !strstr($url, get_bloginfo(' home') ) )1201 if ( !strstr($url, get_bloginfo('url') ) ) 1202 1202 return false; 1203 if ( strstr($url, get_bloginfo(' home') . '/?attachment_id=') )1203 if ( strstr($url, get_bloginfo('url') . '/?attachment_id=') ) 1204 1204 return true; 1205 1205 if ( $id = url_to_postid($url) ) { 1206 1206 $post = & get_post($id); -
wp-login.php
153 153 <?php if (get_option('users_can_register')) : ?> 154 154 <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li> 155 155 <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> 157 157 <?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> 159 159 <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li> 160 160 <?php endif; ?> 161 161 </ul> … … 275 275 <ul> 276 276 <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li> 277 277 <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> 279 279 </ul> 280 280 281 281 </body> … … 366 366 <?php if (get_option('users_can_register')) : ?> 367 367 <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li> 368 368 <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> 370 370 <?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> 372 372 <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> 373 373 <?php endif; ?> 374 374 </ul>