Changeset 13147 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 11/13/2021 06:40:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r13140 r13147 93 93 * @since 1.2.6 94 94 * 95 * @global object$wpdb WordPress database object.95 * @global wpdb $wpdb WordPress database object. 96 96 * 97 97 * @return string Filtered database prefix. … … 384 384 * @since 2.1.0 385 385 * 386 * @global wpdb $wpdb WordPress database object. 386 387 * @see wpdb::esc_like() for more details on proper use. 387 388 * … … 395 396 if ( method_exists( $wpdb, 'esc_like' ) ) { 396 397 return $wpdb->esc_like( $text ); 397 } else {398 return addcslashes( $text, '_%\\' ); 399 }398 } 399 400 return addcslashes( $text, '_%\\' ); 400 401 } 401 402
Note: See TracChangeset
for help on using the changeset viewer.