Skip to content

Commit

Permalink
Update PluginInstall.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 846c2c7 commit 38c061e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PluginInstall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,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($plugin['meta']['active_installations'] === '' ? 0 : $plugin['meta']['active_installations']) . esc_html__(' Active Installations', 'classicpress-directory-integration'); ?></div>
<div class="cp-plugin-actions">
<a href="<?php echo esc_url( admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $slug ) ); ?>" class="button link-txt"><?php esc_html_e('More Details', 'classicpress-directory-integration'); ?></a>
<a href="https://directory.classicpress.net/plugins/<?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_plugins)) {
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 38c061e

Please sign in to comment.