Ticket #16610: 16610.2.diff
File 16610.2.diff, 1.1 KB (added by , 14 years ago) |
---|
-
wp-content/themes/twentyten/functions.php
303 303 function twentyten_remove_gallery_css( $css ) { 304 304 return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); 305 305 } 306 // Backwards compatibility with WordPress 3.0. 307 if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) 308 add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); 306 309 307 310 if ( ! function_exists( 'twentyten_comment' ) ) : 308 311 /** … … 443 446 * To override this in a child theme, remove the filter and optionally add your own 444 447 * function tied to the widgets_init action hook. 445 448 * 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 * 446 453 * @since Twenty Ten 1.0 447 454 */ 448 455 function twentyten_remove_recent_comments_style() {