Skip to content

Commit d29d4dd

Browse files
committed
Fixed issue with view log page.
1 parent 102bbdd commit d29d4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ protected function process_log_download(): void {
281281
*/
282282
protected function render_view_page(): void {
283283
$log_id = isset( $_GET['log'] ) ? absint( $_GET['log'] ) : 0;
284-
$this->verify_admin_page_nonce( self::ADMIN_PAGE_DOWNLOAD_NONCE . '_' . $log_id );
284+
$this->verify_admin_page_nonce( self::ADMIN_PAGE_VIEW_NONCE . '_' . $log_id );
285285

286286
if ( 0 === (int) $log_id ) {
287287
echo '<div class="notice notice-error"><p>' . esc_html__( 'Invalid log ID.', 'wpgraphql-logging' ) . '</p></div>';

0 commit comments

Comments
 (0)