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 there's a month
|
||||||
if ( !empty($m) ) {
|
if ( !empty($m) ) {
|
||||||
$my_year = substr($m, 0, 4);
|
$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));
|
$my_day = intval(substr($m, 6, 2));
|
||||||
$title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : "");
|
$title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue