WP Product Review Lite - Version 3.7.7

Version Description

  • 2020-05-21
Download this release

Release Info

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

Code changes from version 3.7.6 to 3.7.7

CHANGELOG.md CHANGED
@@ -1,7 +1,8 @@
1
 
2
- ### v3.7.6 - 2020-05-20
3
  **Changes:**
4
-
 
5
  ### v3.7.6 - 2020-05-14
6
  **Changes:**
7
  * - [Fix] Security vulnerability
1
 
2
+ ### v3.7.7 - 2020-05-21
3
  **Changes:**
4
+ * [Fix] Security vulnerability
5
+
6
  ### v3.7.6 - 2020-05-14
7
  **Changes:**
8
  * - [Fix] Security vulnerability
includes/admin/class-wppr-admin.php CHANGED
@@ -88,8 +88,7 @@ class WPPR_Admin {
88
  case 'post.php':
89
  // fall through.
90
  case 'post-new.php':
91
- $wp_scripts = wp_scripts();
92
- wp_enqueue_style( $this->plugin_name . '-jquery-ui', sprintf( '//ajax.googleapis.com/ajax/libs/jqueryui/%s/themes/smoothness/jquery-ui.css', $wp_scripts->registered['jquery-ui-core']->ver ), array(), $this->version );
93
  break;
94
  }
95
  }
88
  case 'post.php':
89
  // fall through.
90
  case 'post-new.php':
91
+ wp_enqueue_style( $this->plugin_name . '-jquery-ui', WPPR_URL . '/assets/css/jquery-ui.css', array(), $this->version );
 
92
  break;
93
  }
94
  }
includes/admin/models/class-wppr-editor-model.php CHANGED
@@ -193,12 +193,12 @@ class WPPR_Editor_Model extends WPPR_Model_Abstract {
193
  $price = isset( $data['wppr-editor-price'] ) ? sanitize_text_field( $data['wppr-editor-price'] ) : 0;
194
  $options_names = isset( $data['wppr-editor-options-name'] ) ? $data['wppr-editor-options-name'] : array();
195
  $options_values = isset( $data['wppr-editor-options-value'] ) ? $data['wppr-editor-options-value'] : array();
196
- $pros = isset( $data['wppr-editor-pros'] ) ? $data['wppr-editor-pros'] : array();
197
- $cons = isset( $data['wppr-editor-cons'] ) ? $data['wppr-editor-cons'] : array();
198
  $options = array();
199
  foreach ( $options_names as $k => $op_name ) {
200
  if ( ! empty( $op_name ) ) {
201
- $options[ $k ] = array(
202
  'name' => sanitize_text_field( $op_name ),
203
  'value' => sanitize_text_field( isset( $options_values[ $k ] ) ? ( empty( $options_values[ $k ] ) ? 0 : $options_values[ $k ] ) : 0 ),
204
  );
193
  $price = isset( $data['wppr-editor-price'] ) ? sanitize_text_field( $data['wppr-editor-price'] ) : 0;
194
  $options_names = isset( $data['wppr-editor-options-name'] ) ? $data['wppr-editor-options-name'] : array();
195
  $options_values = isset( $data['wppr-editor-options-value'] ) ? $data['wppr-editor-options-value'] : array();
196
+ $pros = isset( $data['wppr-editor-pros'] ) && is_array( $data['wppr-editor-pros'] ) ? array_map( 'sanitize_text_field', $data['wppr-editor-pros'] ) : array();
197
+ $cons = isset( $data['wppr-editor-cons'] ) && is_array( $data['wppr-editor-cons'] ) ? array_map( 'sanitize_text_field', $data['wppr-editor-cons'] ) : array();
198
  $options = array();
199
  foreach ( $options_names as $k => $op_name ) {
200
  if ( ! empty( $op_name ) ) {
201
+ $options[ sanitize_text_field( $k ) ] = array(
202
  'name' => sanitize_text_field( $op_name ),
203
  'value' => sanitize_text_field( isset( $options_values[ $k ] ) ? ( empty( $options_values[ $k ] ) ? 0 : $options_values[ $k ] ) : 0 ),
204
  );
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.7.6';
71
 
72
  $this->load_dependencies();
73
  $this->set_locale();
67
  */
68
  public function __construct() {
69
  $this->plugin_name = 'wppr';
70
+ $this->version = '3.7.7';
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.7.6",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
@@ -692,8 +692,8 @@
692
  "dev": true,
693
  "requires": {
694
  "caniuse-lite": "1.0.30001062",
695
- "electron-to-chromium": "1.3.446",
696
- "node-releases": "1.1.55",
697
  "pkg-up": "2.0.0"
698
  }
699
  },
@@ -1665,7 +1665,7 @@
1665
  "integrity": "sha512-yKWuGwOE283CTgbEuvqXXusLH4VBXnY2nZbDkeWev+cpAXY6zCIADSPLdvfkAROc0t8S4l07U1fateCdEDuuvg==",
1666
  "dev": true,
1667
  "requires": {
1668
- "editions": "2.3.0",
1669
  "typechecker": "4.11.0"
1670
  }
1671
  },
@@ -1680,9 +1680,9 @@
1680
  }
1681
  },
1682
  "editions": {
1683
- "version": "2.3.0",
1684
- "resolved": "https://registry.npmjs.org/editions/-/editions-2.3.0.tgz",
1685
- "integrity": "sha512-jeXYwHPKbitU1l14dWlsl5Nm+b1Hsm7VX73BsrQ4RVwEcAQQIPFHTZAbVtuIGxZBrpdT2FXd8lbtrNBrzZxIsA==",
1686
  "dev": true,
1687
  "requires": {
1688
  "errlop": "2.2.0",
@@ -1698,9 +1698,9 @@
1698
  }
1699
  },
1700
  "electron-to-chromium": {
1701
- "version": "1.3.446",
1702
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.446.tgz",
1703
- "integrity": "sha512-CLQaFuvkKqR9FD2G3cJrr1fV7DRMXiAKWLP2F8cxtvvtzAS7Tubt0kF47/m+uE61kiT+I7ZEn7HqLnmWdOhmuA==",
1704
  "dev": true
1705
  },
1706
  "encoding": {
@@ -2013,7 +2013,7 @@
2013
  "dev": true,
2014
  "requires": {
2015
  "eachr": "3.3.0",
2016
- "editions": "2.3.0",
2017
  "typechecker": "4.11.0"
2018
  }
2019
  },
@@ -4540,9 +4540,9 @@
4540
  }
4541
  },
4542
  "node-releases": {
4543
- "version": "1.1.55",
4544
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.55.tgz",
4545
- "integrity": "sha512-H3R3YR/8TjT5WPin/wOoHOUPHgvj8leuU/Keta/rwelEQN9pA/S2Dx8/se4pZ2LBxSd0nAGzsNzhqwa77v7F1w==",
4546
  "dev": true
4547
  },
4548
  "node-uuid": {
@@ -5406,7 +5406,7 @@
5406
  "integrity": "sha512-oskKAg0pSlPnJAkFMrcqrHeCGzYunl4Hkl+N/NW3nnFWDHRg97yb475HtF5ax8LP9i8QvVkenVIhjNb+h+P7nA==",
5407
  "dev": true,
5408
  "requires": {
5409
- "editions": "2.3.0"
5410
  }
5411
  },
5412
  "resolve": {
@@ -5498,7 +5498,7 @@
5498
  "integrity": "sha512-1amPBO92jw/hWS+gH/u7z7EL7YxaJ8WecBQl49tMQ6Y6EQfndxNNKwlPqDOcwpUetdmK6nKLoVdjybVScRwq5A==",
5499
  "dev": true,
5500
  "requires": {
5501
- "editions": "2.3.0",
5502
  "graceful-fs": "4.2.4"
5503
  }
5504
  },
@@ -6389,7 +6389,7 @@
6389
  "integrity": "sha512-lz39Mc/d1UBcF/uQFL5P8L+oWdIn/stvkUgHf0tPRW4aEwGGErewNXo2Nb6We2WslWifn00rhcHbbRWRcTGhuw==",
6390
  "dev": true,
6391
  "requires": {
6392
- "editions": "2.3.0"
6393
  }
6394
  },
6395
  "unbzip2-stream": {
1
  {
2
  "name": "wp-product-review",
3
+ "version": "3.7.7",
4
  "lockfileVersion": 1,
5
  "requires": true,
6
  "dependencies": {
692
  "dev": true,
693
  "requires": {
694
  "caniuse-lite": "1.0.30001062",
695
+ "electron-to-chromium": "1.3.448",
696
+ "node-releases": "1.1.56",
697
  "pkg-up": "2.0.0"
698
  }
699
  },
1665
  "integrity": "sha512-yKWuGwOE283CTgbEuvqXXusLH4VBXnY2nZbDkeWev+cpAXY6zCIADSPLdvfkAROc0t8S4l07U1fateCdEDuuvg==",
1666
  "dev": true,
1667
  "requires": {
1668
+ "editions": "2.3.1",
1669
  "typechecker": "4.11.0"
1670
  }
1671
  },
1680
  }
1681
  },
1682
  "editions": {
1683
+ "version": "2.3.1",
1684
+ "resolved": "https://registry.npmjs.org/editions/-/editions-2.3.1.tgz",
1685
+ "integrity": "sha512-ptGvkwTvGdGfC0hfhKg0MT+TRLRKGtUiWGBInxOm5pz7ssADezahjCUaYuZ8Dr+C05FW0AECIIPt4WBxVINEhA==",
1686
  "dev": true,
1687
  "requires": {
1688
  "errlop": "2.2.0",
1698
  }
1699
  },
1700
  "electron-to-chromium": {
1701
+ "version": "1.3.448",
1702
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.448.tgz",
1703
+ "integrity": "sha512-WOr3SrZ55lUFYugA6sUu3H3ZoxVIH5o3zTSqYS+2DOJJP4hnHmBiD1w432a2YFW/H2G5FIxE6DB06rv+9dUL5g==",
1704
  "dev": true
1705
  },
1706
  "encoding": {
2013
  "dev": true,
2014
  "requires": {
2015
  "eachr": "3.3.0",
2016
+ "editions": "2.3.1",
2017
  "typechecker": "4.11.0"
2018
  }
2019
  },
4540
  }
4541
  },
4542
  "node-releases": {
4543
+ "version": "1.1.56",
4544
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.56.tgz",
4545
+ "integrity": "sha512-EVo605FhWLygH8a64TjgpjyHYOihkxECwX1bHHr8tETJKWEiWS2YJjPbvsX2jFjnjTNEgBCmk9mLjKG1Mf11cw==",
4546
  "dev": true
4547
  },
4548
  "node-uuid": {
5406
  "integrity": "sha512-oskKAg0pSlPnJAkFMrcqrHeCGzYunl4Hkl+N/NW3nnFWDHRg97yb475HtF5ax8LP9i8QvVkenVIhjNb+h+P7nA==",
5407
  "dev": true,
5408
  "requires": {
5409
+ "editions": "2.3.1"
5410
  }
5411
  },
5412
  "resolve": {
5498
  "integrity": "sha512-1amPBO92jw/hWS+gH/u7z7EL7YxaJ8WecBQl49tMQ6Y6EQfndxNNKwlPqDOcwpUetdmK6nKLoVdjybVScRwq5A==",
5499
  "dev": true,
5500
  "requires": {
5501
+ "editions": "2.3.1",
5502
  "graceful-fs": "4.2.4"
5503
  }
5504
  },
6389
  "integrity": "sha512-lz39Mc/d1UBcF/uQFL5P8L+oWdIn/stvkUgHf0tPRW4aEwGGErewNXo2Nb6We2WslWifn00rhcHbbRWRcTGhuw==",
6390
  "dev": true,
6391
  "requires": {
6392
+ "editions": "2.3.1"
6393
  }
6394
  },
6395
  "unbzip2-stream": {
readme.md CHANGED
@@ -37,6 +37,11 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
37
  **Please note that WP Product Review PRO has been retired and is no longer available**
38
 
39
  ## Changelog ##
 
 
 
 
 
40
  ### 3.7.6 - 2020-05-14 ###
41
 
42
  * - [Fix] Security vulnerability
37
  **Please note that WP Product Review PRO has been retired and is no longer available**
38
 
39
  ## Changelog ##
40
+ ### 3.7.7 - 2020-05-21 ###
41
+
42
+ * [Fix] Security vulnerability
43
+
44
+
45
  ### 3.7.6 - 2020-05-14 ###
46
 
47
  * - [Fix] Security vulnerability
readme.txt CHANGED
@@ -37,6 +37,11 @@ If you wanna learn more about the <a href="http://www.codeinwp.com/blog/fastest-
37
  **Please note that WP Product Review PRO has been retired and is no longer available**
38
 
39
  == Changelog ==
 
 
 
 
 
40
  = 3.7.6 - 2020-05-14 =
41
 
42
  * - [Fix] Security vulnerability
37
  **Please note that WP Product Review PRO has been retired and is no longer available**
38
 
39
  == Changelog ==
40
+ = 3.7.7 - 2020-05-21 =
41
+
42
+ * [Fix] Security vulnerability
43
+
44
+
45
  = 3.7.6 - 2020-05-14 =
46
 
47
  * - [Fix] Security vulnerability
themeisle-hash.json CHANGED
@@ -1 +1 @@
1
- {"class-wppr-autoloader.php":"c7f7f3dd52445edb5f7367ba7b31281f","class-wppr-recursive-filter.php":"6c74b0e7c04529d797ae9689d9a44c8d","index.php":"c76772901fa1b2b14aa3ba32d7773c8a","uninstall.php":"7c6d36652e8dcf013f2c246f4a289acf","wp-product-review.php":"2909676f4fa4eca70dc3ae90a7b19561"}
1
+ {"class-wppr-autoloader.php":"c7f7f3dd52445edb5f7367ba7b31281f","class-wppr-recursive-filter.php":"6c74b0e7c04529d797ae9689d9a44c8d","index.php":"c76772901fa1b2b14aa3ba32d7773c8a","uninstall.php":"7c6d36652e8dcf013f2c246f4a289acf","wp-product-review.php":"290417958328e8f85d0cfdc9f2895af3"}
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita20cfe22aa05f042f0fc2af8482b18a9::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit7af94f3c4164ff1014497b20b3a5ee53::getLoader();
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInitd6ab8ea3f9f9c3a53d89ded8feceb0a6::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInit18da8e8f6744b2b3547350816791e39f::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita20cfe22aa05f042f0fc2af8482b18a9
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInita20cfe22aa05f042f0fc2af8482b18a9
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInita20cfe22aa05f042f0fc2af8482b18a9', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInita20cfe22aa05f042f0fc2af8482b18a9', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInita20cfe22aa05f042f0fc2af8482b18a9
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequirea20cfe22aa05f042f0fc2af8482b18a9($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequirea20cfe22aa05f042f0fc2af8482b18a9($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 ComposerAutoloaderInit7af94f3c4164ff1014497b20b3a5ee53
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit7af94f3c4164ff1014497b20b3a5ee53', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit7af94f3c4164ff1014497b20b3a5ee53', '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
+ composerRequire7af94f3c4164ff1014497b20b3a5ee53($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire7af94f3c4164ff1014497b20b3a5ee53($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 ComposerAutoloaderInitd6ab8ea3f9f9c3a53d89ded8feceb0a6 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitd6ab8ea3f9f9c3a53d89ded8feceb0a6 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitd6ab8ea3f9f9c3a53d89ded8feceb0a6', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitd6ab8ea3f9f9c3a53d89ded8feceb0a6', '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 ComposerAutoloaderInit18da8e8f6744b2b3547350816791e39f {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit18da8e8f6744b2b3547350816791e39f', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit18da8e8f6744b2b3547350816791e39f', '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.7.6
19
  * Author: ThemeIsle
20
  * Author URI: https://themeisle.com/
21
  * Requires at least: 3.5
@@ -66,7 +66,7 @@ register_deactivation_hook( __FILE__, 'deactivate_wppr' );
66
  */
67
  function run_wppr() {
68
 
69
- define( 'WPPR_LITE_VERSION', '3.7.6' );
70
  define( 'WPPR_PATH', dirname( __FILE__ ) );
71
  define( 'WPPR_SLUG', 'wppr' );
72
  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.7.7
19
  * Author: ThemeIsle
20
  * Author URI: https://themeisle.com/
21
  * Requires at least: 3.5
66
  */
67
  function run_wppr() {
68
 
69
+ define( 'WPPR_LITE_VERSION', '3.7.7' );
70
  define( 'WPPR_PATH', dirname( __FILE__ ) );
71
  define( 'WPPR_SLUG', 'wppr' );
72
  define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );