Changeset 6680 for trunk/wp-includes/formatting.php
- Timestamp:
- 01/29/2008 05:20:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r6632 r6680 1165 1165 return apply_filters('attribute_escape', $safe_text, $text); 1166 1166 } 1167 /** 1168 * Escapes text for SQL LIKE special characters % and _ 1169 * 1170 * @param string text the text to be escaped 1171 * @return string text, safe for inclusion in LIKE query 1172 */ 1173 function like_escape($text) { 1174 return str_replace(array("%", "_"), array("\\%", "\\_"), $text); 1175 } 1167 1176 1168 1177 function wp_make_link_relative( $link ) {
Note: See TracChangeset
for help on using the changeset viewer.