Skip to content

Commit 98e30d4

Browse files
committed
fix premium link
1 parent bc5492d commit 98e30d4

File tree

6 files changed

+5
-13
lines changed

6 files changed

+5
-13
lines changed

settings/build/778.cf286e0fe201e170f0d9.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings/build/778.ebfa62a64f4679b9db87.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => 'f08f8de53fcc9879e8a0');

settings/build/index.50afff8af9136759c02e.js renamed to settings/build/index.f08f8de53fcc9879e8a0.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings/src/Settings/PremiumOverlay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {__} from "@wordpress/i18n";
22
import useLicense from "./License/LicenseData";
3+
import Hyperlink from "../utils/Hyperlink";
34

45
const PremiumOverlay = ({msg, title, upgrade}) => {
56
const {licenseStatus} = useLicense();
@@ -10,7 +11,7 @@ const PremiumOverlay = ({msg, title, upgrade}) => {
1011
if (pro_plugin_active) {
1112
upgradeUrl = '#settings/license';
1213
}
13-
let message = msg ? msg : __("Learn more about %sPremium%s", "really-simple-ssl");
14+
let message = msg ? msg : <Hyperlink text={__("Learn more about %sPremium%s", "really-simple-ssl")} url={upgradeUrl}/>;
1415
if ( pro_plugin_active ) {
1516
if (licenseStatus === 'empty' || licenseStatus === 'deactivated') {
1617
message = rsssl_settings.messageInactive;

settings/src/Settings/SettingsGroup.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,6 @@ const SettingsGroup = (props) => {
9393
}
9494
}
9595

96-
let msg = activeGroup.premium_text ? activeGroup.premium_text : __("Learn more about %sPremium%s", "really-simple-ssl");
97-
if (rsssl_settings.pro_plugin_active) {
98-
if (licenseStatus === 'empty' || licenseStatus === 'deactivated') {
99-
msg = rsssl_settings.messageInactive;
100-
} else {
101-
msg = rsssl_settings.messageInvalid;
102-
}
103-
}
104-
10596
let disabled = licenseStatus !== 'valid' && activeGroup.premium;
10697
//if a feature can only be used on networkwide or single site setups, pass that info here.
10798
let networkwide_error = !rsssl_settings.networkwide_active && activeGroup.networkwide_required;

0 commit comments

Comments
 (0)