kk Star Ratings - Version 5.3.2

Version Description

Download this release

Release Info

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

Code changes from version 5.3.1 to 5.3.2

CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
 
 
 
 
 
 
 
 
 
8
  ## [5.3.1] - 2022-07-08
9
 
10
  ### Fixed
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
 
8
+ ## [5.3.2] - 2022-08-10
9
+
10
+ ### Added
11
+ - Added ability to ignore shortcode using the `ignore` property.
12
+
13
+ ### Updated
14
+ - Bumped WordPress version (6.0.1).
15
+
16
  ## [5.3.1] - 2022-07-08
17
 
18
  ### Fixed
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: 5.3.1
14
  * License: GPLv2 or later
15
  */
16
 
10
  * Author URI: http://bhittani.com
11
  * Text Domain: kk-star-ratings
12
  * Domain Path: /languages
13
+ * Version: 5.3.2
14
  * License: GPLv2 or later
15
  */
16
 
languages/kk-star-ratings.pot CHANGED
@@ -2,14 +2,14 @@
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 5.3.1\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: 2022-07-08T11:07:45+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: kk-star-ratings\n"
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 5.3.2\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: 2022-08-10T10:44:16+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: kk-star-ratings\n"
readme.txt CHANGED
@@ -5,8 +5,8 @@ Donate link: https://github.com/kamalkhan/kk-star-ratings
5
  Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited stars, google rich snippets, structured data, SEO, SERP
6
  Requires at least: 5.0
7
  Requires PHP: 7.2
8
- Tested up to: 6.0
9
- Stable tag: 5.3.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
5
  Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited stars, google rich snippets, structured data, SEO, SERP
6
  Requires at least: 5.0
7
  Requires PHP: 7.2
8
+ Tested up to: 6.0.1
9
+ Stable tag: 5.3.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
src/core/wp/shortcodes/kk-star-ratings.php CHANGED
@@ -27,6 +27,7 @@ function kk_star_ratings($attrs, string $contents, string $tag): string
27
  'align', 'best', 'class', 'count', 'gap', 'greet', 'id',
28
  'legend', 'readonly', 'score', 'size', 'slug', 'valign',
29
  ], '') + [
 
30
  'reference' => 'shortcode',
31
  ];
32
 
@@ -50,6 +51,10 @@ function kk_star_ratings($attrs, string $contents, string $tag): string
50
 
51
  $payload = shortcode_atts($defaults, $attrs + ['legend' => $contents], $tag);
52
 
 
 
 
 
53
  if (! $payload['id']) {
54
  $payload['id'] = (int) get_the_ID();
55
  }
27
  'align', 'best', 'class', 'count', 'gap', 'greet', 'id',
28
  'legend', 'readonly', 'score', 'size', 'slug', 'valign',
29
  ], '') + [
30
+ 'ignore' => false,
31
  'reference' => 'shortcode',
32
  ];
33
 
51
 
52
  $payload = shortcode_atts($defaults, $attrs + ['legend' => $contents], $tag);
53
 
54
+ if ($payload['ignore']) {
55
+ return '';
56
+ }
57
+
58
  if (! $payload['id']) {
59
  $payload['id'] = (int) get_the_ID();
60
  }