mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Things should be as simple as possible, but no more.
git-svn-id: https://develop.svn.wordpress.org/trunk@1142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -73,6 +73,14 @@ function get_bloginfo($show='') {
|
||||
case 'admin_email':
|
||||
$output = get_settings('admin_email');
|
||||
break;
|
||||
case 'charset':
|
||||
$output = get_settings('blog_charset');
|
||||
if ('' == $output) $output = 'UTF-8';
|
||||
break;
|
||||
case 'version':
|
||||
global $wp_version;
|
||||
$output = $wp_version;
|
||||
break;
|
||||
case 'name':
|
||||
default:
|
||||
$output = get_settings('blogname');
|
||||
@@ -199,7 +207,18 @@ function get_archives_link($url, $text, $format = "html", $before = "", $after =
|
||||
}
|
||||
}
|
||||
|
||||
function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) {
|
||||
function wp_get_archives($args = '') {
|
||||
parse_str($args, $r);
|
||||
if (!isset($r['type'])) $r['type'] = '';
|
||||
if (!isset($r['limit'])) $r['limit'] = '';
|
||||
if (!isset($r['format'])) $r['format'] = 'html';
|
||||
if (!isset($r['before'])) $r['before'] = '';
|
||||
if (!isset($r['after'])) $r['after'] = '';
|
||||
if (!isset($r['show_post_count'])) $r['show_post_count'] = false;
|
||||
get_archives($r['type'], $r['limit'], $r['format'], $r['before'], $r['after'], $r['show_post_count']);
|
||||
}
|
||||
|
||||
function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
|
||||
global $tableposts, $time_difference;
|
||||
global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user