Updated archive mode. Default is now admin setting.
git-svn-id: http://svn.automattic.com/wordpress/trunk@191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9e3d334434
commit
fce35f099c
|
@ -110,9 +110,13 @@ function single_month_title($prefix = '', $display = true ) {
|
|||
}
|
||||
}
|
||||
|
||||
function get_archives($type, $limit='') {
|
||||
function get_archives($type='', $limit='') {
|
||||
global $tableposts, $dateformat, $time_difference, $siteurl, $blogfilename, $querystring_start, $querystring_equal, $month, $wpdb, $start_of_week;
|
||||
|
||||
if ('' == $type) {
|
||||
$type = get_settings('archive_mode');
|
||||
}
|
||||
|
||||
if ('' != $limit) {
|
||||
$limit = (int) $limit;
|
||||
$limit = " LIMIT $limit";
|
||||
|
|
Loading…
Reference in New Issue