Skip to content

Commit

Permalink
Update ThemeInstall.class.php to reinstate correct hyperlink when JS …
Browse files Browse the repository at this point in the history
…is disabled
  • Loading branch information
KTS915 authored Apr 20, 2024
1 parent 38c061e commit d57cb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ThemeInstall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public function render_menu()
<footer class="cp-plugin-card-footer" data-content="<?php echo esc_attr( $content ); ?>">
<div class="cp-plugin-installs"><?php echo esc_html($theme['meta']['active_installations'] === '' ? 0 : $theme['meta']['active_installations']) . esc_html__(' Active Installations', 'classicpress-directory-integration'); ?></div>
<div class="cp-plugin-actions">
<a href="<?php echo esc_url( admin_url( 'themes.php?tab=theme-information&theme=' . $slug ) ); ?>" class="button link-txt"><?php esc_html_e('More Details', 'classicpress-directory-integration'); ?></a>
<a href="https://directory.classicpress.net/themes/<?php echo esc_attr( $slug ); ?>" target="_blank" class="button link-txt"><?php esc_html_e('More Details', 'classicpress-directory-integration'); ?></a>
<?php
if (!array_key_exists($slug, $local_cp_themes)) {
echo '<a href="' . esc_url(wp_nonce_url(add_query_arg(['action' => 'install', 'slug' => $slug]), 'install', '_cpdi')) . '" class="button install-now">' . esc_html__('Install', 'classicpress-directory-integration') . '</a>';
Expand Down

0 comments on commit d57cb59

Please sign in to comment.