Fix theme activation functionality and CSS conflicts with WordPress core

This commit is contained in:
Marcus Quinn
2025-03-17 00:45:15 +00:00
parent fbfcc7e13f
commit d50dfd344c
3 changed files with 52 additions and 46 deletions

View File

@ -23,7 +23,7 @@ if (!defined('ABSPATH')) {
<?php
$installed_theme = wp_get_theme('kadence');
if ($installed_theme->exists()): ?>
<button type="button" class="button button-primary activate-now" data-slug="kadence">
<button type="button" class="button button-primary activate-now" data-slug="kadence" data-nonce="<?php echo esc_attr(wp_create_nonce('wp-allstars-nonce')); ?>">
<?php esc_html_e('Activate'); ?>
</button>
<?php else: ?>