Optimize stylesheet_link_tag function.

This commit is contained in:
Steve Jothen
2011-07-11 13:24:17 -07:00
parent 4192053c3b
commit 94585cd62f

View File

@@ -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 . '<link rel="stylesheet" href="' . get_template_directory_uri() . '/css' . $file . '">' . ($newline ? "\n" : "");
}