Version Description
Requires WordPress >
Download this release
Release Info
Developer | shazahm1@hotmail.com |
Plugin | Easy Table of Contents |
Version | 2.0.17 |
Comparing to | |
See all releases |
Code changes from version 2.0.16 to 2.0.17
- README.txt +10 -3
- easy-table-of-contents.php +3 -3
- includes/class.widget-toc.php +5 -0
- includes/inc.plugin-compatibility.php +1 -1
README.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Easy Table of Contents ===
|
2 |
-
Contributors: shazahm1@hotmail.com
|
3 |
Donate link: https://connections-pro.com/
|
4 |
Tags: table of contents, toc
|
5 |
Requires at least: 5.3
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6.20
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -89,6 +89,10 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
|
|
92 |
= 2.0.16 02/01/2021 =
|
93 |
* TWEAK: Remove special characters such as fancy quotes, en and, em dashes when generating in-page anchor IDs.
|
94 |
|
@@ -458,3 +462,6 @@ Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
|
|
458 |
|
459 |
= 2.0.16 =
|
460 |
Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
|
|
|
|
|
|
1 |
=== Easy Table of Contents ===
|
2 |
+
Contributors: shazahm1@hotmail.com,magazine3
|
3 |
Donate link: https://connections-pro.com/
|
4 |
Tags: table of contents, toc
|
5 |
Requires at least: 5.3
|
6 |
+
Tested up to: 5.9.1
|
7 |
Requires PHP: 5.6.20
|
8 |
+
Stable tag: 2.0.17
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 2.0.17 03/26/2021 =
|
93 |
+
* TWEAK: Add additional check to prevent `Uncaught Error: Call to undefined function is_woocommerce()`.
|
94 |
+
* TWEAK: Ensure an instance of `ezTOC_Post ` is returned before accessing methods/properties.
|
95 |
+
|
96 |
= 2.0.16 02/01/2021 =
|
97 |
* TWEAK: Remove special characters such as fancy quotes, en and, em dashes when generating in-page anchor IDs.
|
98 |
|
462 |
|
463 |
= 2.0.16 =
|
464 |
Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 is recommended).
|
465 |
+
|
466 |
+
= 2.0.17 =
|
467 |
+
Requires WordPress >= 5.3 and PHP version >= 5.6.20 (>= 7.4 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 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.
|
52 |
|
53 |
/**
|
54 |
* 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.17
|
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.17
|
30 |
*/
|
31 |
|
32 |
use Easy_Plugins\Table_Of_Contents\Debug;
|
48 |
* @since 1.0
|
49 |
* @var string
|
50 |
*/
|
51 |
+
const VERSION = '2.0.17';
|
52 |
|
53 |
/**
|
54 |
* Stores the instance of this class.
|
includes/class.widget-toc.php
CHANGED
@@ -145,6 +145,11 @@ if ( ! class_exists( 'ezTOC_Widget' ) ) {
|
|
145 |
//$post = ezTOC_Post::get( get_the_ID() );//->applyContentFilter()->process();
|
146 |
$post = ezTOC::get( get_the_ID() );
|
147 |
|
|
|
|
|
|
|
|
|
|
|
148 |
/*
|
149 |
* Ensure the ezTOC content filter is not applied when running `the_content` filter.
|
150 |
*/
|
145 |
//$post = ezTOC_Post::get( get_the_ID() );//->applyContentFilter()->process();
|
146 |
$post = ezTOC::get( get_the_ID() );
|
147 |
|
148 |
+
/**
|
149 |
+
* @link https://wordpress.org/support/topic/fatal-error-when-trying-to-access-widget-area/
|
150 |
+
*/
|
151 |
+
if ( ! $post instanceof ezTOC_Post ) return;
|
152 |
+
|
153 |
/*
|
154 |
* Ensure the ezTOC content filter is not applied when running `the_content` filter.
|
155 |
*/
|
includes/inc.plugin-compatibility.php
CHANGED
@@ -541,7 +541,7 @@ add_filter(
|
|
541 |
|
542 |
$string = implode( '|', $active_plugins );
|
543 |
|
544 |
-
if ( FALSE !== stripos( $string, 'woocommerce.php' ) ) {
|
545 |
|
546 |
/** @noinspection PhpUndefinedFunctionInspection */
|
547 |
if ( is_woocommerce() ||
|
541 |
|
542 |
$string = implode( '|', $active_plugins );
|
543 |
|
544 |
+
if ( class_exists( 'WooCommerce' ) && FALSE !== stripos( $string, 'woocommerce.php' ) ) {
|
545 |
|
546 |
/** @noinspection PhpUndefinedFunctionInspection */
|
547 |
if ( is_woocommerce() ||
|