mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Some fixes for E_ALL.
git-svn-id: https://develop.svn.wordpress.org/trunk@1236 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -41,7 +41,7 @@ function get_nested_categories($default = 0) {
|
||||
$array_category = get_object_vars($category);
|
||||
$me = 0 + $category->cat_ID;
|
||||
$parent = 0 + $category->category_parent;
|
||||
$array_category['children'] = $result[$me];
|
||||
if (isset($result[$me])) $array_category['children'] = $result[$me];
|
||||
$array_category['checked'] = in_array($category->cat_ID, $checked_categories);
|
||||
$array_category['cat_name'] = stripslashes($category->cat_name);
|
||||
$result[$parent][] = $array_category;
|
||||
@@ -58,7 +58,7 @@ function write_nested_categories($categories) {
|
||||
|
||||
if(isset($category['children'])) {
|
||||
echo "\n<span class='cat-nest'>\n";
|
||||
write_nested_categories($category['children'], $count);
|
||||
write_nested_categories($category['children']);
|
||||
echo "</span>\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user