[wp-trac] [WordPress Trac] #9199: \ is lost in post revisions
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 21 01:30:59 GMT 2009
#9199: \ is lost in post revisions
--------------------------+-------------------------------------------------
Reporter: hailin | Owner: anonymous
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.7.2
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
\ \add \sub etc in either title or content is lost in post revisions, and
when restore from post revisions.
It's easy to test, eg, with the following simple post
title: test \
Content: hello \ and \add
\ is lost in every revision, and when restore from revision.
This creates big problems as many math expressions such as LaTeX
contains \ Many keywords begin with \
For example: \add \sub \multiple \left \right
The root cause is that wp_insert_post stripslahses, assuming slashes are
added to the input. This is not the case when we read data from db. The
fix I proposed here identified two such places and fixed this above issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9199>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list