Remove only gallery CSS in twentyten, leaving the gallery div classes and id intact. see #9015
git-svn-id: https://develop.svn.wordpress.org/trunk@13552 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a2d1ad6ec
commit
49de79c941
@ -139,8 +139,8 @@ endif;
|
|||||||
|
|
||||||
// Remove inline styles on gallery shortcode
|
// Remove inline styles on gallery shortcode
|
||||||
if ( ! function_exists( 'twentyten_remove_gallery_css' ) ) :
|
if ( ! function_exists( 'twentyten_remove_gallery_css' ) ) :
|
||||||
function twentyten_remove_gallery_css() {
|
function twentyten_remove_gallery_css( $css ) {
|
||||||
return "\t\t<div class='gallery'>\n\t\t";
|
return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
|
add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
|
||||||
|
Loading…
Reference in New Issue
Block a user