Changeset 28711 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/10/2014 12:29:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r28708 r28711 3101 3101 3102 3102 /** 3103 * Escapes text for SQL LIKE special characters % and _.3104 *3105 * @since 2.5.03106 *3107 * @param string $text The text to be escaped.3108 * @return string text, safe for inclusion in LIKE query.3109 */3110 function like_escape($text) {3111 return str_replace(array("%", "_"), array("\\%", "\\_"), $text);3112 }3113 3114 /**3115 3103 * Convert full URL paths to absolute paths. 3116 3104 *
Note: See TracChangeset
for help on using the changeset viewer.