[wp-cvs]
wordpress/wp-includes template-functions-category.php, 1.39,
1.40 template-functions-links.php, 1.41, 1.42
Ryan Boren
rboren at users.sourceforge.net
Fri Nov 12 23:08:55 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3078
Modified Files:
template-functions-category.php template-functions-links.php
Log Message:
Sort the category list so that index associations are made non-sparse.
Index: template-functions-links.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-links.php,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** template-functions-links.php 22 Oct 2004 21:44:00 -0000 1.41
--- template-functions-links.php 12 Nov 2004 23:08:51 -0000 1.42
***************
*** 53,57 ****
return get_page_link();
}
!
$permalink = get_settings('permalink_structure');
--- 53,57 ----
return get_page_link();
}
!
$permalink = get_settings('permalink_structure');
Index: template-functions-category.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-category.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** template-functions-category.php 10 Aug 2004 05:35:59 -0000 1.39
--- template-functions-category.php 12 Nov 2004 23:08:51 -0000 1.40
***************
*** 9,13 ****
if ($category_cache[$id]) {
! return $category_cache[$id];
} else {
$categories = $wpdb->get_results("
--- 9,13 ----
if ($category_cache[$id]) {
! $categories = $category_cache[$id];
} else {
$categories = $wpdb->get_results("
***************
*** 17,22 ****
");
- return $categories;
}
}
--- 17,24 ----
");
}
+
+ sort($categories);
+ return $categories;
}
More information about the cvs
mailing list