Ticket #4969: 4969.diff
| File 4969.diff, 969 bytes (added by , 15 years ago) |
|---|
-
general-template.php
867 867 'type' => 'monthly', 'limit' => '', 868 868 'format' => 'html', 'before' => '', 869 869 'after' => '', 'show_post_count' => false, 870 'title' => '', 'title_before' => '', 'title_after' => '', 871 'list_before' => '', 'list_after' => '', 870 872 'echo' => 1 871 873 ); 872 874 … … 906 908 907 909 $output = ''; 908 910 911 $output .= $list_before; 912 913 if( '' != $title ) 914 $output .= $title_before . $title . $title_after; 915 909 916 if ( 'monthly' == $type ) { 910 917 $query = "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts $join $where GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC $limit"; 911 918 $key = md5($query); … … 1027 1034 } 1028 1035 } 1029 1036 } 1037 1038 $output .= $list_after; 1039 1030 1040 if ( $echo ) 1031 1041 echo $output; 1032 1042 else