WordPress.org

Make WordPress Core

Changeset 12957


Ignore:
Timestamp:
02/04/2010 09:40:02 PM (12 years ago)
Author:
westi
Message:

Revert [12460] for now while we consider a better fix. See #10041

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r12912 r12957  
    24152415 */
    24162416function like_escape($text) {
    2417     return addcslashes($text, '\\%_');
     2417    return str_replace(array("%", "_"), array("\\%", "\\_"), $text);
    24182418}
    24192419
Note: See TracChangeset for help on using the changeset viewer.