diff --git a/includes/integrations/class-integration.php b/includes/integrations/class-integration.php
index 91c9e08e..7e93223b 100755
--- a/includes/integrations/class-integration.php
+++ b/includes/integrations/class-integration.php
@@ -211,8 +211,9 @@ public function checkbox_was_checked()
*/
protected function get_wrapper_attributes()
{
+ $classes = join(' ', $this->wrapper_classes);
$html_attrs = [
- 'class' => sprintf('mc4wp-checkbox mc4wp-checkbox-%s %s', $this->slug, join(' ', $this->wrapper_classes)),
+ 'class' => "mc4wp-checkbox mc4wp-checkbox-{$this->slug} $classes",
];
return $this->array_to_attr_string($html_attrs);
}
@@ -291,7 +292,7 @@ public function get_checkbox_html()
ob_start();
- echo sprintf('', MC4WP_VERSION);
+ echo '';
/** @ignore */
do_action('mc4wp_integration_before_checkbox_wrapper', $this);
@@ -303,13 +304,13 @@ public function get_checkbox_html()
$wrapper_attrs = $this->get_wrapper_attributes();
// Hidden field to make sure "0" is sent to server
- echo sprintf('', esc_attr($this->checkbox_name));
- echo sprintf('<%s %s>', $wrapper_tag, $wrapper_attrs);
+ echo '';
+ echo "<$wrapper_tag $wrapper_attrs>";
echo '';
- echo sprintf('%s>', $wrapper_tag);
+ echo "$wrapper_tag>";
/** @ignore */
do_action('mc4wp_integration_after_checkbox_wrapper', $this);
@@ -572,7 +573,10 @@ protected function array_to_attr_string(array $attrs)
{
$str = '';
foreach ($attrs as $key => $value) {
- $str .= sprintf('%s="%s" ', $key, esc_attr($value));
+ $str .= $key;
+ $str .= '="';
+ $str .= esc_attr($value);
+ $str .= '"';
}
return $str;
}