Version Description
Requires WordPress >
Download this release
Release Info
Developer | shazahm1@hotmail.com |
Plugin | Easy Table of Contents |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
- README.txt +8 -2
- easy-table-of-contents.php +3 -3
- includes/class.post.php +1 -1
README.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: shazahm1@hotmail.com
|
|
3 |
Donate link: http://connections-pro.com/
|
4 |
Tags: table of contents, toc
|
5 |
Requires at least: 5.2
|
6 |
-
Tested up to: 5.
|
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 |
|
@@ -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.4 03/16/2020 =
|
93 |
* NEW: Introduce the `ez_toc_container_class` filter.
|
94 |
* TWEAK: Slight rework to ezTOC container classes logic.
|
@@ -346,3 +349,6 @@ Requires WordPress >= 5.0 and PHP version >= 5.6.20 (>= 7.1 is recommended).
|
|
346 |
|
347 |
= 2.0.4 =
|
348 |
Requires WordPress >= 5.0 and PHP version >= 5.6.20 (>= 7.1 is recommended).
|
|
|
|
|
|
3 |
Donate link: http://connections-pro.com/
|
4 |
Tags: table of contents, toc
|
5 |
Requires at least: 5.2
|
6 |
+
Tested up to: 5.4
|
7 |
Requires PHP: 5.6.20
|
8 |
+
Stable tag: 2.0.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 2.0.5 03/27/2020 =
|
93 |
+
* BUG: Prevent possible "strpos(): Empty needle in" warnings when excluding nodes from TOC eligibility.
|
94 |
+
|
95 |
= 2.0.4 03/16/2020 =
|
96 |
* NEW: Introduce the `ez_toc_container_class` filter.
|
97 |
* TWEAK: Slight rework to ezTOC container classes logic.
|
349 |
|
350 |
= 2.0.4 =
|
351 |
Requires WordPress >= 5.0 and PHP version >= 5.6.20 (>= 7.1 is recommended).
|
352 |
+
|
353 |
+
= 2.0.5 =
|
354 |
+
Requires WordPress >= 5.0 and PHP version >= 5.6.20 (>= 7.1 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.
|
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 |
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.
|
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.5
|
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.5
|
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.5';
|
51 |
|
52 |
/**
|
53 |
* Stores the instance of this class.
|
includes/class.post.php
CHANGED
@@ -442,7 +442,7 @@ class ezTOC_Post {
|
|
442 |
|
443 |
foreach ( $this->excludedNodes as $node ) {
|
444 |
|
445 |
-
if ( empty( $node ) ) {
|
446 |
|
447 |
return false;
|
448 |
}
|
442 |
|
443 |
foreach ( $this->excludedNodes as $node ) {
|
444 |
|
445 |
+
if ( empty( $node ) || empty( $string ) ) {
|
446 |
|
447 |
return false;
|
448 |
}
|