Skip to content

Commit 3c41965

Browse files
Copilotswissspidy
andcommitted
Fix callback filter: restore stripos for substring matching after name normalization
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> Agent-Logs-Url: https://github.com/wp-cli/profile-command/sessions/03bb039a-1130-42cb-b79e-f3182e25c4e5
1 parent 4e585ae commit 3c41965

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ public function queries( $args, $assoc_args ) {
610610
// Normalize callback for comparison
611611
$normalized_callback = trim((string) $logger->callback);
612612
$normalized_filter = trim($callback);
613-
if ( 0 !== strcasecmp( $normalized_callback, $normalized_filter ) ) {
613+
if ( false === stripos( $normalized_callback, $normalized_filter ) ) {
614614
continue;
615615
}
616616
}

0 commit comments

Comments
 (0)