Changeset 956 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r955 r956 23 23 24 24 function get_bloginfo($show='') { 25 global $ blogname, $admin_email;25 global $admin_email; 26 26 27 27 $do_perma = 0; … … 80 80 case 'name': 81 81 default: 82 $output = $blogname;82 $output = get_settings('blogname'); 83 83 break; 84 84 } … … 206 206 function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) { 207 207 global $tableposts, $time_difference; 208 global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb , $start_of_week;208 global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb; 209 209 210 210 if ('' == $type) { … … 271 271 } 272 272 } elseif ('weekly' == $type) { 273 if (!isset($start_of_week)) { 274 $start_of_week = 1; 275 } 273 $start_of_week = get_settings('start_of_week'); 276 274 $arcresults = $wpdb->get_results("SELECT DISTINCT WEEK($wp_posts_post_date_field, $start_of_week) AS `week`, YEAR($wp_posts_post_date_field) AS yr, DATE_FORMAT($wp_posts_post_date_field, '%Y-%m-%d') AS yyyymmdd FROM $tableposts WHERE post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); 277 275 $arc_w_last = ''; … … 281 279 $arc_year = $arcresult->yr; 282 280 $arc_w_last = $arcresult->week; 283 $arc_week = get_weekstartend($arcresult->yyyymmdd, $start_of_week);281 $arc_week = get_weekstartend($arcresult->yyyymmdd, get_settings('start_of_week')); 284 282 $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); 285 283 $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']);
Note: See TracChangeset
for help on using the changeset viewer.