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:
Ryan Boren 2005-01-15 15:51:31 +00:00
parent 7577e661b5
commit adf9a63fc8

View File

@ -353,7 +353,8 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0) {
$queried_obj = $wp_query->get_queried_object(); $queried_obj = $wp_query->get_queried_object();
if($depth) 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) { foreach($page_tree[$parent]['children'] as $page_id) {
$cur_page = $page_tree[$page_id]; $cur_page = $page_tree[$page_id];