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

WordPress Trac noreply at wordpress.org
Tue Jun 10 00:29:37 UTC 2014


#10041: like_escape() should escape backslashes too
---------------------------------+-----------------------
 Reporter:  miau_jp              |       Owner:
     Type:  defect (bug)         |      Status:  reopened
 Priority:  high                 |   Milestone:  4.0
Component:  Formatting           |     Version:  2.8
 Severity:  normal               |  Resolution:
 Keywords:  4.0-early has-patch  |     Focuses:
---------------------------------+-----------------------

Comment (by wonderboymusic):

 In [changeset:"28711"]:
 {{{
 #!CommitTicketReference repository="" revision="28711"
 `LIKE` escape sanity:

 * Deprecate `like_escape()`
 * Add a method to `$wpdb`, `->esc_like()`, and add unit tests

 `$wpdb::esc_like()` is not used yet. As such, many unit tests will throw
 `Unexpected deprecated notice for like_escape`. Subsequent commits will
 alleviate this.

 Props miqrogroove.
 See #10041.
 }}}

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


More information about the wp-trac mailing list