Changeset 28711 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 06/10/2014 12:29:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r28710 r28711 3460 3460 3461 3461 /** 3462 * Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described. 3463 * 3464 * @since 2.5.0 3465 * @deprecated 4.0.0 3466 * @deprecated Use wpdb::esc_like() 3467 * 3468 * @param string $text The text to be escaped. 3469 * @return string text, safe for inclusion in LIKE query. 3470 */ 3471 function like_escape($text) { 3472 _deprecated_function( __FUNCTION__, '4.0', 'wpdb::esc_like()' ); 3473 return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text ); 3474 } 3475 3476 /** 3462 3477 * Determines if the URL can be accessed over SSL. 3463 3478 *
Note: See TracChangeset
for help on using the changeset viewer.