From f97fa34c016db49afc01dddedff667ec828d6a4b Mon Sep 17 00:00:00 2001 From: haszari Date: Mon, 15 Jul 2019 08:50:08 +1200 Subject: [PATCH] rename button style param/variable for clarity --- includes/admin/class-wc-admin-addons.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ); ?>