Make WordPress Core

Ticket #16610: 16610.2.diff

File 16610.2.diff, 1.1 KB (added by nacin, 14 years ago)
  • wp-content/themes/twentyten/functions.php

     
    303303function twentyten_remove_gallery_css( $css ) {
    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' ) ) :
    308311/**
     
    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.
    445448 *
     449 * This function uses a filter, show_recent_comments_widget_style, that is new in
     450 * WordPress 3.1. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles, but they
     451 * won't have any effect on the widget in default Twenty Ten styling.
     452 *
    446453 * @since Twenty Ten 1.0
    447454 */
    448455function twentyten_remove_recent_comments_style() {