Make WordPress Core

Changeset 13552


Ignore:
Timestamp:
03/02/2010 06:08:14 PM (15 years ago)
Author:
nacin
Message:

Remove only gallery CSS in twentyten, leaving the gallery div classes and id intact. see #9015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13441 r13552  
    140140// Remove inline styles on gallery shortcode
    141141if ( ! function_exists( 'twentyten_remove_gallery_css' ) ) :
    142 function twentyten_remove_gallery_css() {
    143     return "\t\t<div class='gallery'>\n\t\t";
     142function twentyten_remove_gallery_css( $css ) {
     143    return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
    144144}
    145145endif;
Note: See TracChangeset for help on using the changeset viewer.