escaped slashes in preg_replace pattern

This commit is contained in:
Matthew Wrather
2011-07-18 13:32:47 -07:00
parent 206cb0b1fc
commit ec8aab5f8a

View File

@@ -176,7 +176,7 @@ function roots_remove_recent_comments_style() {
// remove CSS from gallery
function roots_gallery_style($css) {
return preg_replace("/<style type='text/css'>(.*?)</style>/s", '', $css);
return preg_replace("/<style type='text\/css'>(.*?)<\/style>/s", '', $css);
}
function roots_head_cleanup() {