Use str_repeat instead of array_fill. Bug 695. Patch from gbhugo.
git-svn-id: https://develop.svn.wordpress.org/trunk@2098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7577e661b5
commit
adf9a63fc8
@ -353,7 +353,8 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0) {
|
||||
$queried_obj = $wp_query->get_queried_object();
|
||||
|
||||
if($depth)
|
||||
$indent = join('', array_fill(0,$depth,"\t"));
|
||||
$indent = str_repeat("\t", $depth);
|
||||
//$indent = join('', array_fill(0,$depth,"\t"));
|
||||
|
||||
foreach($page_tree[$parent]['children'] as $page_id) {
|
||||
$cur_page = $page_tree[$page_id];
|
||||
|
Loading…
Reference in New Issue
Block a user