mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-25 21:54:28 +00:00
Fix day display in title. Props phKU. fixes #3801
git-svn-id: https://develop.svn.wordpress.org/trunk@5106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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) ) {
|
||||
|
||||
Reference in New Issue
Block a user