From b4ef10ef8558d3b251e8272c8784002319cc999d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 25 Mar 2007 23:47:48 +0000 Subject: [PATCH] Fix day display in title. Props phKU. fixes #3801 git-svn-id: https://develop.svn.wordpress.org/trunk@5106 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 36e4738543..a50f479493 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -201,7 +201,8 @@ function wp_title($sep = '»', $display = true) { if ( !empty($m) ) { $my_year = substr($m, 0, 4); $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) ) {