diff --git a/wp-includes/media.php b/wp-includes/media.php index ac00490119..041c4e561d 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -823,7 +823,9 @@ function gallery_shortcode($attr) { $selector = "gallery-{$instance}"; - $output = apply_filters('gallery_style', " + $gallery_style = $gallery_div = ''; + if ( apply_filters( 'use_default_gallery_style', true ) ) + $gallery_style = " - -