Updated archive mode. Default is now admin setting.
git-svn-id: https://develop.svn.wordpress.org/trunk@191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c66e9fece3
commit
b9d1cbc37f
@ -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…
x
Reference in New Issue
Block a user