Plugin Directory

Changeset 140182


Ignore:
Timestamp:
07/28/2009 07:12:05 PM (17 years ago)
Author:
mstegink
Message:

Another try on improving the readme, and corrected the default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • charted-archives/trunk/ChartedArchives.php

    r140179 r140182  
    1515function Charted_Archives($rows) {
    1616    global $wpdb;
    17     if ($rows == '' || $rows == 0) { $rows = 10; }
     17    if ($rows == '' || $rows == 0) { $rows = 7; }
    1818    $sql = 'select count(*) as n, monthname(post_date) as monthname, month(post_date) as month, year(post_date) as year from wp_posts where post_type = "post" group by year, month order by year desc, month desc limit ' . $rows;
    1919    $months = $wpdb->get_results($sql);
Note: See TracChangeset for help on using the changeset viewer.