From adf9a63fc80baf48bc2db8860146b27073f80fa0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 15 Jan 2005 15:51:31 +0000 Subject: [PATCH] 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 --- wp-includes/template-functions-post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index b00a9873fb..8a4be9b1c4 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -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];