[wp-cvs] wordpress/wp-includes template-functions-links.php, 1.49, 1.50

Ryan Boren rboren at users.sourceforge.net
Tue Jan 25 05:01:57 GMT 2005


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

Modified Files:
	template-functions-links.php 
Log Message:
If a category has parents, include those parents when generating the post permalink (if the permalink contains %category%).

Index: template-functions-links.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-links.php,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** template-functions-links.php	22 Jan 2005 03:45:34 -0000	1.49
--- template-functions-links.php	25 Jan 2005 05:01:54 -0000	1.50
***************
*** 57,60 ****
--- 57,62 ----
  		$cats = get_the_category($idpost->ID);
  		$category = $cats[0]->category_nicename;
+ 		if ($parent=$cats[0]->category_parent) $category = get_category_parents($parent, FALSE, '/', TRUE) . $category;
+ 
  		$authordata = get_userdata($idpost->post_author);
  		$author = $authordata->user_nicename;



More information about the cvs mailing list