Version Description
2019-10-11 = * Enhancements for more compatible with themes and plugins.
Download this release
Release Info
Developer | theluckywp |
Plugin | LuckyWP Table of Contents |
Version | 1.9.6 |
Comparing to | |
See all releases |
Code changes from version 1.9.5 to 1.9.6
- luckywp-table-of-contents.php +2 -2
- plugin/Plugin.php +4 -4
- readme.txt +4 -1
luckywp-table-of-contents.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: LuckyWP Table of Contents
|
4 |
Plugin URI: https://theluckywp.com/product/table-of-contents/
|
5 |
Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
|
6 |
-
Version: 1.9.
|
7 |
Author: LuckyWP
|
8 |
Author URI: https://theluckywp.com/
|
9 |
Text Domain: luckywp-table-of-contents
|
@@ -29,6 +29,6 @@ $lwptocAutoloader->register();
|
|
29 |
$lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
|
30 |
|
31 |
$config = require(__DIR__ . '/config/plugin.php');
|
32 |
-
(new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.9.
|
33 |
|
34 |
require_once __DIR__ . '/functions.php';
|
3 |
Plugin Name: LuckyWP Table of Contents
|
4 |
Plugin URI: https://theluckywp.com/product/table-of-contents/
|
5 |
Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
|
6 |
+
Version: 1.9.6
|
7 |
Author: LuckyWP
|
8 |
Author URI: https://theluckywp.com/
|
9 |
Text Domain: luckywp-table-of-contents
|
29 |
$lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
|
30 |
|
31 |
$config = require(__DIR__ . '/config/plugin.php');
|
32 |
+
(new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.9.6', __FILE__, 'lwptoc_');
|
33 |
|
34 |
require_once __DIR__ . '/functions.php';
|
plugin/Plugin.php
CHANGED
@@ -46,9 +46,9 @@ class Plugin extends BasePlugin
|
|
46 |
{
|
47 |
|
48 |
/**
|
49 |
-
* @var
|
50 |
*/
|
51 |
-
public $isTheContent =
|
52 |
|
53 |
/**
|
54 |
* Инициализация
|
@@ -87,7 +87,7 @@ class Plugin extends BasePlugin
|
|
87 |
*/
|
88 |
public function onTheContentTrue($content)
|
89 |
{
|
90 |
-
$this->isTheContent
|
91 |
return $content;
|
92 |
}
|
93 |
|
@@ -97,7 +97,7 @@ class Plugin extends BasePlugin
|
|
97 |
*/
|
98 |
public function onTheContentFalse($content)
|
99 |
{
|
100 |
-
$this->isTheContent
|
101 |
return $content;
|
102 |
}
|
103 |
|
46 |
{
|
47 |
|
48 |
/**
|
49 |
+
* @var int
|
50 |
*/
|
51 |
+
public $isTheContent = 0;
|
52 |
|
53 |
/**
|
54 |
* Инициализация
|
87 |
*/
|
88 |
public function onTheContentTrue($content)
|
89 |
{
|
90 |
+
$this->isTheContent++;
|
91 |
return $content;
|
92 |
}
|
93 |
|
97 |
*/
|
98 |
public function onTheContentFalse($content)
|
99 |
{
|
100 |
+
$this->isTheContent--;
|
101 |
return $content;
|
102 |
}
|
103 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://theluckywp.com/product/table-of-contents/
|
|
4 |
Tags: table of contents, toc, navigation, links, seo
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 1.9.
|
8 |
Requires PHP: 5.6.20
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -151,6 +151,9 @@ For non-English websites it is recommended to enable the `Intl` PHP extension.
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
154 |
= 1.9.5 — 2019-10-09 =
|
155 |
* Enhancements for more compatible with themes and plugins.
|
156 |
|
4 |
Tags: table of contents, toc, navigation, links, seo
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 1.9.6
|
8 |
Requires PHP: 5.6.20
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
151 |
|
152 |
== Changelog ==
|
153 |
|
154 |
+
= 1.9.6 — 2019-10-11 =
|
155 |
+
* Enhancements for more compatible with themes and plugins.
|
156 |
+
|
157 |
= 1.9.5 — 2019-10-09 =
|
158 |
* Enhancements for more compatible with themes and plugins.
|
159 |
|