[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too
WordPress Trac
noreply at wordpress.org
Sat Apr 5 08:38:05 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 Denis-de-Bernardy):
Replying to [comment:27 miqrogroove]:
> I'm thinking like_escape() needs to be deprecated at this point.
If you do, can I suggest naming the new function as `quote_like()` or
`quote_like_sql()` rather than `esc_like()` or `esc_like_sql()`, to make
it clearer that it's not actually escaping anything, but merely quoting
LIKE special chars.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list