[wp-trac] Re: [WordPress Trac] #9822: Quick Edit loses \ in the
post content
WordPress Trac
wp-trac at lists.automattic.com
Thu May 14 19:24:03 GMT 2009
#9822: Quick Edit loses \ in the post content
--------------------------+-------------------------------------------------
Reporter: hailin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by hailin):
I think the underlying reason is that
we always assume PHP directive magic_quotes_gpc is on, since it's on by
default.
Therefore, for any piece of post data, the outer layer of insertion
functions strips off \ to produce the 'clean' data.
Then in several cases (#9199 and this case, and perhaps #9727), data is
actually read from db, so it is already clean. In order to make the above
logic work, we need to arbitrarily add \
In my opinion, PHP magic_quotes_gpc is the root of these types of troubles
:)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9822#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list