Version Description
Download this release
Release Info
Developer | shazahm1@hotmail.com |
Plugin | Easy Table of Contents |
Version | 2.0-rc10 |
Comparing to | |
See all releases |
Code changes from version 2.0-rc9 to 2.0-rc10
- README.txt +1 -0
- easy-table-of-contents.php +3 -3
- includes/class.admin.php +1 -1
README.txt
CHANGED
@@ -124,6 +124,7 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
|
|
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.
|
126 |
* BUG: Do not need to run `stripslashes()` when escaping the alternate heading value.
|
|
|
127 |
* DEV: Change PHP keywords to comply with PSR2.
|
128 |
* DEV:Bump minimum PHP version to 5.6.20 which matches WP core.
|
129 |
|
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.
|
126 |
* BUG: Do not need to run `stripslashes()` when escaping the alternate heading value.
|
127 |
+
* BUG: Sanitize the excluded heading string before saving post meta.
|
128 |
* DEV: Change PHP keywords to comply with PSR2.
|
129 |
* DEV:Bump minimum PHP version to 5.6.20 which matches WP core.
|
130 |
|
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-rc10
|
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-rc10
|
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-rc10';
|
51 |
|
52 |
/**
|
53 |
* Stores the instance of this class.
|
includes/class.admin.php
CHANGED
@@ -416,7 +416,7 @@ if ( ! class_exists( 'ezTOC_Admin' ) ) {
|
|
416 |
$exclude = '';
|
417 |
}
|
418 |
|
419 |
-
update_post_meta( $post_id, '_ez-toc-exclude', $exclude );
|
420 |
|
421 |
} else {
|
422 |
|
416 |
$exclude = '';
|
417 |
}
|
418 |
|
419 |
+
update_post_meta( $post_id, '_ez-toc-exclude', wp_kses_data( $exclude ) );
|
420 |
|
421 |
} else {
|
422 |
|