Skip to content

Commit 8005bfa

Browse files
Add explicit comment for nonce creation without action parameter
1 parent 3eab534 commit 8005bfa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

classes/Visualizer/Render/Page/Types.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Visualizer_Render_Page_Types extends Visualizer_Render_Page {
3939
*/
4040
protected function _toHTML() {
4141
echo '<form method="post" id="viz-types-form">';
42+
// Using wp_create_nonce() without action parameter to match verification in Chart.php
4243
echo '<input type="hidden" name="nonce" value="', wp_create_nonce(), '">';
4344
parent::_toHTML();
4445
echo '</form>';

0 commit comments

Comments
 (0)