Make WordPress Core

Changeset 17478


Ignore:
Timestamp:
02/22/2011 08:23:30 AM (14 years ago)
Author:
nacin
Message:

Back compat with the gallery_style filter in Twenty Ten. fixes #16610 for trunk.

File:
1 edited

Legend:

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

    r17212 r17478  
    304304    return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
    305305}
     306// Backwards compatibility with WordPress 3.0.
     307if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) )
     308    add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
    306309
    307310if ( ! function_exists( 'twentyten_comment' ) ) :
     
    443446 * To override this in a child theme, remove the filter and optionally add your own
    444447 * function tied to the widgets_init action hook.
     448 *
     449 * This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1
     450 * to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles,
     451 * but they won't have any effect on the widget in default Twenty Ten styling.
    445452 *
    446453 * @since Twenty Ten 1.0
Note: See TracChangeset for help on using the changeset viewer.