Changeset 29163 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 07/14/2014 01:01:22 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/wp-db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r28978 r29163 1189 1189 * 1190 1190 * @since 4.0.0 1191 * 1192 * @param string $text The raw text to be escaped. The input typed by the user should have no extra or deleted slashes. 1193 * @return string Text in the form of a LIKE phrase. The output is not SQL safe. Call prepare or real_escape next. 1194 */ 1195 function esc_like( $text ) { 1191 * @access public 1192 * 1193 * @param string $text The raw text to be escaped. The input typed by the user should have no 1194 * extra or deleted slashes. 1195 * @return string Text in the form of a LIKE phrase. The output is not SQL safe. Call $wpdb::prepare() 1196 * or real_escape next. 1197 */ 1198 public function esc_like( $text ) { 1196 1199 return addcslashes( $text, '_%\\' ); 1197 1200 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)