From 1d52af2564d5ed74bd57a4cbbc961378ecb03e8c Mon Sep 17 00:00:00 2001 From: Daniele Alessandra Date: Fri, 22 Mar 2024 19:02:34 +0100 Subject: [PATCH] [debug] Added Add-ons table --- templates/debug/debug-addons.php | 4 ++-- templates/debug/debug-licenses.php | 2 +- templates/generic-table.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/debug/debug-addons.php b/templates/debug/debug-addons.php index bd29c7ef..8fe2cdb6 100644 --- a/templates/debug/debug-addons.php +++ b/templates/debug/debug-addons.php @@ -29,7 +29,7 @@ 'data' => $data, ]; - $title = '

' . esc_html( sprintf( fs_text_inline( 'Add Ons of module %s', 'addons-of-x' ), $plugin_id ) ) . '

'; + $title = esc_html( sprintf( fs_text_inline( 'Add Ons of module %s', 'addons-of-x' ), $plugin_id ) ); - fs_debug_generate_table( $tableData, array('title' => $title) ); + echo fs_debug_generate_table( $tableData, array('title' => $title) ); } diff --git a/templates/debug/debug-licenses.php b/templates/debug/debug-licenses.php index f77668ec..094ef36d 100644 --- a/templates/debug/debug-licenses.php +++ b/templates/debug/debug-licenses.php @@ -42,6 +42,6 @@ ( WP_FS__MODULE_TYPE_PLUGIN === $module_type ? fs_text_inline( 'Plugin', 'plugin' ) : fs_text_inline( 'Theme', 'theme' ) ) ) ) . ''; - fs_debug_generate_table( $data ); + echo fs_debug_generate_table( $data ); } } \ No newline at end of file diff --git a/templates/generic-table.php b/templates/generic-table.php index b824b49d..db82e672 100644 --- a/templates/generic-table.php +++ b/templates/generic-table.php @@ -105,7 +105,7 @@ function fs_debug_render_button( $element ) { $output .= ''; // Generating the nonce, which is already sanitized by WordPress through wp_nonce_field - $output .= wp_nonce_field( $fs_action_sanitized, 'wpnonce', true, false ); + $output .= wp_nonce_field( $fs_action_sanitized, '_wpnonce', true, false ); foreach ( $element as $key => $value ) { if ( in_array( $key, array( 'fs_action', 'label', 'classes' ) ) || is_null( $value ) ) {