Changeset 53275
- Timestamp:
- 04/26/2022 11:42:37 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r53175 r53275 1069 1069 * @global wpdb $wpdb WordPress database abstraction object. 1070 1070 * 1071 * @param string $s tring1071 * @param string $search 1072 1072 * @return string 1073 1073 */ 1074 protected function get_search_sql( $s tring) {1074 protected function get_search_sql( $search ) { 1075 1075 global $wpdb; 1076 1076 1077 $like = '%' . $wpdb->esc_like( $s tring) . '%';1077 $like = '%' . $wpdb->esc_like( $search ) . '%'; 1078 1078 1079 1079 return $wpdb->prepare( '((t.name LIKE %s) OR (t.slug LIKE %s))', $like, $like );
Note: See TracChangeset
for help on using the changeset viewer.