Skip to content

Commit b571350

Browse files
committed
Fix bug in option list command
1 parent f33cacc commit b571350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Site_Option_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ public function list_( $args, $assoc_args ) {
182182
}
183183

184184
$query = $wpdb->prepare(
185-
'SELECT `meta_id`, `site_id`, `meta_key`,`meta_value`%s'
185+
'SELECT `meta_id`, `site_id`, `meta_key`,`meta_value`'
186+
. $size_query // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- Hard-coded partial query without user input.
186187
. " FROM `$wpdb->sitemeta` WHERE `meta_key` LIKE %s",
187-
$size_query,
188188
$pattern
189189
);
190190

0 commit comments

Comments
 (0)