WP Product Review Lite - Version 3.4.1

Version Description

  • 2018-02-21
Download this release

Release Info

Developer codeinwp
Plugin Icon WP Product Review Lite
Version 3.4.1
Comparing to
See all releases

Code changes from version 3.4.0 to 3.4.1

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v3.4.0 - 2018-02-20
3
  **Changes:**
4
  * Adds AMP support for the review box.
1
 
2
+ ### v3.4.1 - 2018-02-21
3
+ **Changes:**
4
+ * Fix issue with category filtering when querying reviews.
5
+
6
  ### v3.4.0 - 2018-02-20
7
  **Changes:**
8
  * Adds AMP support for the review box.
assets/css/frontpage.css CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- Version: 3.4.0
3
  */
4
  #review-statistics {
5
  width: 100%;
1
  /*
2
+ Version: 3.4.1
3
  */
4
  #review-statistics {
5
  width: 100%;
includes/admin/models/class-wppr-query-model.php CHANGED
@@ -249,7 +249,7 @@ class WPPR_Query_Model extends WPPR_Model_Abstract {
249
  $conditions['having'] .= $this->db->prepare( ' AND `rating` > %f ', $filter['rating'] );
250
  }
251
 
252
- $conditions .= apply_filters( 'wppr_where_clause', '', $post, $filter );
253
 
254
  return $conditions;
255
  }
249
  $conditions['having'] .= $this->db->prepare( ' AND `rating` > %f ', $filter['rating'] );
250
  }
251
 
252
+ $conditions = apply_filters( 'wppr_where_clause', $conditions, $post, $filter );
253
 
254
  return $conditions;
255
  }
includes/class-wppr.php CHANGED
@@ -67,7 +67,7 @@ class WPPR {
67
  */
68
  public function __construct() {
69
  $this->plugin_name = 'wppr';
70
- $this->version = '3.4.0';
71
 
72
  $this->load_dependencies();
73
  $this->set_locale();
67
  */
68
  public function __construct() {
69
  $this->plugin_name = 'wppr';
70
+ $this->version = '3.4.1';
71
 
72
  $this->load_dependencies();
73
  $this->set_locale();
package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "wp-product-review",
3
- "version": "3.4.0",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
1
  {
2
  "name": "wp-product-review",
3
+ "version": "3.4.1",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
readme.md CHANGED
@@ -67,6 +67,11 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
67
  * fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
68
 
69
  ## Changelog ##
 
 
 
 
 
70
  ### 3.4.0 - 2018-02-20 ###
71
 
72
  * Adds AMP support for the review box.
67
  * fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
68
 
69
  ## Changelog ##
70
+ ### 3.4.1 - 2018-02-21 ###
71
+
72
+ * Fix issue with category filtering when querying reviews.
73
+
74
+
75
  ### 3.4.0 - 2018-02-20 ###
76
 
77
  * Adds AMP support for the review box.
readme.txt CHANGED
@@ -67,6 +67,11 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
67
  * fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
68
 
69
  == Changelog ==
 
 
 
 
 
70
  = 3.4.0 - 2018-02-20 =
71
 
72
  * Adds AMP support for the review box.
@@ -454,6 +459,7 @@ Alternatively you can also follow the following steps to install the WP Product
454
 
455
 
456
 
 
457
  = How to activate user reviews =
458
 
459
  By default user reviews are disabled since not all the themes are compatible with this option due to different designs for the comment box. You can easily activate them from General Settings
@@ -533,6 +539,66 @@ https://themeisle.com/contact
533
  = Install and use the pro version of WP Product Review =
534
  [http://docs.themeisle.com/article/785-install-and-use-the-pro-version-of-wp-product-review](http://docs.themeisle.com/article/785-install-and-use-the-pro-version-of-wp-product-review)
535
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  == Upgrade Notice ==
537
 
538
  = 3.0 =
67
  * fr_FR translation by Jacques Soule of http://wordpress-pour-vous.com/
68
 
69
  == Changelog ==
70
+ = 3.4.1 - 2018-02-21 =
71
+
72
+ * Fix issue with category filtering when querying reviews.
73
+
74
+
75
  = 3.4.0 - 2018-02-20 =
76
 
77
  * Adds AMP support for the review box.
459
 
460
 
461
 
462
+
463
  = How to activate user reviews =
464
 
465
  By default user reviews are disabled since not all the themes are compatible with this option due to different designs for the comment box. You can easily activate them from General Settings
539
  = Install and use the pro version of WP Product Review =
540
  [http://docs.themeisle.com/article/785-install-and-use-the-pro-version-of-wp-product-review](http://docs.themeisle.com/article/785-install-and-use-the-pro-version-of-wp-product-review)
541
 
542
+ = WP Product Review Documentation =
543
+ [https://docs.themeisle.com/article/173-wp-product-review-documentation](https://docs.themeisle.com/article/173-wp-product-review-documentation)
544
+
545
+ = WP Product Review Shortcode Documentation =
546
+ [https://docs.themeisle.com/article/449-wp-product-review-shortcode-documentation](https://docs.themeisle.com/article/449-wp-product-review-shortcode-documentation)
547
+
548
+ = How to change dynamically the image size for review =
549
+ [https://docs.themeisle.com/article/135-how-to-change-dynamically-the-image-size-for-review](https://docs.themeisle.com/article/135-how-to-change-dynamically-the-image-size-for-review)
550
+
551
+ = How to change dynamically the pros/cons heading text =
552
+ [https://docs.themeisle.com/article/133-how-to-change-dynamically-the-proscons-heading-text](https://docs.themeisle.com/article/133-how-to-change-dynamically-the-proscons-heading-text)
553
+
554
+ = WP Product Review Comparison Table Documentation =
555
+ [https://docs.themeisle.com/article/424-wp-product-review-comparison-table-documentation](https://docs.themeisle.com/article/424-wp-product-review-comparison-table-documentation)
556
+
557
+ = How to change dynamically the option name format =
558
+ [https://docs.themeisle.com/article/132-how-to-change-dynamically-the-option-name-format](https://docs.themeisle.com/article/132-how-to-change-dynamically-the-option-name-format)
559
+
560
+ = How to make Comment Review option work in any theme =
561
+ [https://docs.themeisle.com/article/54-how-to-make-comment-review-option-work-in-any-theme](https://docs.themeisle.com/article/54-how-to-make-comment-review-option-work-in-any-theme)
562
+
563
+ = Prevent users from posting multiple review on a single post in WP Product Review =
564
+ [https://docs.themeisle.com/article/578-prevent-users-from-posting-multiple-review-on-a-single-post-in-wp-product-review](https://docs.themeisle.com/article/578-prevent-users-from-posting-multiple-review-on-a-single-post-in-wp-product-review)
565
+
566
+ = How to create a listing grid of reviews in WP Product Review =
567
+ [https://docs.themeisle.com/article/764-how-to-create-a-listing-grid-of-reviews-in-wp-product-review](https://docs.themeisle.com/article/764-how-to-create-a-listing-grid-of-reviews-in-wp-product-review)
568
+
569
+ = Enable user reviews in WP Product Review =
570
+ [https://docs.themeisle.com/article/759-enable-user-reviews-in-wp-product-review](https://docs.themeisle.com/article/759-enable-user-reviews-in-wp-product-review)
571
+
572
+ = Install and use the pro version of WP Product Review =
573
+ [https://docs.themeisle.com/article/785-install-and-use-the-pro-version-of-wp-product-review](https://docs.themeisle.com/article/785-install-and-use-the-pro-version-of-wp-product-review)
574
+
575
+ = Rich Snippets not showing in search results =
576
+ [https://docs.themeisle.com/article/756-rich-snippets-not-showing-in-search-results](https://docs.themeisle.com/article/756-rich-snippets-not-showing-in-search-results)
577
+
578
+ = What actions and filters are available in WP Product Review =
579
+ [https://docs.themeisle.com/article/770-what-actions-and-filters-are-available-in-wp-product-review](https://docs.themeisle.com/article/770-what-actions-and-filters-are-available-in-wp-product-review)
580
+
581
+ = How to add a top products widget in WP Product Review =
582
+ [https://docs.themeisle.com/article/763-how-to-add-a-top-products-widget-in-wp-product-review](https://docs.themeisle.com/article/763-how-to-add-a-top-products-widget-in-wp-product-review)
583
+
584
+ = How to change the default rating icon in WP Product Review =
585
+ [https://docs.themeisle.com/article/757-how-to-change-the-default-rating-icon-in-wp-product-review](https://docs.themeisle.com/article/757-how-to-change-the-default-rating-icon-in-wp-product-review)
586
+
587
+ = How to remove Pros/Cons list in WP Product Review =
588
+ [https://docs.themeisle.com/article/762-how-to-remove-proscons-list-in-wp-product-review](https://docs.themeisle.com/article/762-how-to-remove-proscons-list-in-wp-product-review)
589
+
590
+ = How to increase number of review options, pros or cons in WP Product Review =
591
+ [https://docs.themeisle.com/article/758-how-to-increase-number-of-review-options-pros-or-cons-in-wp-product-review](https://docs.themeisle.com/article/758-how-to-increase-number-of-review-options-pros-or-cons-in-wp-product-review)
592
+
593
+ = How to change the rating colours in WP Product Review =
594
+ [https://docs.themeisle.com/article/761-how-to-change-the-rating-colours-in-wp-product-review](https://docs.themeisle.com/article/761-how-to-change-the-rating-colours-in-wp-product-review)
595
+
596
+ = How to remove rich snippets in WP Product Review =
597
+ [https://docs.themeisle.com/article/755-how-to-remove-rich-snippets-in-wp-product-review](https://docs.themeisle.com/article/755-how-to-remove-rich-snippets-in-wp-product-review)
598
+
599
+ = How the visitors rating are influencing the review rating in WP Product Review =
600
+ [https://docs.themeisle.com/article/760-how-the-visitors-rating-are-influencing-the-review-rating-in-wp-product-review](https://docs.themeisle.com/article/760-how-the-visitors-rating-are-influencing-the-review-rating-in-wp-product-review)
601
+
602
  == Upgrade Notice ==
603
 
604
  = 3.0 =
themeisle-hash.json CHANGED
@@ -1 +1 @@
1
- {"class-wppr-autoloader.php":"96be4219e0b4502f5698c5a8b084d108","index.php":"c76772901fa1b2b14aa3ba32d7773c8a","uninstall.php":"7c6d36652e8dcf013f2c246f4a289acf","wp-product-review.php":"a0abcc70ecb34f7b6af8e7dcc3505a73"}
1
+ {"class-wppr-autoloader.php":"96be4219e0b4502f5698c5a8b084d108","index.php":"c76772901fa1b2b14aa3ba32d7773c8a","uninstall.php":"7c6d36652e8dcf013f2c246f4a289acf","wp-product-review.php":"eeaf9c84e3d4d041461c0db33e8bf7a4"}
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitbdd4bd7f00254ffad6b05d16536f5a0b::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit10246ebbd5804951ff1e4840a541efa2::getLoader();
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInitd1002ad61687cc1318b42cae9a6647d8::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInitd38bea89a8479818e26e114da713ab5e::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitbdd4bd7f00254ffad6b05d16536f5a0b
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitbdd4bd7f00254ffad6b05d16536f5a0b
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitbdd4bd7f00254ffad6b05d16536f5a0b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitbdd4bd7f00254ffad6b05d16536f5a0b', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInitbdd4bd7f00254ffad6b05d16536f5a0b
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequirebdd4bd7f00254ffad6b05d16536f5a0b($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequirebdd4bd7f00254ffad6b05d16536f5a0b($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit10246ebbd5804951ff1e4840a541efa2
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit10246ebbd5804951ff1e4840a541efa2', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit10246ebbd5804951ff1e4840a541efa2', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequire10246ebbd5804951ff1e4840a541efa2($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire10246ebbd5804951ff1e4840a541efa2($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
vendor/composer/autoload_real_52.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
- class ComposerAutoloaderInitd1002ad61687cc1318b42cae9a6647d8 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitd1002ad61687cc1318b42cae9a6647d8 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitd1002ad61687cc1318b42cae9a6647d8', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitd1002ad61687cc1318b42cae9a6647d8', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInitd38bea89a8479818e26e114da713ab5e {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitd38bea89a8479818e26e114da713ab5e', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitd38bea89a8479818e26e114da713ab5e', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
wp-product-review.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: WP Product Review Lite
16
  * Plugin URI: https://themeisle.com/plugins/wp-product-review/
17
  * Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
18
- * Version: 3.4.0
19
  * Author: ThemeIsle
20
  * Author URI: https://themeisle.com/
21
  * Requires at least: 3.5
@@ -67,7 +67,7 @@ register_deactivation_hook( __FILE__, 'deactivate_wppr' );
67
  */
68
  function run_wppr() {
69
 
70
- define( 'WPPR_LITE_VERSION', '3.4.0' );
71
  define( 'WPPR_PATH', dirname( __FILE__ ) );
72
  define( 'WPPR_SLUG', 'wppr' );
73
  define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );
15
  * Plugin Name: WP Product Review Lite
16
  * Plugin URI: https://themeisle.com/plugins/wp-product-review/
17
  * Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
18
+ * Version: 3.4.1
19
  * Author: ThemeIsle
20
  * Author URI: https://themeisle.com/
21
  * Requires at least: 3.5
67
  */
68
  function run_wppr() {
69
 
70
+ define( 'WPPR_LITE_VERSION', '3.4.1' );
71
  define( 'WPPR_PATH', dirname( __FILE__ ) );
72
  define( 'WPPR_SLUG', 'wppr' );
73
  define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );