Changeset 1142 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 04/24/2004 07:23:57 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r1121 r1142 74 74 $output = get_settings('admin_email'); 75 75 break; 76 case 'charset': 77 $output = get_settings('blog_charset'); 78 if ('' == $output) $output = 'UTF-8'; 79 break; 80 case 'version': 81 global $wp_version; 82 $output = $wp_version; 83 break; 76 84 case 'name': 77 85 default: … … 200 208 } 201 209 202 function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) { 210 function wp_get_archives($args = '') { 211 parse_str($args, $r); 212 if (!isset($r['type'])) $r['type'] = ''; 213 if (!isset($r['limit'])) $r['limit'] = ''; 214 if (!isset($r['format'])) $r['format'] = 'html'; 215 if (!isset($r['before'])) $r['before'] = ''; 216 if (!isset($r['after'])) $r['after'] = ''; 217 if (!isset($r['show_post_count'])) $r['show_post_count'] = false; 218 get_archives($r['type'], $r['limit'], $r['format'], $r['before'], $r['after'], $r['show_post_count']); 219 } 220 221 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { 203 222 global $tableposts, $time_difference; 204 223 global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.