Version Description
Download this release
Release Info
Developer | shazahm1@hotmail.com |
Plugin | Easy Table of Contents |
Version | 2.0-rc5 |
Comparing to | |
See all releases |
Code changes from version 2.0-rc4 to 2.0-rc5
- README.txt +1 -0
- easy-table-of-contents.php +3 -3
- includes/inc.plugin-compatibility.php +15 -0
README.txt
CHANGED
@@ -119,6 +119,7 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
|
|
119 |
* TWEAK: Add filter to exclude content by selector.
|
120 |
* TWEAK: Move in-page anchor to after the heading instead of wrapping the heading to prevent conflicts with theme styling.
|
121 |
* TWEAK: Utilize the `ez_toc_exclude_by_selector` filter the exclude the JetPack share buttons from eligible headings.
|
|
|
122 |
* I18N: Add wpml-config.xml file.
|
123 |
* BUG: Correct option misspelling.
|
124 |
* BUG: Do not need to run values for alternate and exclude headings thru `wp_unslash()` because `update_post_meta()` already does.
|
119 |
* TWEAK: Add filter to exclude content by selector.
|
120 |
* TWEAK: Move in-page anchor to after the heading instead of wrapping the heading to prevent conflicts with theme styling.
|
121 |
* TWEAK: Utilize the `ez_toc_exclude_by_selector` filter the exclude the JetPack share buttons from eligible headings.
|
122 |
+
* TWEAK: Remove the Elegant Themes Bloom plugin node from the post content before extracting headings.
|
123 |
* I18N: Add wpml-config.xml file.
|
124 |
* BUG: Correct option misspelling.
|
125 |
* BUG: Do not need to run values for alternate and exclude headings thru `wp_unslash()` because `update_post_meta()` already does.
|
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-
|
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-
|
30 |
*/
|
31 |
|
32 |
// Exit if accessed directly
|
@@ -45,7 +45,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
45 |
* @since 1.0
|
46 |
* @var string
|
47 |
*/
|
48 |
-
const VERSION = '2.0-
|
49 |
|
50 |
/**
|
51 |
* 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-rc5
|
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-rc5
|
30 |
*/
|
31 |
|
32 |
// Exit if accessed directly
|
45 |
* @since 1.0
|
46 |
* @var string
|
47 |
*/
|
48 |
+
const VERSION = '2.0-rc5';
|
49 |
|
50 |
/**
|
51 |
* Stores the instance of this class.
|
includes/inc.plugin-compatibility.php
CHANGED
@@ -87,3 +87,18 @@ add_filter(
|
|
87 |
return $selectors;
|
88 |
}
|
89 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
return $selectors;
|
88 |
}
|
89 |
);
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Remove the Elegant Themes Bloom plugin node from the post content before extracting headings.
|
93 |
+
*
|
94 |
+
* @since 2.0
|
95 |
+
*/
|
96 |
+
add_filter(
|
97 |
+
'ez_toc_exclude_by_selector',
|
98 |
+
function( $selectors ) {
|
99 |
+
|
100 |
+
$selectors['elegant-themes-bloom'] = '.et_bloom_below_post';
|
101 |
+
|
102 |
+
return $selectors;
|
103 |
+
}
|
104 |
+
);
|