[wp-cvs] wordpress/wp-includes functions.php,1.207,1.208
Ryan Boren
rboren at users.sourceforge.net
Wed Nov 10 00:21:27 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18552
Modified Files:
functions.php
Log Message:
Avoid polluting the category cache with duplicate category lists when using multiple post loops. http://wordpress.org/support/6/15213. Fix from Owen Winkler.
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.207
retrieving revision 1.208
diff -C2 -d -r1.207 -r1.208
*** functions.php 9 Nov 2004 02:31:48 -0000 1.207
--- functions.php 10 Nov 2004 00:21:24 -0000 1.208
***************
*** 1722,1726 ****
if (!empty($dogs)) {
foreach ($dogs as $catt) {
! $category_cache[$catt->ID][] = $catt;
}
}
--- 1722,1726 ----
if (!empty($dogs)) {
foreach ($dogs as $catt) {
! $category_cache[$catt->ID][$catt->category_id] = $catt;
}
}
More information about the cvs
mailing list