auto-patch 638-dev-dev01-2024-05-14T20_44_36

This commit is contained in:
root
2024-05-14 20:44:36 +00:00
parent a941559057
commit 5dbb0b284e
1812 changed files with 29671 additions and 14588 deletions

View File

@@ -337,6 +337,16 @@ function relevanssi_output_exported_log( string $filename, array $data, string $
}
fputcsv( $df, array_keys( reset( $data ) ) );
foreach ( $data as $row ) {
if (
in_array(
substr( $row['query'], 0, 1 ),
array( '=', '-', '"', '@', '+' ),
true
)
) {
$row['query'] = ' ' . $row['query'];
$row['query'] = str_replace( "\t", '', $row['query'] );
}
fputcsv( $df, $row );
}
fclose( $df ); // phpcs:ignore WordPress.WP.AlternativeFunctions