[wp-trac] Re: [WordPress Trac] #3621: wpautop() should not break up
script and object tags
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 8 00:51:25 GMT 2007
#3621: wpautop() should not break up script and object tags
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2
Component: General | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment (by dllmain):
I had trouble with broken object tags in 2.1.2, too.
I fixed this in another way that at least worked with
raw posts from phpMyAdmin.
I changed line 75 of ''formatting.php'' from
{{{
$pee = preg_replace('/<(script|style).*?<\/\\1>/se', 'str_replace("\n",
"<WPPreserveNewline />", "\\0")', $pee);
}}}
to
{{{
$pee = preg_replace('/<(object|script|style).*?<\/\\1>/se',
'str_replace("\n", "<WPPreserveNewline />", "\\0")', $pee);
}}}
I have no idea what that code actually is doing - just though I should
share this.
Would be great if you could save me patching this in future releases.
--
Ticket URL: <http://trac.wordpress.org/ticket/3621#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list