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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-06-14 17:22:52 +00:00
parent 437ba6e7b3
commit e707cb2ff0
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']) )