Skip to content

Commit

Permalink
fix premium link
Browse files Browse the repository at this point in the history
  • Loading branch information
rlankhorst committed Jun 21, 2024
1 parent bc5492d commit 98e30d4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
1 change: 1 addition & 0 deletions settings/build/778.cf286e0fe201e170f0d9.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion settings/build/778.ebfa62a64f4679b9db87.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '50afff8af9136759c02e');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => 'f08f8de53fcc9879e8a0');

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion settings/src/Settings/PremiumOverlay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {__} from "@wordpress/i18n";
import useLicense from "./License/LicenseData";
import Hyperlink from "../utils/Hyperlink";

const PremiumOverlay = ({msg, title, upgrade}) => {
const {licenseStatus} = useLicense();
Expand All @@ -10,7 +11,7 @@ const PremiumOverlay = ({msg, title, upgrade}) => {
if (pro_plugin_active) {
upgradeUrl = '#settings/license';
}
let message = msg ? msg : __("Learn more about %sPremium%s", "really-simple-ssl");
let message = msg ? msg : <Hyperlink text={__("Learn more about %sPremium%s", "really-simple-ssl")} url={upgradeUrl}/>;
if ( pro_plugin_active ) {
if (licenseStatus === 'empty' || licenseStatus === 'deactivated') {
message = rsssl_settings.messageInactive;
Expand Down
9 changes: 0 additions & 9 deletions settings/src/Settings/SettingsGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ const SettingsGroup = (props) => {
}
}

let msg = activeGroup.premium_text ? activeGroup.premium_text : __("Learn more about %sPremium%s", "really-simple-ssl");
if (rsssl_settings.pro_plugin_active) {
if (licenseStatus === 'empty' || licenseStatus === 'deactivated') {
msg = rsssl_settings.messageInactive;
} else {
msg = rsssl_settings.messageInvalid;
}
}

let disabled = licenseStatus !== 'valid' && activeGroup.premium;
//if a feature can only be used on networkwide or single site setups, pass that info here.
let networkwide_error = !rsssl_settings.networkwide_active && activeGroup.networkwide_required;
Expand Down

0 comments on commit 98e30d4

Please sign in to comment.