Skip to content

Commit a881d68

Browse files
committed
Add missing style on tracking image (inside shortcode).
Also prepare v2.4.2
1 parent d74a3fe commit a881d68

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9+
## [v2.4.2] - 2020-12-14
10+
### Changes
11+
- Add missing style on shortcode embedded image.
12+
913
## [v2.4.1] - 2020-12-14
1014
### Changes
1115
- Add an alt text on the `<noscript>` image that can be handled with WP

shortcodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function wpmautic_tags_shortcode( $atts ) {
194194
}
195195

196196
return sprintf(
197-
'<img src="%s/mtracking.gif?tags=%s" alt="%s" />',
197+
'<img src="%s/mtracking.gif?tags=%s" alt="%s" style="display:none;" />',
198198
esc_url( $base_url ),
199199
esc_attr( $atts['values'] ),
200200
esc_attr__( 'Mautic Tags', 'wp-mautic' )

wpmautic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/mautic/mautic-wordpress
55
* Contributors: mautic,hideokamoto,shulard,escopecz,dbhurley,macbookandrew
66
* Description: This plugin will allow you to add Mautic (Free Open Source Marketing Automation) tracking to your site
7-
* Version: 2.4.1
7+
* Version: 2.4.2
88
* Requires at least: 4.6
99
* Tested up to: 5.6
1010
* Author: Mautic community
@@ -191,7 +191,7 @@ function wpmautic_inject_noscript() {
191191
$payload = rawurlencode( base64_encode( serialize( $url_query ) ) );
192192
?>
193193
<noscript>
194-
<img src="<?php echo esc_url( $base_url ); ?>/mtracking.gif?d=<?php echo esc_attr( $payload ); ?>" style="display:none;" alt="<?php echo esc_attr__( 'Mautic Tags', 'wp-mautic' ); ?>" />
194+
<img src="<?php echo esc_url( $base_url ); ?>/mtracking.gif?d=<?php echo esc_attr( $payload ); ?>" style="display:none;" alt="<?php echo esc_attr__( 'Mautic Tags', 'wp-mautic' ); ?>" />
195195
</noscript>
196196
<?php
197197
}

0 commit comments

Comments
 (0)