Page Visit Counter - Version 4.3

Version Description

  • 06-06-2018 =
  • Fixed vulnerable code issue
  • Compatible with WordPress 4.9.x
Download this release

Release Info

Developer dots
Plugin Icon 128x128 Page Visit Counter
Version 4.3
Comparing to
See all releases

Code changes from version 4.2 to 4.3

README.txt CHANGED
@@ -4,7 +4,7 @@ Plugin URI: http://multidots.com/
4
  Author: Multidots
5
  Author URI: http://multidots.com/
6
  Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991
7
- Stable tag: 4.2
8
  Tags: page counter,page visit, post counter, post visit, wordpress post view, wordpress page view, page visit graph, post visit graph,
9
  Requires at least: 2.1
10
  Tested up to: 4.9.6
@@ -115,6 +115,10 @@ Automatic updates should work great for you. As always, though, we recommend ba
115
 
116
  == Changelog ==
117
 
 
 
 
 
118
  = 4.2 - 06-06-2018 =
119
  * minor bug fixed.
120
 
4
  Author: Multidots
5
  Author URI: http://multidots.com/
6
  Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991
7
+ Stable tag: 4.3
8
  Tags: page counter,page visit, post counter, post visit, wordpress post view, wordpress page view, page visit graph, post visit graph,
9
  Requires at least: 2.1
10
  Tested up to: 4.9.6
115
 
116
  == Changelog ==
117
 
118
+ = 4.3 - 06-06-2018 =
119
+ * Fixed vulnerable code issue
120
+ * Compatible with WordPress 4.9.x
121
+
122
  = 4.2 - 06-06-2018 =
123
  * minor bug fixed.
124
 
admin/class-page-visit-counter-admin.php CHANGED
@@ -115,7 +115,6 @@ class page_visit_counter_Admin
115
  wp_enqueue_script('jquery-ui-core');
116
  wp_enqueue_script('jquery-ui-tabs');
117
  wp_enqueue_script('jquery-ui-datepicker');
118
- wp_enqueue_script('jquery-ui-dialog');
119
 
120
  //enqueue script for notice pointer
121
  wp_enqueue_script('wp-pointer');
@@ -124,12 +123,13 @@ class page_visit_counter_Admin
124
  if (!empty($_GET['page']) && $_GET['page'] != '' || ($_GET['page'] == 'page_visit_settings ' || $_GET['page'] == 'page-visit-counter-about' || $_GET['page'] == 'page_visit_counter')) {
125
  wp_enqueue_script('one', plugin_dir_url(__FILE__) . 'js/custom.js', array('jquery'), $this->version, false);
126
  }
127
- }
128
- wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/jquery.dataTables.min.js', array('jquery'), $this->version, false);
129
 
130
- wp_enqueue_script('chosen-jquery', plugin_dir_url(__FILE__) . 'js/chosen.jquery.js', array('jquery'), $this->version, false);
131
- wp_enqueue_script('chosen-proto', plugin_dir_url(__FILE__) . 'js/chosen.proto.js', array('jquery'), $this->version, false);
132
- wp_enqueue_script('color-box', plugin_dir_url(__FILE__) . 'js/jquery.colorbox.js', array('jquery'), $this->version, false);
 
 
 
133
 
134
  wp_enqueue_script('iris', admin_url('js/iris.min.js'), array(
135
  'jquery-ui-draggable',
@@ -148,8 +148,10 @@ class page_visit_counter_Admin
148
  } else {
149
  wp_localize_script('wp-color-picker', 'wpColorPickerL10n', '');
150
  }
 
151
 
152
- wp_localize_script('one', 'pagevisit', array('ajaxurl' => admin_url('admin-ajax.php')));
 
153
 
154
  $fetchSelecetedPostTypes = get_option('wfap_post_type');
155
  if (!empty($fetchSelecetedPostTypes) || $fetchSelecetedPostTypes != "") {
115
  wp_enqueue_script('jquery-ui-core');
116
  wp_enqueue_script('jquery-ui-tabs');
117
  wp_enqueue_script('jquery-ui-datepicker');
 
118
 
119
  //enqueue script for notice pointer
120
  wp_enqueue_script('wp-pointer');
123
  if (!empty($_GET['page']) && $_GET['page'] != '' || ($_GET['page'] == 'page_visit_settings ' || $_GET['page'] == 'page-visit-counter-about' || $_GET['page'] == 'page_visit_counter')) {
124
  wp_enqueue_script('one', plugin_dir_url(__FILE__) . 'js/custom.js', array('jquery'), $this->version, false);
125
  }
 
 
126
 
127
+ wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/jquery.dataTables.min.js', array('jquery'), $this->version, false);
128
+
129
+ }
130
+ wp_enqueue_script('chosen-jquery', plugin_dir_url(__FILE__) . 'js/chosen.jquery.js', array('jquery'), $this->version, false);
131
+ wp_enqueue_script('chosen-proto', plugin_dir_url(__FILE__) . 'js/chosen.proto.js', array('jquery'), $this->version, false);
132
+ wp_enqueue_script('color-box', plugin_dir_url(__FILE__) . 'js/jquery.colorbox.js', array('jquery'), $this->version, false);
133
 
134
  wp_enqueue_script('iris', admin_url('js/iris.min.js'), array(
135
  'jquery-ui-draggable',
148
  } else {
149
  wp_localize_script('wp-color-picker', 'wpColorPickerL10n', '');
150
  }
151
+ if (isset($_GET['page']) && !empty($_GET['page']) && ($_GET['page'] == 'page_visit_settings') && ($_GET['page'] == 'page_visit_counter') ) {
152
 
153
+ wp_localize_script('one', 'pagevisit', array('ajaxurl' => admin_url('admin-ajax.php')));
154
+ }
155
 
156
  $fetchSelecetedPostTypes = get_option('wfap_post_type');
157
  if (!empty($fetchSelecetedPostTypes) || $fetchSelecetedPostTypes != "") {
page_visit_counter.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin URI: http://www.multidots.com/
8
  * Description: This plugin will count the total visits of your sites pages.
9
  * Author: Multidots
10
- * Version: 4.2
11
  * Author URI: http://www.multidots.com/
12
  */
13
  // If this file is called directly, abort.
@@ -169,9 +169,9 @@ function page_visit_counter_md_total_sites_visit($atts) {
169
  $totalVisitsHtml .= '<div class="md-pvc-total-reports">';
170
  $totalVisitsHtml .= '<div class="md-pvc-total-reports-sub" style="background:'.esc_attr($backgroundcolor).';">';
171
  foreach ($array as $number) {
172
- $totalVisitsHtml .= '<span style="border: 1px solid '.esc_attr($bordercolor).';color:'.esc_attr($fontcolor).';background:'.esc_attr($countboxcolor).';">'.esc_attr($number).'</span>';
173
  }
174
- $totalVisitsHtml .= '<span class="text" style="border: 1px solid '.esc_attr($bordercolor).';color:'.esc_attr($fontcolor).';background:'.esc_attr($countboxcolor).';">'.__('total sites visits.','page-visit-counter').'</span>';
175
  $totalVisitsHtml .= '</div>';
176
  $totalVisitsHtml .= '</div>';
177
 
7
  * Plugin URI: http://www.multidots.com/
8
  * Description: This plugin will count the total visits of your sites pages.
9
  * Author: Multidots
10
+ * Version: 4.3
11
  * Author URI: http://www.multidots.com/
12
  */
13
  // If this file is called directly, abort.
169
  $totalVisitsHtml .= '<div class="md-pvc-total-reports">';
170
  $totalVisitsHtml .= '<div class="md-pvc-total-reports-sub" style="background:'.esc_attr($backgroundcolor).';">';
171
  foreach ($array as $number) {
172
+ $totalVisitsHtml .= '<span style="border: 1px solid; '.esc_attr($bordercolor).';color:'.esc_attr($fontcolor).';background:'.esc_attr($countboxcolor).';">'.esc_attr($number).'</span>';
173
  }
174
+ $totalVisitsHtml .= '<span class="text" style="border: 1px solid; '.esc_attr($bordercolor).';color:'.esc_attr($fontcolor).';background:'.esc_attr($countboxcolor).';">'.__('total sites visits.','page-visit-counter').'</span>';
175
  $totalVisitsHtml .= '</div>';
176
  $totalVisitsHtml .= '</div>';
177