Skip to content

Commit 541aa0b

Browse files
committed
Minor fixes.
1 parent 778a93e commit 541aa0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugins/wpgraphql-logging/src/Admin/ViewLogsPage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ public function add_sri_to_styles($tag, $handle): void {
217217
'integrity' => 'sha512-LT9fy1J8pE4Cy6ijbg96UkExgOjCqcxAC7xsnv+mLJxSvftGVmmc236jlPTZXPcBRQcVOWoK1IJhb1dAjtb4lQ==',
218218
'crossorigin' => 'anonymous',
219219
],
220+
'jquery-ui-style' => [
221+
'integrity' => 'sha512-sOC1C3U/7L42Ao1++jwVCpnllhbxnfD525JBZE2h1+cYnLg3aIE3G1RBWKSr/9cF5LxB1CxPckAvHqzz7O4apQ==',
222+
'crossorigin' => 'anonymous',
223+
],
220224
];
221225
$styles = apply_filters( 'wpgraphql_logging_view_logs_add_sri_to_styles', $styles );
222226

plugins/wpgraphql-logging/src/Logger/Database/WordPressDatabaseLogService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function find_entity_by_id(int $id): ?LogEntityInterface {
5454
global $wpdb;
5555

5656
$table_name = $this->get_table_name();
57-
$query = $wpdb->prepare( "SELECT * FROM {$table_name} WHERE id = %d", $id ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
57+
$query = $wpdb->prepare( 'SELECT * FROM %i WHERE id = %d', $table_name, $id );
5858
$row = $wpdb->get_row( $query, ARRAY_A ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
5959

6060
if ( ! $row ) {

0 commit comments

Comments
 (0)