Fix day display in title. Props phKU. fixes #3801

git-svn-id: http://svn.automattic.com/wordpress/trunk@5106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-25 23:47:48 +00:00
parent f54a84be7d
commit 7f9aa3c350
1 changed files with 2 additions and 1 deletions

View File

@ -201,7 +201,8 @@ function wp_title($sep = '»', $display = true) {
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($m);
$title = "$my_year $sep $my_month"; $my_day = intval(substr($m, 6, 2));
$title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : "");
} }
if ( !empty($year) ) { if ( !empty($year) ) {