Easy Table of Contents - Version 2.0.35.1

Version Description

10/31/2022 = * BUG: Last version removed sidebar & some other contents #329 * BUG: Apostrophes removed from content #328

Download this release

Release Info

Developer magazine3
Plugin Icon 128x128 Easy Table of Contents
Version 2.0.35.1
Comparing to
See all releases

Code changes from version 2.0.35 to 2.0.35.1

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: table of contents, toc
5
  Requires at least: 5.3
6
  Tested up to: 6.0
7
  Requires PHP: 5.6.20
8
- Stable tag: 2.0.35
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -105,6 +105,10 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
105
  4. Activate the plugin on the Plugins admin page.
106
 
107
  == Changelog ==
 
 
 
 
108
  = 2.0.35 10/29/2022 =
109
  * BUG: TOC shows on reload even if is closed #322
110
  * BUG: Sticky Toggle TOC Container is showing in footer on disabled TOC #317
5
  Requires at least: 5.3
6
  Tested up to: 6.0
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.0.35.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
105
  4. Activate the plugin on the Plugins admin page.
106
 
107
  == Changelog ==
108
+ = 2.0.35.1 10/31/2022 =
109
+ * BUG: Last version removed sidebar & some other contents #329
110
+ * BUG: Apostrophes removed from content #328
111
+
112
  = 2.0.35 10/29/2022 =
113
  * BUG: TOC shows on reload even if is closed #322
114
  * BUG: Sticky Toggle TOC Container is showing in footer on disabled TOC #317
easy-table-of-contents.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Table of Contents
4
  * Plugin URI: https://tocwp.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.35
7
  * Author: Magazine3
8
  * Author URI: https://tocwp.com/
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.35
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.35';
52
 
53
  /**
54
  * Stores the instance of this class.
3
  * Plugin Name: Easy Table of Contents
4
  * Plugin URI: https://tocwp.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.35.1
7
  * Author: Magazine3
8
  * Author URI: https://tocwp.com/
9
  * Text Domain: easy-table-of-contents
26
  * @package Easy Table of Contents
27
  * @category Plugin
28
  * @author Magazine3
29
+ * @version 2.0.35.1
30
  */
31
 
32
  use Easy_Plugins\Table_Of_Contents\Debug;
48
  * @since 1.0
49
  * @var string
50
  */
51
+ const VERSION = '2.0.35.1';
52
 
53
  /**
54
  * Stores the instance of this class.
includes/inc.string-functions.php CHANGED
@@ -384,31 +384,31 @@ if( ! function_exists('ezTOC_FilterString') ):
384
  // title needs to be converted to HTML entities.
385
  // @link https://stackoverflow.com/a/21801444/5351316
386
  // $return = htmlentities2( $return );
387
- $return = str_replace( array( '&', ' '), ' ', $return );
388
- $return = str_replace( array( '­' ),'', $return ); // removed silent hypen
389
 
390
  // $return = html_entity_decode( $string, ENT_QUOTES, get_option( 'blog_charset' ) );
391
 
392
  // remove non alphanumeric chars
393
  //$return = preg_replace( '/[^a-zA-Z0-9 \-_]*/', '', $return );
394
- $return = preg_replace( '/[\x00-\x1F\x7F]*/u', '', $return );
395
 
396
  // Dashes
397
  // Special Characters.
398
  // - (minus) - (dash) – (en dash) — (em dash)
399
- $return = str_replace(
400
- array( '-', '-', '–', '—' ),
401
- '-',
402
- $return
403
- );
404
 
405
  // Curley quotes.
406
  // ‘ (curly single open quote) ’ (curly single close quote) “ (curly double open quote) ” (curly double close quote)
407
- $return = str_replace(
408
- array( '‘', '’', '“', '”' ),
409
- '',
410
- $return
411
- );
412
 
413
  return $return;
414
  }
384
  // title needs to be converted to HTML entities.
385
  // @link https://stackoverflow.com/a/21801444/5351316
386
  // $return = htmlentities2( $return );
387
+ // $return = str_replace( array( '&', ' '), ' ', $return );
388
+ // $return = str_replace( array( '­' ),' ', $return ); // removed silent hypen
389
 
390
  // $return = html_entity_decode( $string, ENT_QUOTES, get_option( 'blog_charset' ) );
391
 
392
  // remove non alphanumeric chars
393
  //$return = preg_replace( '/[^a-zA-Z0-9 \-_]*/', '', $return );
394
+ // $return = preg_replace( '/[\x00-\x1F\x7F]*/u', '', $return );
395
 
396
  // Dashes
397
  // Special Characters.
398
  // - (minus) - (dash) – (en dash) — (em dash)
399
+ // $return = str_replace(
400
+ // array( '-', '-', '–', '—' ),
401
+ // '-',
402
+ // $return
403
+ // );
404
 
405
  // Curley quotes.
406
  // ‘ (curly single open quote) ’ (curly single close quote) “ (curly double open quote) ” (curly double close quote)
407
+ // $return = str_replace(
408
+ // array( '‘', '’', '“', '”' ),
409
+ // '',
410
+ // $return
411
+ // );
412
 
413
  return $return;
414
  }