Merge pull request #86 from sjothen/master

Optimized stylesheet_link_tag
This commit is contained in:
Scott Walkinshaw
2011-07-11 13:36:12 -07:00

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" : "");
}