Ticket #26642: 26642.patch
File 26642.patch, 712 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/media.php
655 655 if ( ! empty( $atts['id'] ) ) 656 656 $atts['id'] = 'id="' . esc_attr( $atts['id'] ) . '" '; 657 657 658 $caption_width = 10 +$atts['width'];658 $caption_width = $atts['width']; 659 659 660 660 /** 661 661 * Filter the width of an image's caption. 662 662 * 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 *666 663 * @since 3.7.0 667 664 * 668 665 * @param int $caption_width Width in pixels. To remove this inline style, return zero.