fixed single_month_title. thanks to Brak (http://wordpress.org/support/6/14897)
git-svn-id: http://svn.automattic.com/wordpress/trunk@1815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
16d9e709ea
commit
d6928c9df3
|
@ -216,14 +216,15 @@ function single_cat_title($prefix = '', $display = true ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function single_month_title($prefix = '', $display = true ) {
|
function single_month_title($prefix = '', $display = true ) {
|
||||||
global $m, $month;
|
global $monthnum, $month, $year;
|
||||||
if(!empty($m)) {
|
if(!empty($monthnum)) {
|
||||||
$my_year = substr($m, 0, 4);
|
$my_year = $year;
|
||||||
$my_month = $month[substr($m, 4, 2)];
|
$my_month = $month[$monthnum];
|
||||||
if ($display)
|
if ($display) {
|
||||||
echo $prefix . $my_month . $prefix . $my_year;
|
echo $prefix . $my_month . $prefix . " " . $my_year;
|
||||||
else
|
} else {
|
||||||
return $m;
|
return $monthnum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue