mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-02 11:21:57 +01:00
Remove only gallery CSS in twentyten, leaving the gallery div classes and id intact. see #9015
git-svn-id: http://svn.automattic.com/wordpress/trunk@13552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
95623b4ce5
commit
a17a92274b
@ -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