Make WordPress Core

Ticket #26642: 26642.patch

File 26642.patch, 712 bytes (added by bcworkz, 11 years ago)
  • src/wp-includes/media.php

     
    655655        if ( ! empty( $atts['id'] ) )
    656656                $atts['id'] = 'id="' . esc_attr( $atts['id'] ) . '" ';
    657657
    658         $caption_width = 10 + $atts['width'];
     658        $caption_width = $atts['width'];
    659659
    660660        /**
    661661         * Filter the width of an image's caption.
    662662         *
    663          * By default, the caption is 10 pixels greater than the width of the image,
    664          * to prevent post content from running up against a floated image.
    665          *
    666663         * @since 3.7.0
    667664         *
    668665         * @param int $caption_width Width in pixels. To remove this inline style, return zero.