mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix months in wp_title(). fixes #4043
git-svn-id: http://svn.automattic.com/wordpress/trunk@5137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
19649b35f7
commit
cb7570b4cc
@ -201,7 +201,7 @@ function wp_title($sep = '»', $display = true) {
|
||||
// If there's a month
|
||||
if ( !empty($m) ) {
|
||||
$my_year = substr($m, 0, 4);
|
||||
$my_month = $wp_locale->get_month($m);
|
||||
$my_month = $wp_locale->get_month(substr($m, 4, 2));
|
||||
$my_day = intval(substr($m, 6, 2));
|
||||
$title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user