Post Views Counter - Version 1.2.9

Version Description

  • Fix: WooCommerce products list table broken
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Post Views Counter
Version 1.2.9
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.9

Files changed (2) hide show
  1. post-views-counter.php +8 -5
  2. readme.txt +7 -6
post-views-counter.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
- Version: 1.2.8
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/post-views-counter/
@@ -31,7 +31,7 @@ if ( ! class_exists( 'Post_Views_Counter' ) ) :
31
  * Post Views Counter final class.
32
  *
33
  * @class Post_Views_Counter
34
- * @version 1.2.8
35
  */
36
  final class Post_Views_Counter {
37
 
@@ -80,7 +80,7 @@ if ( ! class_exists( 'Post_Views_Counter' ) ) :
80
  'link_to_post' => true,
81
  'icon_class' => 'dashicons-chart-bar'
82
  ),
83
- 'version' => '1.2.8'
84
  );
85
 
86
  /**
@@ -352,7 +352,7 @@ if ( ! class_exists( 'Post_Views_Counter' ) ) :
352
  'pvc-admin-post', POST_VIEWS_COUNTER_URL . '/js/admin-post.js', array( 'jquery' ), $this->defaults['version']
353
  );
354
 
355
- wp_register_script(
356
  'pvc-admin-quick-edit', POST_VIEWS_COUNTER_URL . '/js/admin-quick-edit.js', array( 'jquery', 'inline-edit-post' ), $this->defaults['version']
357
  );
358
 
@@ -391,7 +391,10 @@ if ( ! class_exists( 'Post_Views_Counter' ) ) :
391
  return;
392
 
393
  wp_enqueue_style( 'pvc-admin' );
394
- wp_enqueue_script( 'pvc-admin-quick-edit' );
 
 
 
395
  }
396
  }
397
 
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
+ Version: 1.2.9
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/post-views-counter/
31
  * Post Views Counter final class.
32
  *
33
  * @class Post_Views_Counter
34
+ * @version 1.2.9
35
  */
36
  final class Post_Views_Counter {
37
 
80
  'link_to_post' => true,
81
  'icon_class' => 'dashicons-chart-bar'
82
  ),
83
+ 'version' => '1.2.9'
84
  );
85
 
86
  /**
352
  'pvc-admin-post', POST_VIEWS_COUNTER_URL . '/js/admin-post.js', array( 'jquery' ), $this->defaults['version']
353
  );
354
 
355
+ wp_register_script(
356
  'pvc-admin-quick-edit', POST_VIEWS_COUNTER_URL . '/js/admin-quick-edit.js', array( 'jquery', 'inline-edit-post' ), $this->defaults['version']
357
  );
358
 
391
  return;
392
 
393
  wp_enqueue_style( 'pvc-admin' );
394
+
395
+ // woocommerce
396
+ if ( get_post_type() !== 'product' )
397
+ wp_enqueue_script( 'pvc-admin-quick-edit' );
398
  }
399
  }
400
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: counter, hits, posts, postviews, post views, views, count, statistics, stats, analytics, pageviews, tracking
5
  Requires at least: 4.0
6
- Tested up to: 4.8.1
7
- Stable tag: 1.2.8
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -60,6 +60,9 @@ No questions yet.
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 1.2.8 =
64
  * New: Multisite compatibility
65
  * Fix: Undefined index post_views_column on post_views_counter/includes/settings.php
@@ -162,7 +165,5 @@ Initial release
162
 
163
  == Upgrade Notice ==
164
 
165
- = 1.2.8 =
166
- * New: Multisite compatibility
167
- * Fix: Undefined index post_views_column on post_views_counter/includes/settings.php
168
- * Tweak: Improved user IP handling
3
  Donate link: http://www.dfactory.eu/
4
  Tags: counter, hits, posts, postviews, post views, views, count, statistics, stats, analytics, pageviews, tracking
5
  Requires at least: 4.0
6
+ Tested up to: 4.8.3
7
+ Stable tag: 1.2.9
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.2.9 =
64
+ * Fix: WooCommerce products list table broken
65
+
66
  = 1.2.8 =
67
  * New: Multisite compatibility
68
  * Fix: Undefined index post_views_column on post_views_counter/includes/settings.php
165
 
166
  == Upgrade Notice ==
167
 
168
+ = 1.2.9 =
169
+ * Fix: WooCommerce products list table broken