File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change 21
21
"files" : [ " db-command.php" ]
22
22
},
23
23
"require" : {
24
- "wp-cli/wp-cli" : " * "
24
+ "wp-cli/wp-cli" : " >=1.5.0 "
25
25
},
26
26
"require-dev" : {
27
27
"behat/behat" : " ~2.5"
Original file line number Diff line number Diff line change @@ -947,7 +947,7 @@ public function search( $args, $assoc_args ) {
947
947
}
948
948
} else {
949
949
$ search_regex = '# ' . preg_quote ( $ search , '# ' ) . '#i ' ;
950
- $ esc_like_search = '% ' . self :: esc_like ( $ search ) . '% ' ;
950
+ $ esc_like_search = '% ' . Utils \ esc_like ( $ search ) . '% ' ;
951
951
}
952
952
953
953
$ encoding = null ;
@@ -1176,27 +1176,6 @@ private static function is_text_col( $type ) {
1176
1176
return false ;
1177
1177
}
1178
1178
1179
- /**
1180
- * Escapes a MySQL string for inclusion in a `LIKE` clause. BC wrapper around different WP versions of this.
1181
- *
1182
- * @param string $old String to escape.
1183
- * @param string Escaped string.
1184
- */
1185
- private static function esc_like ( $ old ) {
1186
- global $ wpdb ;
1187
-
1188
- // Remove notices in 4.0 and support backwards compatibility
1189
- if ( method_exists ( $ wpdb , 'esc_like ' ) ) {
1190
- // 4.0
1191
- $ old = $ wpdb ->esc_like ( $ old );
1192
- } else {
1193
- // 3.9 or less
1194
- $ old = like_escape ( esc_sql ( $ old ) );
1195
- }
1196
-
1197
- return $ old ;
1198
- }
1199
-
1200
1179
/**
1201
1180
* Escapes (backticks) MySQL identifiers (aka schema object names) - i.e. column names, table names, and database/index/alias/view etc names.
1202
1181
* See https://dev.mysql.com/doc/refman/5.5/en/identifiers.html
You can’t perform that action at this time.
0 commit comments