diff --git a/wp-includes/media.php b/wp-includes/media.php
index 1e6a4e5..dbd1766 100644
a
|
b
|
function img_caption_shortcode( $attr, $content = null ) { |
1588 | 1588 | $style = 'style="max-width: ' . (int) $caption_width . 'px" '; |
1589 | 1589 | } |
1590 | 1590 | |
| 1591 | /** |
| 1592 | * Filters the style of an image's caption. |
| 1593 | * |
| 1594 | * @see img_caption_shortcode() |
| 1595 | * |
| 1596 | * @param string $style the default style attribute |
| 1597 | * @param int $width Width of the caption in pixels. To remove this inline style, |
| 1598 | * return zero. |
| 1599 | * @param array $atts Attributes of the caption shortcode. |
| 1600 | * @param string $content The image element, possibly wrapped in a hyperlink. |
| 1601 | */ |
| 1602 | |
| 1603 | $style = apply_filters( 'img_caption_shortcode_style', $style, $width, $atts, $content ); |
| 1604 | |
1591 | 1605 | if ( $html5 ) { |
1592 | 1606 | $html = '<figure ' . $atts['id'] . $style . 'class="' . esc_attr( $class ) . '">' |
1593 | 1607 | . do_shortcode( $content ) . '<figcaption class="wp-caption-text">' . $atts['caption'] . '</figcaption></figure>'; |