From 94585cd62f5d231917faf36073de99a774e9cee3 Mon Sep 17 00:00:00 2001 From: Steve Jothen Date: Mon, 11 Jul 2011 13:24:17 -0700 Subject: [PATCH] Optimize stylesheet_link_tag function. --- inc/roots-actions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/inc/roots-actions.php b/inc/roots-actions.php index a0b43b7..671c565 100644 --- a/inc/roots-actions.php +++ b/inc/roots-actions.php @@ -111,12 +111,7 @@ function roots_get_stylesheets() { } function stylesheet_link_tag($file, $tabs = 0, $newline = true) { - $i = 0; - $indent = ''; - while ($i < $tabs) { - $indent .= "\t"; - $i++; - } + $indent = str_repeat("\t", $tabs); return $indent . '' . ($newline ? "\n" : ""); }