diff --git a/includes/class-freemius.php b/includes/class-freemius.php index fd10929a..d38a2796 100755 --- a/includes/class-freemius.php +++ b/includes/class-freemius.php @@ -24686,23 +24686,39 @@ private function get_complete_upgrade_instructions( $plan_title = '' ) { $this->get_premium_slug() : $this->premium_plugin_basename(); - return sprintf( - /* translators: %1$s: Product title; %2$s: Plan title */ - $this->get_text_inline( ' The paid version of %1$s is already installed. Please activate it to start benefiting the %2$s features. %3$s', 'activate-premium-version' ), - sprintf( '%s', esc_html( $this->get_plugin_title() ) ), - $plan_title, - sprintf( - '', - ( $this->is_theme() ? - wp_nonce_url( 'themes.php?action=activate&stylesheet=' . $premium_theme_slug_or_plugin_basename, 'switch-theme_' . $premium_theme_slug_or_plugin_basename ) : - wp_nonce_url( 'plugins.php?action=activate&plugin=' . $premium_theme_slug_or_plugin_basename, 'activate-plugin_' . $premium_theme_slug_or_plugin_basename ) ), - esc_html( sprintf( - /* translators: %s: Plan title */ - $this->get_text_inline( 'Activate %s features', 'activate-x-features' ), - $plan_title - ) ) - ) - ); + if ( is_admin() ) { + return sprintf( + /* translators: %1$s: Product title; %2$s: Plan title */ + $this->get_text_inline( ' The paid version of %1$s is already installed. Please activate it to start benefiting from the %2$s features. %3$s', 'activate-premium-version' ), + sprintf( '%s', esc_html( $this->get_plugin_title() ) ), + $plan_title, + sprintf( + '', + ( $this->is_theme() ? + wp_nonce_url( 'themes.php?action=activate&stylesheet=' . $premium_theme_slug_or_plugin_basename, 'switch-theme_' . $premium_theme_slug_or_plugin_basename ) : + wp_nonce_url( 'plugins.php?action=activate&plugin=' . $premium_theme_slug_or_plugin_basename, 'activate-plugin_' . $premium_theme_slug_or_plugin_basename ) ), + esc_html( sprintf( + /* translators: %s: Plan title */ + $this->get_text_inline( 'Activate %s features', 'activate-x-features' ), + $plan_title + ) ) + ) + ); + } else { + return sprintf( + /* translators: %1$s: Product title; %3$s: Plan title */ + $this->get_text_inline( ' The paid version of %1$s is already installed. Please navigate to the %2$s to activate it and start benefiting from the %3$s features.', 'activate-premium-version-plugins-page' ), + sprintf( '%s', esc_html( $this->get_plugin_title() ) ), + sprintf( + '%s', + admin_url( $this->is_theme() ? 'themes.php' : 'plugins.php' ), + ( $this->is_theme() ? + $this->get_text_inline( 'Themes page', 'themes-page' ) : + $this->get_text_inline( 'Plugins page', 'plugins-page' ) ) + ), + $plan_title + ); + } } else { // @since 1.2.1.5 The free version is auto deactivated. $deactivation_step = version_compare( $this->version, '1.2.1.5', '<' ) ? diff --git a/start.php b/start.php index 9b02a1f2..a86d7ae8 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.12.1'; + $this_sdk_version = '2.12.1.1'; #region SDK Selection Logic --------------------------------------------------------------------