diff --git a/wp-includes/media.php b/wp-includes/media.php
index 1e6a4e5..dbd1766 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -1588,6 +1588,20 @@ function img_caption_shortcode( $attr, $content = null ) {
 		$style = 'style="max-width: ' . (int) $caption_width . 'px" ';
 	}
 
+	/**
+	* Filters the style of an image's caption.
+	*
+	* @see img_caption_shortcode()
+	*
+	* @param string $style    the default style attribute
+	* @param int    $width    Width of the caption in pixels. To remove this inline style,
+	*                         return zero.
+	* @param array  $atts     Attributes of the caption shortcode.
+	* @param string $content  The image element, possibly wrapped in a hyperlink.
+	*/
+
+	$style = apply_filters( 'img_caption_shortcode_style', $style, $width, $atts, $content );
+
 	if ( $html5 ) {
 		$html = '<figure ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">'
 		. do_shortcode( $content ) . '<figcaption class="wp-caption-text">' . $atts['caption'] . '</figcaption></figure>';
