[wp-cvs] wordpress/wp-includes template-functions-general.php, 1.54, 1.55

Michel Valdrighi michelvaldrighi at users.sourceforge.net
Mon Oct 18 23:45:29 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12968/wp-includes

Modified Files:
	template-functions-general.php 
Log Message:
fixed single_month_title. thanks to Brak (http://wordpress.org/support/6/14897)

Index: template-functions-general.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-general.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** template-functions-general.php	13 Oct 2004 03:20:03 -0000	1.54
--- template-functions-general.php	18 Oct 2004 23:45:26 -0000	1.55
***************
*** 217,228 ****
  
  function single_month_title($prefix = '', $display = true ) {
! 	global $m, $month;
! 	if(!empty($m)) {
! 		$my_year = substr($m, 0, 4);
! 		$my_month = $month[substr($m, 4, 2)];
! 		if ($display)
! 			echo $prefix . $my_month . $prefix . $my_year;
! 		else
! 			return $m;
  	}
  }
--- 217,229 ----
  
  function single_month_title($prefix = '', $display = true ) {
! 	global $monthnum, $month, $year;
! 	if(!empty($monthnum)) {
! 		$my_year = $year;
! 		$my_month = $month[$monthnum];
! 		if ($display) {
! 			echo $prefix . $my_month . $prefix . " " . $my_year;
! 		} else {
! 			return $monthnum;
! 		}
  	}
  }
***************
*** 632,634 ****
  }
  
! ?>
\ No newline at end of file
--- 633,635 ----
  }
  
! ?>




More information about the cvs mailing list