Yandex Metrica - Version 1.8.3

Version Description

  • fixed an XSS
    • tested with WordPress 5.8
Download this release

Release Info

Developer m_uysl
Plugin Icon 128x128 Yandex Metrica
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2 to 1.8.3

Files changed (4) hide show
  1. README.md +11 -3
  2. readme.txt +11 -3
  3. templates/settings.php +5 -5
  4. yandex-metrica.php +2 -2
README.md CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: m_uysl, ildarkhasanshin
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.8
6
- Tested up to: 5.5
7
- Stable tag: 1.8.2
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -72,6 +72,10 @@ Extract the zip file and just drop the contents in the `wp-content/plugins/` dir
72
 
73
  ## Changelog ##
74
 
 
 
 
 
75
  ### 1.8.2 ###
76
  - Add composer support
77
  - tested with WordPress 5.5
@@ -191,4 +195,8 @@ Metrica api upgraded, if you get authentication related problems reset plugin se
191
 
192
  ### 1.7 ###
193
 
194
- Switched to the new tracking code by default. You can turn off from the options.
 
 
 
 
3
  Contributors: m_uysl, ildarkhasanshin
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.8
6
+ Tested up to: 5.8
7
+ Stable tag: 1.8.3
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
72
 
73
  ## Changelog ##
74
 
75
+ ### 1.8.3 ###
76
+ - fixed an XSS
77
+ - tested with WordPress 5.8
78
+
79
  ### 1.8.2 ###
80
  - Add composer support
81
  - tested with WordPress 5.5
195
 
196
  ### 1.7 ###
197
 
198
+ Switched to the new tracking code by default. You can turn off from the options.
199
+
200
+ ### 1.8.3 ###
201
+
202
+ Security release. Update the plugin ASAP!
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: m_uysl, ildarkhasanshin
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.8
6
- Tested up to: 5.5
7
- Stable tag: 1.8.2
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -65,6 +65,10 @@ Yandex Metrica plugin uses wp_head hook for the adds necessary tracking code. Pl
65
 
66
  == Changelog ==
67
 
 
 
 
 
68
  = 1.8.2 =
69
  - Add composer support
70
  - tested with WordPress 5.5
@@ -184,4 +188,8 @@ Metrica api upgraded, if you get authentication related problems reset plugin se
184
 
185
  = 1.7 =
186
 
187
- Switched to the new tracking code by default. You can turn off from the options.
 
 
 
 
3
  Contributors: m_uysl, ildarkhasanshin
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.8
6
+ Tested up to: 5.8
7
+ Stable tag: 1.8.3
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
65
 
66
  == Changelog ==
67
 
68
+ = 1.8.3 =
69
+ - fixed an XSS
70
+ - tested with WordPress 5.8
71
+
72
  = 1.8.2 =
73
  - Add composer support
74
  - tested with WordPress 5.5
188
 
189
  = 1.7 =
190
 
191
+ Switched to the new tracking code by default. You can turn off from the options.
192
+
193
+ = 1.8.3 =
194
+
195
+ Security release. Update the plugin ASAP!
templates/settings.php CHANGED
@@ -100,7 +100,7 @@ if ( isset( $_POST["reset"] ) ) {
100
  <label for="metrica-counter"><?php _e( 'Counter:', 'yandex-metrica' ); ?></label>
101
  <select name="metrica-counter" id="metrica-counter">
102
  <?php foreach ( self::$metrica_api->get_counters() as $counter ): ?>
103
- <option <?php if ( ! empty( $this->options["counter_id"] ) ) selected( $this->options["counter_id"], $counter['id'] ); ?> value="<?php echo $counter['id']; ?>"><?php echo $counter['site']; ?></option>
104
  <?php endforeach; ?>
105
  </select>
106
  <?php else:
@@ -145,7 +145,7 @@ if ( isset( $_POST["reset"] ) ) {
145
  <label><?php _e( 'Ecommerce Container', 'yandex-metrica' ); ?></label>
146
  </th>
147
  <td>
148
- <input type="text" style="min-width: 300px;" name="ecommerce_container_name" value="<?php echo $this->options["ecommerce_container_name"]; ?>">
149
  <p class="setting-description"><?php _e( 'Data container name for the collecting data from', 'yandex-metrica' ); ?></p>
150
  </td>
151
  </tr>
@@ -173,7 +173,7 @@ if ( isset( $_POST["reset"] ) ) {
173
  if ( ! is_array( $untrack_roles ) ) $untrack_roles = array();
174
 
175
  foreach ( $roles as $role => $name ): ?>
176
- <input type="checkbox" <?php if ( in_array( $role, $untrack_roles ) ) echo "checked"; ?> name="tracker_role[]" value="<?php echo $role; ?>" /> <?php echo translate_user_role( $name ); ?>
177
  <br />
178
  <?php endforeach; ?>
179
 
@@ -192,7 +192,7 @@ if ( isset( $_POST["reset"] ) ) {
192
 
193
  foreach ( $roles as $role => $name ): ?>
194
 
195
- <input type="checkbox" <?php if ( in_array( $role, $widget_roles ) ) echo "checked"; ?> name="widget_access[]" value="<?php echo $role; ?>" /> <?php echo translate_user_role( $name ); ?>
196
  <br />
197
 
198
  <?php endforeach; ?>
@@ -208,7 +208,7 @@ if ( isset( $_POST["reset"] ) ) {
208
  <label><?php _e( 'Tracker JS', 'yandex-metrica' ); ?></label>
209
  </th>
210
  <td>
211
- <input type="text" style="min-width: 300px;" placeholder="https://mc.yandex.ru/metrika/watch.js" name="tracker-address" value="<?php echo $this->options["tracker-address"]; ?>">
212
  <p class="setting-description"><?php _e( 'If you want to change watcher js address, use the field above.', 'yandex-metrica' ); ?></p>
213
  </td>
214
  </tr>
100
  <label for="metrica-counter"><?php _e( 'Counter:', 'yandex-metrica' ); ?></label>
101
  <select name="metrica-counter" id="metrica-counter">
102
  <?php foreach ( self::$metrica_api->get_counters() as $counter ): ?>
103
+ <option <?php if ( ! empty( $this->options["counter_id"] ) ) selected( $this->options["counter_id"], $counter['id'] ); ?> value="<?php echo esc_attr( $counter['id'] ); ?>"><?php echo esc_attr( $counter['site'] ); ?></option>
104
  <?php endforeach; ?>
105
  </select>
106
  <?php else:
145
  <label><?php _e( 'Ecommerce Container', 'yandex-metrica' ); ?></label>
146
  </th>
147
  <td>
148
+ <input type="text" style="min-width: 300px;" name="ecommerce_container_name" value="<?php echo esc_attr( $this->options["ecommerce_container_name"] ); ?>">
149
  <p class="setting-description"><?php _e( 'Data container name for the collecting data from', 'yandex-metrica' ); ?></p>
150
  </td>
151
  </tr>
173
  if ( ! is_array( $untrack_roles ) ) $untrack_roles = array();
174
 
175
  foreach ( $roles as $role => $name ): ?>
176
+ <input type="checkbox" <?php if ( in_array( $role, $untrack_roles ) ) echo "checked"; ?> name="tracker_role[]" value="<?php echo esc_attr( $role ); ?>" /> <?php echo translate_user_role( $name ); ?>
177
  <br />
178
  <?php endforeach; ?>
179
 
192
 
193
  foreach ( $roles as $role => $name ): ?>
194
 
195
+ <input type="checkbox" <?php if ( in_array( $role, $widget_roles ) ) echo "checked"; ?> name="widget_access[]" value="<?php echo esc_attr( $role ); ?>" /> <?php echo translate_user_role( $name ); ?>
196
  <br />
197
 
198
  <?php endforeach; ?>
208
  <label><?php _e( 'Tracker JS', 'yandex-metrica' ); ?></label>
209
  </th>
210
  <td>
211
+ <input type="text" style="min-width: 300px;" placeholder="https://mc.yandex.ru/metrika/watch.js" name="tracker-address" value="<?php echo esc_url_raw( $this->options["tracker-address"] ); ?>">
212
  <p class="setting-description"><?php _e( 'If you want to change watcher js address, use the field above.', 'yandex-metrica' ); ?></p>
213
  </td>
214
  </tr>
yandex-metrica.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
  Plugin Name: Yandex Metrica
4
- Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
5
  Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
6
  Author: Mustafa Uysal
7
- Version: 1.8.2
8
  Text Domain: yandex-metrica
9
  Domain Path: /languages/
10
  Author URI: http://uysalmustafa.com
1
  <?php
2
  /*
3
  Plugin Name: Yandex Metrica
4
+ Plugin URI: https://github.com/mustafauysal/yandex-metrica
5
  Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
6
  Author: Mustafa Uysal
7
+ Version: 1.8.3
8
  Text Domain: yandex-metrica
9
  Domain Path: /languages/
10
  Author URI: http://uysalmustafa.com