Version Description
04/16/2022 = * Bug Fixed : While Using Elementor Page builder TOC is not working when special characters are used in headings. #150 * Bug Fixed : Need to load CSS/JS files only on the selected post types. #154
Download this release
Release Info
Developer | magazine3 |
Plugin | Easy Table of Contents |
Version | 2.0.19 |
Comparing to | |
See all releases |
Code changes from version 2.0.18 to 2.0.19
- README.txt +6 -2
- easy-table-of-contents.php +9 -3
- includes/inc.string-functions.php +2 -0
README.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: magazine3
|
|
3 |
Donate link: https://magazine3.company/
|
4 |
Tags: table of contents, toc
|
5 |
Requires at least: 5.3
|
6 |
-
Tested up to: 5.9.
|
7 |
Requires PHP: 5.6.20
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -95,6 +95,10 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
|
|
|
|
|
|
|
|
98 |
= 2.0.18 03/29/2022 =
|
99 |
* TWEAK: Added Technical Support Tab in Settings Panel.
|
100 |
|
3 |
Donate link: https://magazine3.company/
|
4 |
Tags: table of contents, toc
|
5 |
Requires at least: 5.3
|
6 |
+
Tested up to: 5.9.3
|
7 |
Requires PHP: 5.6.20
|
8 |
+
Stable tag: 2.0.19
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 2.0.19 04/16/2022 =
|
99 |
+
* Bug Fixed : While Using Elementor Page builder TOC is not working when special characters are used in headings. #150
|
100 |
+
* Bug Fixed : Need to load CSS/JS files only on the selected post types. #154
|
101 |
+
|
102 |
= 2.0.18 03/29/2022 =
|
103 |
* TWEAK: Added Technical Support Tab in Settings Panel.
|
104 |
|
easy-table-of-contents.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Easy Table of Contents
|
4 |
* Plugin URI: https://magazine3.company/
|
5 |
* Description: Adds a user friendly and fully automatic way to create and display a table of contents generated from the page content.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: Magazine3
|
8 |
* Author URI: https://magazine3.company/
|
9 |
* Text Domain: easy-table-of-contents
|
@@ -26,7 +26,7 @@
|
|
26 |
* @package Easy Table of Contents
|
27 |
* @category Plugin
|
28 |
* @author Magazine3
|
29 |
-
* @version 2.0.
|
30 |
*/
|
31 |
|
32 |
use Easy_Plugins\Table_Of_Contents\Debug;
|
@@ -48,7 +48,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
48 |
* @since 1.0
|
49 |
* @var string
|
50 |
*/
|
51 |
-
const VERSION = '2.0.
|
52 |
|
53 |
/**
|
54 |
* Stores the instance of this class.
|
@@ -222,6 +222,12 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
222 |
|
223 |
$js_vars = array();
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
wp_register_style( 'ez-icomoon', EZ_TOC_URL . "vendor/icomoon/style$min.css", array(), ezTOC::VERSION );
|
226 |
wp_register_style( 'ez-toc', EZ_TOC_URL . "assets/css/screen$min.css", array( 'ez-icomoon' ), ezTOC::VERSION );
|
227 |
|
3 |
* Plugin Name: Easy Table of Contents
|
4 |
* Plugin URI: https://magazine3.company/
|
5 |
* Description: Adds a user friendly and fully automatic way to create and display a table of contents generated from the page content.
|
6 |
+
* Version: 2.0.19
|
7 |
* Author: Magazine3
|
8 |
* Author URI: https://magazine3.company/
|
9 |
* Text Domain: easy-table-of-contents
|
26 |
* @package Easy Table of Contents
|
27 |
* @category Plugin
|
28 |
* @author Magazine3
|
29 |
+
* @version 2.0.19
|
30 |
*/
|
31 |
|
32 |
use Easy_Plugins\Table_Of_Contents\Debug;
|
48 |
* @since 1.0
|
49 |
* @var string
|
50 |
*/
|
51 |
+
const VERSION = '2.0.19';
|
52 |
|
53 |
/**
|
54 |
* Stores the instance of this class.
|
222 |
|
223 |
$js_vars = array();
|
224 |
|
225 |
+
$isEligible = self::is_eligible( get_post() );
|
226 |
+
|
227 |
+
if ( ! $isEligible && ! is_active_widget( false, false, 'ezw_tco' ) ) {
|
228 |
+
return false;
|
229 |
+
}
|
230 |
+
|
231 |
wp_register_style( 'ez-icomoon', EZ_TOC_URL . "vendor/icomoon/style$min.css", array(), ezTOC::VERSION );
|
232 |
wp_register_style( 'ez-toc', EZ_TOC_URL . "assets/css/screen$min.css", array( 'ez-icomoon' ), ezTOC::VERSION );
|
233 |
|
includes/inc.string-functions.php
CHANGED
@@ -306,6 +306,8 @@ function mb_find_replace( &$find = false, &$replace = false, &$string = '' ) {
|
|
306 |
get_option( 'blog_charset' )
|
307 |
);
|
308 |
|
|
|
|
|
309 |
$start = mb_strpos( $string, $needle );
|
310 |
}
|
311 |
|
306 |
get_option( 'blog_charset' )
|
307 |
);
|
308 |
|
309 |
+
$needle = str_replace(array('’','“','”'), array('\'','"','"'), $needle);
|
310 |
+
|
311 |
$start = mb_strpos( $string, $needle );
|
312 |
}
|
313 |
|