Ticket #16610: 16610.diff
File 16610.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 /** … … 447 450 */ 448 451 function twentyten_remove_recent_comments_style() { 449 452 add_filter( 'show_recent_comments_widget_style', '__return_false' ); 453 454 // Backwards compatibility with WordPress 3.0. 455 if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) { 456 global $wp_widget_factory; 457 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 458 } 450 459 } 451 460 add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); 452 461