Skip to content

Commit

Permalink
Maintenance: Every use of the hardcoded plugin slug has been replaced…
Browse files Browse the repository at this point in the history
… with a variable according to best coding standards
  • Loading branch information
ArthurGareginyan committed Dec 8, 2020
1 parent a42774c commit 1ba2ee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/php/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function spacexchimp_p006_settings_link( $links ) {
array_unshift( $links, $link_settings );

// Declare variables
$url_upgrade = "https://www.spacexchimp.com/plugins/header-and-footer-scripts-inserter-pro.html";
$url_upgrade = "https://www.spacexchimp.com/plugins/" . $plugin['slug'] . "-pro.html";
$text_upgrade = __( 'Upgrade to PRO', $plugin['text'] );
$link_upgrade = '<a href="' . $url_upgrade . '" target="_blank"><b style="color:#0f9f44;">' . $text_upgrade . '</b></a>';

Expand Down
2 changes: 1 addition & 1 deletion inc/php/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- UPGRADE -->
<div class="postbox banner">
<div class="inside">
<a href="https://www.spacexchimp.com/plugins/header-and-footer-scripts-inserter-pro.html" target="_blank">
<a href="https://www.spacexchimp.com/plugins/<?php echo $plugin['slug'] . '-pro'; ?>.html" target="_blank">
<img src="<?php echo $plugin['url'] . 'inc/img/upgrade.png'; ?>" alt="Upgrade" style="margin-top:-16px;">
</a>
</div>
Expand Down

0 comments on commit 1ba2ee7

Please sign in to comment.