Passing categories by ref screws up internal array pointer when recursing. fixes #7138 #7136

git-svn-id: https://develop.svn.wordpress.org/trunk@8086 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-14 17:22:52 +00:00
parent 244c4a66c6
commit 1e42089bb1
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function cat_rows( $parent = 0, $level = 0, $categories = 0, $page = 1, $per_pag
_cat_rows($categories, $count, $parent, $level, $page, $per_page);
}
function _cat_rows( &$categories, &$count, $parent = 0, $level = 0, $page = 1, $per_page = 20 ) {
function _cat_rows( $categories, &$count, $parent = 0, $level = 0, $page = 1, $per_page = 20 ) {
if ( empty($categories) ) {
$args = array('hide_empty' => 0);
if ( !empty($_GET['s']) )