Adding break to case statements + consistent formatting - fixes #35

This commit is contained in:
Scott Walkinshaw
2011-04-23 11:12:29 -06:00
parent 6bc3a6bcf3
commit 992a9e9240
2 changed files with 27 additions and 15 deletions

View File

@@ -255,13 +255,13 @@ function roots_gallery_shortcode($attr) {
// make the gallery link to the file by default instead of the attachment
// thanks to Matt Price (countingrows.com)
switch($attr['link']) {
case 'file' :
case 'file':
$link = wp_get_attachment_link($id, $size, false, false);
break;
case 'attachment' :
case 'attachment':
$link = wp_get_attachment_link($id, $size, true, false);
break;
default :
default:
$link = wp_get_attachment_link($id, $size, false, false);
break;
}