Fix theme buttons to use standard WordPress URLs and behavior

This commit is contained in:
Marcus Quinn
2025-03-17 01:05:48 +00:00
parent dabc9a3eee
commit 1878ebb98b
2 changed files with 18 additions and 72 deletions

View File

@ -39,7 +39,14 @@ if (!defined('ABSPATH')) {
<?php esc_html_e('Activate'); ?>
</a>
<?php else: ?>
<a href="#"
<?php
// Use the standard WordPress theme installation URL format
$install_url = wp_nonce_url(
admin_url('update.php?action=install-theme&theme=kadence'),
'install-theme_kadence'
);
?>
<a href="<?php echo esc_url($install_url); ?>"
class="button button-primary install-now"
data-slug="kadence"
data-name="Kadence">