Changeset 945 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 02/26/2004 04:15:48 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r938 r945 23 23 24 24 function get_bloginfo($show='') { 25 global $ siteurl, $blogfilename, $blogname, $blogdescription, $siteurl, $admin_email;25 global $blogname, $blogdescription, $admin_email; 26 26 27 27 $do_perma = 0; 28 $feed_url = $siteurl;29 $comment_feed_url = $siteurl;28 $feed_url = get_settings('siteurl'); 29 $comment_feed_url = get_settings('siteurl'); 30 30 31 31 if ('' != get_settings('permalink_structure')) { 32 32 $do_perma = 1; 33 $feed_url = $siteurl. '/feed';34 $comment_feed_url = $siteurl. '/comments/feed';33 $feed_url = get_settings('siteurl') . '/feed'; 34 $comment_feed_url = get_settings('siteurl') . '/comments/feed'; 35 35 } 36 36 37 37 switch($show) { 38 38 case 'url': 39 $output = $siteurl.'/'.$blogfilename;39 $output = get_settings('siteurl') .'/'. get_settings('blogfilename'); 40 40 break; 41 41 case 'description': … … 43 43 break; 44 44 case 'rdf_url': 45 $output = $siteurl.'/wp-rdf.php';45 $output = get_settings('siteurl') .'/wp-rdf.php'; 46 46 if ($do_perma) { 47 47 $output = $feed_url . '/rdf/'; … … 49 49 break; 50 50 case 'rss_url': 51 $output = $siteurl.'/wp-rss.php';51 $output = get_settings('siteurl') .'/wp-rss.php'; 52 52 if ($do_perma) { 53 53 $output = $feed_url . '/rss/'; … … 55 55 break; 56 56 case 'rss2_url': 57 $output = $siteurl.'/wp-rss2.php';57 $output = get_settings('siteurl') .'/wp-rss2.php'; 58 58 if ($do_perma) { 59 59 $output = $feed_url . '/rss2/'; … … 61 61 break; 62 62 case 'atom_url': 63 $output = $siteurl.'/wp-atom.php';63 $output = get_settings('siteurl') .'/wp-atom.php'; 64 64 if ($do_perma) { 65 65 $output = $feed_url . '/atom/'; … … 67 67 break; 68 68 case 'comments_rss2_url': 69 $output = $siteurl.'/wp-commentsrss2.php';69 $output = get_settings('siteurl') .'/wp-commentsrss2.php'; 70 70 if ($do_perma) { 71 71 $output = $comment_feed_url . '/rss2/'; … … 73 73 break; 74 74 case 'pingback_url': 75 $output = $siteurl.'/xmlrpc.php';75 $output = get_settings('siteurl') .'/xmlrpc.php'; 76 76 break; 77 77 case 'admin_email': … … 205 205 206 206 function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) { 207 global $tableposts, $time_difference , $siteurl, $blogfilename;207 global $tableposts, $time_difference; 208 208 global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb, $start_of_week; 209 209 … … 220 220 221 221 // archive link url 222 $archive_link_m = $siteurl.'/'.$blogfilename.$querystring_start.'m'.$querystring_equal; # monthly archive;223 $archive_link_w = $siteurl.'/'.$blogfilename.$querystring_start.'w'.$querystring_equal; # weekly archive;224 $archive_link_p = $siteurl.'/'.$blogfilename.$querystring_start.'p'.$querystring_equal; # post-by-post archive;222 $archive_link_m = get_settings('siteurl').'/'.get_settings('blogfilename').$querystring_start.'m'.$querystring_equal; # monthly archive; 223 $archive_link_w = get_settings('siteurl').'/'.get_settings('blogfilename').$querystring_start.'w'.$querystring_equal; # weekly archive; 224 $archive_link_p = get_settings('siteurl').'/'.get_settings('blogfilename').$querystring_start.'p'.$querystring_equal; # post-by-post archive; 225 225 226 226 // over-ride general date format ? 0 = no: use the date format set in Options, 1 = yes: over-ride … … 284 284 $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); 285 285 $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']); 286 $url = sprintf('%s/%s%sm%s%s%sw%s%d', $siteurl, $blogfilename, $querystring_start,286 $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_settings('siteurl'), get_settings('blogfilename'), $querystring_start, 287 287 $querystring_equal, $arc_year, $querystring_separator, 288 288 $querystring_equal, $arcresult->week);
Note: See TracChangeset
for help on using the changeset viewer.