LuckyWP Table of Contents - Version 1.9.10

Version Description

2019-11-10 = * Fixed: in some cases hash for heading without transliteration was generated incorrectly.

Download this release

Release Info

Developer theluckywp
Plugin Icon 128x128 LuckyWP Table of Contents
Version 1.9.10
Comparing to
See all releases

Code changes from version 1.9.9 to 1.9.10

luckywp-table-of-contents.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: LuckyWP Table of Contents
4
  Plugin URI: https://theluckywp.com/product/table-of-contents/
5
  Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
6
- Version: 1.9.9
7
  Author: LuckyWP
8
  Author URI: https://theluckywp.com/
9
  Text Domain: luckywp-table-of-contents
@@ -29,6 +29,6 @@ $lwptocAutoloader->register();
29
  $lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
30
 
31
  $config = require(__DIR__ . '/config/plugin.php');
32
- (new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.9.9', __FILE__, 'lwptoc_');
33
 
34
  require_once __DIR__ . '/functions.php';
3
  Plugin Name: LuckyWP Table of Contents
4
  Plugin URI: https://theluckywp.com/product/table-of-contents/
5
  Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
6
+ Version: 1.9.10
7
  Author: LuckyWP
8
  Author URI: https://theluckywp.com/
9
  Text Domain: luckywp-table-of-contents
29
  $lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
30
 
31
  $config = require(__DIR__ . '/config/plugin.php');
32
+ (new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.9.10', __FILE__, 'lwptoc_');
33
 
34
  require_once __DIR__ . '/functions.php';
plugin/contentHandling/ContentHandling.php CHANGED
@@ -74,11 +74,13 @@ class ContentHandling
74
  case 'asheading':
75
  case 'asheadingwotransliterate':
76
  default:
77
- $id = html_entity_decode($label, ENT_QUOTES, get_option('blog_charset'));
78
  if ($dto->hashFormat == 'asheadingwotransliterate') {
79
  $id = htmlentities2($id);
80
  $id = str_replace(['&', ' ', '#', "\n\r", "\r\n", "\r", "\n"], '_', $id);
 
81
  } else {
 
82
  if (function_exists('transliterator_transliterate')) {
83
  $id = transliterator_transliterate('Any-Latin; Latin-ASCII;', $id);
84
  } else {
74
  case 'asheading':
75
  case 'asheadingwotransliterate':
76
  default:
77
+ $id = $label;
78
  if ($dto->hashFormat == 'asheadingwotransliterate') {
79
  $id = htmlentities2($id);
80
  $id = str_replace(['&', ' ', '#', "\n\r", "\r\n", "\r", "\n"], '_', $id);
81
+ $id = html_entity_decode($id, ENT_QUOTES, get_option('blog_charset'));
82
  } else {
83
+ $id = html_entity_decode($id, ENT_QUOTES, get_option('blog_charset'));
84
  if (function_exists('transliterator_transliterate')) {
85
  $id = transliterator_transliterate('Any-Latin; Latin-ASCII;', $id);
86
  } else {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://theluckywp.com/product/table-of-contents/
4
  Tags: table of contents, toc, navigation, links, seo
5
  Requires at least: 4.7
6
  Tested up to: 5.3
7
- Stable tag: 1.9.9
8
  Requires PHP: 5.6.20
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -66,7 +66,7 @@ LuckyWP Table of Contents was successfully tested with the following plugins:
66
  * Elementor Page Builder
67
  * Beaver Builder and Beaver Builder Themer Add-On
68
  * WPBakery Page Builder
69
- * WordPress Multilingual Plugin (WPML)
70
  * Rank Math, [officially confirmed](https://rankmath.com/compatibility/luckywp-table-of-contents/)
71
  * WP Rocket
72
  * Toolset Views and Toolset Access
@@ -151,6 +151,9 @@ For non-English websites it is recommended to enable the `Intl` PHP extension.
151
 
152
  == Changelog ==
153
 
 
 
 
154
  = 1.9.9 — 2019-11-06 =
155
  * Minor fixes for WPML compatibility.
156
 
4
  Tags: table of contents, toc, navigation, links, seo
5
  Requires at least: 4.7
6
  Tested up to: 5.3
7
+ Stable tag: 1.9.10
8
  Requires PHP: 5.6.20
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
66
  * Elementor Page Builder
67
  * Beaver Builder and Beaver Builder Themer Add-On
68
  * WPBakery Page Builder
69
+ * WordPress Multilingual Plugin (WPML), [officially confirmed](https://wpml.org/plugin/luckywp-table-of-contents/)
70
  * Rank Math, [officially confirmed](https://rankmath.com/compatibility/luckywp-table-of-contents/)
71
  * WP Rocket
72
  * Toolset Views and Toolset Access
151
 
152
  == Changelog ==
153
 
154
+ = 1.9.10 — 2019-11-10 =
155
+ * Fixed: in some cases hash for heading without transliteration was generated incorrectly.
156
+
157
  = 1.9.9 — 2019-11-06 =
158
  * Minor fixes for WPML compatibility.
159