dev: fix wca test helper option search wildcards (#41503)

fix wca test helper option search wildcards
This commit is contained in:
RJ 2023-11-21 11:18:45 +08:00 committed by GitHub
parent 7d465c406a
commit a32e1a3922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,7 @@ function wca_test_helper_get_options( $request ) {
if ( $search ) {
$search = $wpdb->esc_like( $search );
$search = "%{$search}%";
$query .= ' WHERE option_name LIKE %s';
}

View File

@ -0,0 +1,4 @@
Significance: minor
Type: add
Fix option search that accidentally had its wildcards removed