[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too
WordPress Trac
noreply at wordpress.org
Wed Apr 16 22:50:45 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:
------------------------------------+-----------------------------
Comment (by miqrogroove):
Patch attached.
Denis, thanks for the suggestions. I decided to start with esc_like() for
consistency, and IMO the name is not going to help or hurt developers. I
put some nice big doc blocks in there. If that isn't clear enough, then
we would need something more drastic than a new name.
Also, I agree with your earlier comment that quotes are not special at the
like layer. We don't need addslashes(). It makes an already complicated
situation that much worse.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list