Ticket #3976: general_template_php.patch
File general_template_php.patch, 2.4 KB (added by , 18 years ago) |
---|
-
general-template.php
364 364 $text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year); 365 365 if ( $show_post_count ) 366 366 $after = ' ('.$arcresult->posts.')' . $afterafter; 367 // Allows language plugins to manipulate the presented text 368 $text = apply_filters('wp_get_archives', $text, 369 array('year' => $arcresult->year, 'month' => $arcresult->month), $type); 367 370 echo get_archives_link($url, $text, $format, $before, $after); 368 371 } 369 372 } … … 376 379 $text = sprintf('%d', $arcresult->year); 377 380 if ($show_post_count) 378 381 $after = ' ('.$arcresult->posts.')' . $afterafter; 382 // Allows language plugins to manipulate the presented text 383 $text = apply_filters('wp_get_archives', $text, 384 array('year' => $arcresult->year), $type); 379 385 echo get_archives_link($url, $text, $format, $before, $after); 380 386 } 381 387 } … … 389 395 $text = mysql2date($archive_day_date_format, $date); 390 396 if ($show_post_count) 391 397 $after = ' ('.$arcresult->posts.')'.$afterafter; 398 // Allows language plugins to manipulate the presented text 399 $text = apply_filters('wp_get_archives', $text, 400 array('year' => $arcresult->year, 'month' => $arcresult->month, 401 'day' => $arcresult->dayofmonth), $type); 392 402 echo get_archives_link($url, $text, $format, $before, $after); 393 403 } 394 404 } … … 409 419 $text = $arc_week_start . $archive_week_separator . $arc_week_end; 410 420 if ($show_post_count) 411 421 $after = ' ('.$arcresult->posts.')'.$afterafter; 422 // Allows language plugins to manipulate the presented text 423 $text = apply_filters('wp_get_archives', $text, 424 array('year' => $arcresult->yr, 'week'=>$arcresult->week), $type); 412 425 echo get_archives_link($url, $text, $format, $before, $after); 413 426 } 414 427 } … … 425 438 $text = strip_tags($arc_title); 426 439 else 427 440 $text = $arcresult->ID; 441 // Allows language plugins to manipulate the presented text 442 $text = apply_filters('wp_get_archives', $text, array(), $type); 428 443 echo get_archives_link($url, $text, $format, $before, $after); 429 444 } 430 445 }