Skip to content

Commit

Permalink
[debug] Added Add-ons table
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieleAlessandra committed Mar 22, 2024
1 parent 9449711 commit 1d52af2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/debug/debug-addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'data' => $data,
];

$title = '<h2>' . esc_html( sprintf( fs_text_inline( 'Add Ons of module %s', 'addons-of-x' ), $plugin_id ) ) . '</h2>';
$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) );
}
2 changes: 1 addition & 1 deletion templates/debug/debug-licenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
( WP_FS__MODULE_TYPE_PLUGIN === $module_type ? fs_text_inline( 'Plugin',
'plugin' ) : fs_text_inline( 'Theme', 'theme' ) ) ) ) . '</h2>';

fs_debug_generate_table( $data );
echo fs_debug_generate_table( $data );
}
}
2 changes: 1 addition & 1 deletion templates/generic-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function fs_debug_render_button( $element ) {
$output .= '<input type="hidden" name="fs_action" value="' . $fs_action_sanitized . '">';

// 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 ) ) {
Expand Down

0 comments on commit 1d52af2

Please sign in to comment.