From 80373058d9687719c1061ad2c3a04bab30905805 Mon Sep 17 00:00:00 2001 From: rboren 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: http://svn.automattic.com/wordpress/trunk@2098 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 b00a9873f..8a4be9b1c 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];