Easy Table of Contents - Version 2.0.15

Version Description

Requires WordPress >

Download this release

Release Info

Developer shazahm1@hotmail.com
Plugin Icon 128x128 Easy Table of Contents
Version 2.0.15
Comparing to
See all releases

Code changes from version 2.0.14 to 2.0.15

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: table of contents, toc
5
  Requires at least: 5.3
6
  Tested up to: 5.6
7
  Requires PHP: 5.6.20
8
- Stable tag: 2.0.14
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -89,6 +89,9 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 2.0.14 01/26/2021 =
93
  * TWEAK: Refactor debug log as a Singleton.
94
  * TWEAK: Add additional logging to aid in debugging.
@@ -446,3 +449,6 @@ Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
446
 
447
  = 2.0.14 =
448
  Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
 
 
 
5
  Requires at least: 5.3
6
  Tested up to: 5.6
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.0.15
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
89
 
90
  == Changelog ==
91
 
92
+ = 2.0.15 01/27/2021 =
93
+ * TWEAK: Remove additional reserved characters when generating in-page anchor IDs.
94
+
95
  = 2.0.14 01/26/2021 =
96
  * TWEAK: Refactor debug log as a Singleton.
97
  * TWEAK: Add additional logging to aid in debugging.
449
 
450
  = 2.0.14 =
451
  Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
452
+
453
+ = 2.0.15 =
454
+ Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
easy-table-of-contents.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Table of Contents
4
  * Plugin URI: http://connections-pro.com/
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.14
7
  * Author: Steven A. Zahm
8
  * Author URI: http://connections-pro.com/
9
  * Text Domain: easy-table-of-contents
@@ -26,7 +26,7 @@
26
  * @package Easy Table of Contents
27
  * @category Plugin
28
  * @author Steven A. Zahm
29
- * @version 2.0.14
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.14';
52
 
53
  /**
54
  * Stores the instance of this class.
3
  * Plugin Name: Easy Table of Contents
4
  * Plugin URI: http://connections-pro.com/
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.15
7
  * Author: Steven A. Zahm
8
  * Author URI: http://connections-pro.com/
9
  * Text Domain: easy-table-of-contents
26
  * @package Easy Table of Contents
27
  * @category Plugin
28
  * @author Steven A. Zahm
29
+ * @version 2.0.15
30
  */
31
 
32
  use Easy_Plugins\Table_Of_Contents\Debug;
48
  * @since 1.0
49
  * @var string
50
  */
51
+ const VERSION = '2.0.15';
52
 
53
  /**
54
  * Stores the instance of this class.
includes/class.post.php CHANGED
@@ -812,7 +812,7 @@ class ezTOC_Post {
812
  // Reserved Characters.
813
  //* ' ( ) ; : @ & = + $ , / ? # [ ]
814
  $return = str_replace(
815
- array( '*', '\'', '(', ')', ';', '@', '&', '=', '+', '$', ',', '/', '[', ']' ),
816
  '',
817
  $return
818
  );
@@ -1361,10 +1361,10 @@ class ezTOC_Post {
1361
 
1362
  } elseif ( 1 === $page ) {
1363
 
1364
- return $this->permalink . '#' . $id;
1365
 
1366
  }
1367
 
1368
- return $this->permalink . $page . '/#' . $id;
1369
  }
1370
  }
812
  // Reserved Characters.
813
  //* ' ( ) ; : @ & = + $ , / ? # [ ]
814
  $return = str_replace(
815
+ array( '*', '\'', '(', ')', ';', '@', '&', '=', '+', '$', ',', '/', '?', '#', '[', ']' ),
816
  '',
817
  $return
818
  );
1361
 
1362
  } elseif ( 1 === $page ) {
1363
 
1364
+ return trailingslashit( $this->permalink ) . '#' . $id;
1365
 
1366
  }
1367
 
1368
+ return trailingslashit( $this->permalink ) . $page . '/#' . $id;
1369
  }
1370
  }