WordPress.org

Make WordPress Core

Ticket #4969: 4969.diff

File 4969.diff, 969 bytes (added by wojtek.szkutnik, 8 years ago)
  • general-template.php

     
    867867                'type' => 'monthly', 'limit' => '',
    868868                'format' => 'html', 'before' => '',
    869869                'after' => '', 'show_post_count' => false,
     870                'title' => '', 'title_before' => '', 'title_after' => '',
     871                'list_before' => '', 'list_after' => '',
    870872                'echo' => 1
    871873        );
    872874
     
    906908
    907909        $output = '';
    908910
     911        $output .= $list_before;
     912       
     913        if( '' != $title )
     914                $output .= $title_before . $title . $title_after;
     915       
    909916        if ( 'monthly' == $type ) {
    910917                $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";
    911918                $key = md5($query);
     
    10271034                        }
    10281035                }
    10291036        }
     1037       
     1038        $output .= $list_after;
     1039       
    10301040        if ( $echo )
    10311041                echo $output;
    10321042        else