| 1 | 193c193 |
|---|
| 2 | < function get_month_link($year, $month) { |
|---|
| 3 | --- |
|---|
| 4 | > function get_month_link($year, $month, $cat_id=0) { |
|---|
| 5 | 198a199,201 |
|---|
| 6 | > if ( ( $cat_id != 0 ) && ( intval( $cat_id ) == $cat_id ) ) |
|---|
| 7 | > $cat_link = "&cat=$cat_id"; |
|---|
| 8 | > else $cat_link = ''; |
|---|
| 9 | 203c206 |
|---|
| 10 | < return apply_filters('month_link', get_option('home') . user_trailingslashit($monthlink, 'month'), $year, $month); |
|---|
| 11 | --- |
|---|
| 12 | > return apply_filters('month_link', get_option('home') . user_trailingslashit($monthlink, 'month') . $cat_link, $year, $month); |
|---|
| 13 | 205c208 |
|---|
| 14 | < return apply_filters('month_link', get_option('home') . '/?m=' . $year . zeroise($month, 2), $year, $month); |
|---|
| 15 | --- |
|---|
| 16 | > return apply_filters('month_link', get_option('home') . '/?m=' . $year . zeroise($month, 2) . $cat_link, $year, $month); |
|---|
| 17 | 209c212 |
|---|
| 18 | < function get_day_link($year, $month, $day) { |
|---|
| 19 | --- |
|---|
| 20 | > function get_day_link($year, $month, $day, $cat_id=0) { |
|---|
| 21 | 216a220,222 |
|---|
| 22 | > if ( ( $cat_id != 0 ) && ( intval( $cat_id ) == $cat_id ) ) |
|---|
| 23 | > $cat_link = "&cat=$cat_id"; |
|---|
| 24 | > else $cat_link = ''; |
|---|
| 25 | 223c229 |
|---|
| 26 | < return apply_filters('day_link', get_option('home') . user_trailingslashit($daylink, 'day'), $year, $month, $day); |
|---|
| 27 | --- |
|---|
| 28 | > return apply_filters('day_link', get_option('home') . user_trailingslashit($daylink, 'day') . $cat_link, $year, $month, $day); |
|---|
| 29 | 225c231 |
|---|
| 30 | < return apply_filters('day_link', get_option('home') . '/?m=' . $year . zeroise($month, 2) . zeroise($day, 2), $year, $month, $day); |
|---|
| 31 | --- |
|---|
| 32 | > return apply_filters('day_link', get_option('home') . '/?m=' . $year . zeroise($month, 2) . zeroise($day, 2) . $cat_link, $year, $month, $day); |
|---|