From 92dee5ad5e93461691cbee0069b74170f8c6744a Mon Sep 17 00:00:00 2001 From: bjornerik Date: Mon, 28 Oct 2013 21:01:24 +0100 Subject: [PATCH] Add 10 px to the width of
to avoid figure overflow --- lib/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);