We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0defaee commit 8ffab64Copy full SHA for 8ffab64
plugins/wpgraphql-logging/src/Admin/View/Templates/WPGraphQLLoggerView.php
@@ -2,6 +2,8 @@
2
3
declare(strict_types=1);
4
5
+use WPGraphQL\Logging\Admin\ViewLogsPage;
6
+
7
/**
8
* Log detail view template.
9
*
@@ -17,13 +19,15 @@
17
19
<h1><?php esc_html_e( 'Log Entry', 'wpgraphql-logging' ); ?></h1>
18
20
<a href="
21
<?php
22
+ $wpgraphql_logging_download_nonce = wp_create_nonce( ViewLogsPage::ADMIN_PAGE_DOWNLOAD_NONCE . '_' . $log->get_id() );
23
echo esc_url(
24
admin_url(
25
sprintf(
- 'admin.php?page=%s&action=%s&log=%d',
26
+ 'admin.php?page=%s&action=%s&log=%d&_wpnonce=%s',
27
\WPGraphQL\Logging\Admin\ViewLogsPage::ADMIN_PAGE_SLUG,
28
'download',
- $log->get_id()
29
+ $log->get_id(),
30
+ $wpgraphql_logging_download_nonce
31
)
32
33
);
0 commit comments