diff --git a/lib/cleanup.php b/lib/cleanup.php index f966ca6..5828dad 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -163,7 +163,7 @@ function roots_caption($output, $attr, $content) { // Set up the attributes for the caption
$attributes = (!empty($attr['id']) ? ' id="' . esc_attr($attr['id']) . '"' : '' ); $attributes .= ' class="thumbnail wp-caption ' . esc_attr($attr['align']) . '"'; - $attributes .= ' style="width: ' . esc_attr($attr['width']) . 'px"'; + $attributes .= ' style="width: ' . (esc_attr($attr['width']) + 10) . 'px"'; $output = ''; $output .= do_shortcode($content);