[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too
WordPress Trac
noreply at wordpress.org
Fri May 9 14:41:09 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: 4.0-early has-patch | Focuses:
---------------------------------+-----------------------------
Comment (by miqrogroove):
Status update: I'm hoping to get this patch on the 4.0 milestone ASAP.
It needs to be early.
miqro-10041.2.patch has these main features:
in wp-includes/formatting.php correct the escaping function, rename it to
esc_like(), and add documentation of appropriate usage.
in wp-includes/deprecated.php make a new home for the old like_escape().
add tests/formatting/EscLike.php with real $wpdb tests instead of
ambiguous I/O strings.
delete tests/formatting/LikeEscape.php
All other files involved have calls to $wpdb that were not correct before
the patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list