[wp-trac] Re: [WordPress Trac] #2059: Slashes stripped in <pre>
(caused by #1793)
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 13 01:43:36 GMT 2007
#2059: Slashes stripped in <pre> (caused by #1793)
------------------------------------+---------------------------------------
Reporter: allan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: General | Version: 1.5.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+---------------------------------------
Comment (by mdawaffe):
Since wpautop can be called dozens of times per page loead, we should
probably not use create_function().
I suggest {{{preg_replace_callback( regex, 'clean_pre' )}}} and modifying
clean_pre() to accept ether the regex match array or a string of text for
backward compatibility.
Attached is a patch which does this based on DelGurth's create_function()
code.
--
Ticket URL: <http://trac.wordpress.org/ticket/2059#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list