Easy Table of Contents - Version 2.0-rc9

Version Description

Download this release

Release Info

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

Code changes from version 2.0-rc8 to 2.0-rc9

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-rc8
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-rc8
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-rc8';
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-rc9
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-rc9
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-rc9';
51
 
52
  /**
53
  * Stores the instance of this class.
includes/inc.plugin-compatibility.php CHANGED
@@ -174,3 +174,19 @@ add_filter(
174
  return $tags_to_remove;
175
  }
176
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  return $tags_to_remove;
175
  }
176
  );
177
+
178
+ /**
179
+ * Exclude the TOC shortcodes from being processed in the admin in the Divi Theme by Elegant Themes.
180
+ *
181
+ * @since 2.0
182
+ */
183
+ add_action(
184
+ 'et_pb_admin_excluded_shortcodes',
185
+ function( $shortcodes ) {
186
+
187
+ $shortcodes[] = 'ez-toc';
188
+ $shortcodes[] = apply_filters( 'ez_toc_shortcode', 'toc' );
189
+
190
+ return $shortcodes;
191
+ }
192
+ );