kk Star Ratings - Version 4.1.8

Version Description

Download this release

Release Info

Developer bhittani
Plugin Icon 128x128 kk Star Ratings
Version 4.1.8
Comparing to
See all releases

Code changes from version 4.1.7 to 4.1.8

freemius/includes/class-fs-logger.php CHANGED
@@ -142,7 +142,7 @@
142
  return $this->_file_start;
143
  }
144
 
145
- private function _log( &$message, $type = 'log', $wrapper ) {
146
  if ( ! $this->is_on() ) {
147
  return;
148
  }
@@ -688,4 +688,4 @@ KEY `type` (`type` ASC))" );
688
  }
689
 
690
  #endregion
691
- }
142
  return $this->_file_start;
143
  }
144
 
145
+ private function _log( &$message, $type = 'log', $wrapper = null ) {
146
  if ( ! $this->is_on() ) {
147
  return;
148
  }
688
  }
689
 
690
  #endregion
691
+ }
index.php CHANGED
@@ -10,7 +10,7 @@
10
  * Author URI: http://bhittani.com
11
  * Text Domain: kk-star-ratings
12
  * Domain Path: /languages
13
- * Version: 4.1.7
14
  * License: GPLv2 or later
15
  */
16
 
@@ -63,6 +63,7 @@ HTML
63
  ],
64
  ]);
65
 
 
66
  require_once __DIR__.'/src/global.php';
67
  require_once __DIR__.'/src/hook.php';
68
  require_once __DIR__.'/src/ajax.php';
10
  * Author URI: http://bhittani.com
11
  * Text Domain: kk-star-ratings
12
  * Domain Path: /languages
13
+ * Version: 4.1.8
14
  * License: GPLv2 or later
15
  */
16
 
63
  ],
64
  ]);
65
 
66
+ require_once __DIR__.'/src/i18n.php';
67
  require_once __DIR__.'/src/global.php';
68
  require_once __DIR__.'/src/hook.php';
69
  require_once __DIR__.'/src/ajax.php';
languages/kk-star-ratings.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2020 Kamal Khan
2
  # This file is distributed under the same license as the kk Star Ratings plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: kk Star Ratings 4.1.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kk-star-ratings\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2020-12-20T13:13:40+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.3.0\n"
15
  "X-Domain: kk-star-ratings\n"
1
+ # Copyright (C) 2021 Kamal Khan
2
  # This file is distributed under the same license as the kk Star Ratings plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: kk Star Ratings 4.1.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kk-star-ratings\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-03-14T13:23:50+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.3.0\n"
15
  "X-Domain: kk-star-ratings\n"
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://github.com/kamalkhan/kk-star-ratings
4
  Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited stars, google rich snippets, structured data, SEO, SERP
5
  Requires at least: 4.5
6
  Requires PHP: 5.6
7
- Tested up to: 5.6
8
- Stable tag: 4.1.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
4
  Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited stars, google rich snippets, structured data, SEO, SERP
5
  Requires at least: 4.5
6
  Requires PHP: 5.6
7
+ Tested up to: 5.7
8
+ Stable tag: 4.1.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
src/i18n.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of bhittani/kk-star-ratings.
5
+ *
6
+ * (c) Kamal Khan <shout@bhittani.com>
7
+ *
8
+ * For the full copyright and license information, please view
9
+ * the LICENSE file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Bhittani\StarRating;
13
+
14
+ if (!defined('ABSPATH')) {
15
+ http_response_code(404);
16
+ die();
17
+ }
18
+
19
+ add_action('init', __NAMESPACE__ . '\load_textdomain');
20
+ function load_textdomain()
21
+ {
22
+ load_plugin_textdomain('kk-star-ratings', false, __DIR__ . '/../languages');
23
+ }
src/post.php CHANGED
@@ -194,9 +194,7 @@ function structured_data()
194
  return;
195
  }
196
 
197
- if (get_option(prefix('grs'))
198
- && (is_singular() || is_page())
199
- ) {
200
  $id = get_post_field('ID');
201
  $title = htmlentities(get_post_field('post_title'));
202
  $best = max((int) get_option(prefix('stars')), 1);
194
  return;
195
  }
196
 
197
+ if (get_option(prefix('grs')) && (is_singular())) {
 
 
198
  $id = get_post_field('ID');
199
  $title = htmlentities(get_post_field('post_title'));
200
  $best = max((int) get_option(prefix('stars')), 1);