Easy Table of Contents - Version 2.0

Version Description

02/01/2020 = * NEW: Major rewrite of all code and processing logic to make it faster and more reliable. * NEW: Support for the <!--nextpage--> tag. * NEW: Introduce helper functions for devs. * NEW: Support WPML. * NEW: Support Polylang. * NEW: Add filter to support the Rank Math plugin. * NEW: Introduce the ez_toc_maybe_apply_the_content_filter filter. * TWEAK: Improve translation compatibility. * TWEAK: Rework widget logic to allow multi-line TOC items, improve active item highlighting while removing the use of the jQuery Waypoints library. * TWEAK Add additional classes to TOC list items. * TWEAK: Add WOFF2 format for icon format and change font references in CSS. * TWEAK: Add font-display: swap for toggle icon. * TWEAK: Update JS Cookie to 2.2.1. * TWEAK: Update jQuery Smooth Scroll to 2.2.0. * TWEAK: Allow forward slash and angle brackets in headings and alternate headings. * TWEAK: Allow forward slash in excluded headings. * TWEAK: Remove new line/returns when matching excluded headings. * TWEAK: Simple transient cache to ensure a post is only processed once per request for a TOC. * TWEAK: Improve sanitization of alternate headings field value. * TWEAK: Deal with non-breaking-spaces in alternate headings. * TWEAK: Add the ability to exclude by selector content eligible to be included in the TOC. * TWEAK: Change the shortcode priority to a higher value. * TWEAK: Add filter to remove shortcodes from the content prior to the the_content filter being run to exclude shortcode content from being eligible as TOC items. * TWEAK: Add compatibility filters to remove shortcodes for Connections and Striking theme to remove them from eligible TOC item content. * TWEAK: Do not execute if root current filter is the wp_head or get_the_excerpt filters. * TWEAK: Add filter to exclude content by selector. * TWEAK: Move in-page anchor to after the heading instead of wrapping the heading to prevent conflicts with theme styling. * TWEAK: Utilize the ez_toc_exclude_by_selector filter the exclude the JetPack share buttons from eligible headings. * TWEAK: Remove the Elegant Themes Bloom plugin node from the post content before extracting headings. * TWEAK: Add compatibility filter for the Visual Composer plugin. * TWEAK: Utilize the ez_toc_exclude_by_selector filter the exclude the Starbox author heading from eligible headings. * I18N: Add wpml-config.xml file. * BUG: Correct option misspelling. * BUG: Do not need to run values for alternate and exclude headings thru wp_unslash() because update_post_meta() already does. * BUG: Do not need to run stripslashes() when escaping the alternate heading value. * BUG: Sanitize the excluded heading string before saving post meta. * DEV: Change PHP keywords to comply with PSR2. * DEV:Bump minimum PHP version to 5.6.20 which matches WP core.

Download this release

Release Info

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

Code changes from version 2.0-rc12 to 2.0

Files changed (2) hide show
  1. README.txt +2 -2
  2. easy-table-of-contents.php +3 -3
README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: table of contents, toc
5
  Requires at least: 5.2
6
  Tested up to: 5.3
7
  Requires PHP: 5.6.20
8
- Stable tag: 1.7.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -19,7 +19,7 @@ A user friendly, featured focused plugin which allows you to insert a table of c
19
  * Automatically generate a table of contents for your posts, pages and custom post types by parsing its contents for headers.
20
  * Supports the `<!--nextpage-->` tag.
21
  * Supports the Rank Math plugin.
22
- * Supports the Classic Editor, Gutenberg, Divi, Elementor, WPBakery Page Builder and Visual Composer page editors.
23
  * Optionally enable for pages and/or posts. Custom post types are supported, as long as their content is output with the `the_content()` template tag.
24
  * Optionally auto insert the table of contents into the page, selectable by enabled post type.
25
  * Provides many easy to understand options to configure when and where to insert the table of contents.
5
  Requires at least: 5.2
6
  Tested up to: 5.3
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
19
  * Automatically generate a table of contents for your posts, pages and custom post types by parsing its contents for headers.
20
  * Supports the `<!--nextpage-->` tag.
21
  * Supports the Rank Math plugin.
22
+ * Works with the Classic Editor, Gutenberg, Divi, Elementor, WPBakery Page Builder and Visual Composer page editors.
23
  * Optionally enable for pages and/or posts. Custom post types are supported, as long as their content is output with the `the_content()` template tag.
24
  * Optionally auto insert the table of contents into the page, selectable by enabled post type.
25
  * Provides many easy to understand options to configure when and where to insert the table of contents.
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-rc12
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-rc12
30
  */
31
 
32
  use function Easy_Plugins\Table_Of_Contents\String\mb_find_replace;
@@ -47,7 +47,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
47
  * @since 1.0
48
  * @var string
49
  */
50
- const VERSION = '2.0-rc12';
51
 
52
  /**
53
  * 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
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
30
  */
31
 
32
  use function Easy_Plugins\Table_Of_Contents\String\mb_find_replace;
47
  * @since 1.0
48
  * @var string
49
  */
50
+ const VERSION = '2.0';
51
 
52
  /**
53
  * Stores the instance of this class.