Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 33 additions & 17 deletions includes/class-freemius.php
Original file line number Diff line number Diff line change
Expand Up @@ -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( '<em>%s</em>', esc_html( $this->get_plugin_title() ) ),
$plan_title,
sprintf(
'<a style="margin-left: 10px;" href="%s"><button class="button button-primary">%s</button></a>',
( $this->is_theme() ?
wp_nonce_url( 'themes.php?action=activate&amp;stylesheet=' . $premium_theme_slug_or_plugin_basename, 'switch-theme_' . $premium_theme_slug_or_plugin_basename ) :
wp_nonce_url( 'plugins.php?action=activate&amp;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( '<em>%s</em>', esc_html( $this->get_plugin_title() ) ),
$plan_title,
sprintf(
'<a style="margin-left: 10px;" href="%s"><button class="button button-primary">%s</button></a>',
( $this->is_theme() ?
wp_nonce_url( 'themes.php?action=activate&amp;stylesheet=' . $premium_theme_slug_or_plugin_basename, 'switch-theme_' . $premium_theme_slug_or_plugin_basename ) :
wp_nonce_url( 'plugins.php?action=activate&amp;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( '<em>%s</em>', esc_html( $this->get_plugin_title() ) ),
sprintf(
'<a href="%s">%s</a>',
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', '<' ) ?
Expand Down
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.12.1';
$this_sdk_version = '2.12.1.1';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down