Ticket #24813: 24813.diff
| File 24813.diff, 1.2 KB (added by , 13 years ago) |
|---|
-
wp-includes/class.wp-styles.php
87 87 88 88 if ( $this->do_concat ) { 89 89 $this->print_html .= $tag; 90 $this->print_html .= $this->print_inline_style( $handle, false);90 $this->print_html .= sprintf( "<style type='text/css'>\n%s\n</style>\n", $this->print_inline_style( $handle, false ) ); 91 91 } else { 92 92 echo $tag; 93 echo $this->print_inline_style( $handle, false );93 $this->print_inline_style( $handle ); 94 94 } 95 95 96 96 return true; -
wp-includes/functions.wp-styles.php
71 71 $wp_styles = new WP_Styles(); 72 72 } 73 73 74 if ( false !== stripos( $data, '</style>' ) ) { 75 _doing_it_wrong( __FUNCTION__, 'Do not pass <style> tags to wp_add_inline_style()', '3.7' ); 76 $data = preg_replace( '<style[^>]*>(.*)</style>i', '$1', $data ); 77 } 78 74 79 return $wp_styles->add_inline_style( $handle, $data ); 75 80 } 76 81