[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too

WordPress Trac noreply at wordpress.org
Wed Apr 2 01:42:21 UTC 2014


#10041: like_escape() should escape backslashes too
------------------------------------+-----------------------------
 Reporter:  miau_jp                 |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  high                    |   Milestone:  Future Release
Component:  Formatting              |     Version:  2.8
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback 4.0-early  |     Focuses:
------------------------------------+-----------------------------
Changes (by miqrogroove):

 * keywords:  has-patch has-unit-tests 3.2-early => dev-feedback 4.0-early


Comment:

 I'm working on a proper patch that will take about 700 lines to get this
 fixed and add the needed unit tests.

 Rather than posting a work in progress, I'm waiting for some guidance from
 the lead developers.  They are super busy with the 3.9 milestone right
 now, so it will be some weeks before there is more progress.

 I'm thinking like_escape() needs to be deprecated at this point.  The
 problem with tweaking the existing function is that we can't very well
 patch all of the plugins that are using it.  I think this is why slashes
 were never escaped during all this time.  Changing the existing function
 would affect how and where it can be used, and everywhere else it would be
 broken.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list