diff --git a/includes/admin/class-wc-admin-addons.php b/includes/admin/class-wc-admin-addons.php index 02240ec71a6..866869e0bec 100644 --- a/includes/admin/class-wc-admin-addons.php +++ b/includes/admin/class-wc-admin-addons.php @@ -511,17 +511,17 @@ class WC_Admin_Addons { * * @param string $url Destination URL. * @param string $text Button label text. - * @param string $theme Button style class (not to be confused with WP theme!). + * @param string $style Button style class. * @param string $plugin The plugin the button is promoting. */ - public static function output_button( $url, $text, $theme, $plugin = '' ) { - $theme = __( 'Free', 'woocommerce' ) === $text ? 'addons-button-outline-green' : $theme; - $theme = is_plugin_active( $plugin ) ? 'addons-button-installed' : $theme; + public static function output_button( $url, $text, $style, $plugin = '' ) { + $style = __( 'Free', 'woocommerce' ) === $text ? 'addons-button-outline-green' : $style; + $style = is_plugin_active( $plugin ) ? 'addons-button-installed' : $style; $text = is_plugin_active( $plugin ) ? __( 'Installed', 'woocommerce' ) : $text; $url = self::add_in_app_purchase_url_params( $url ); ?>