Plugin Directory

Changeset 3460020


Ignore:
Timestamp:
02/12/2026 02:21:11 PM (6 weeks ago)
Author:
sinergodata
Message:

Updated to version 1.1.3 - fixed spacing and sanitization

Location:
smarttoc-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smarttoc-lite/trunk/includes/generate-toc.php

    r3336003 r3460020  
    3333        $tag = strtolower($heading[1]);
    3434        $attrs = $heading[2];
    35         $text = wp_strip_all_tags($heading[3]);
     35        $text = preg_replace('/\s+/u', ' ', trim(html_entity_decode(wp_strip_all_tags($heading[3]))));
    3636
    3737        if (preg_match('/id=[\'"]([^\'"]+)[\'"]/i', $attrs, $id_match)) {
  • smarttoc-lite/trunk/readme.txt

    r3448557 r3460020  
    33Tags: table of contents, wordpress toc, block editor, accessibility, seo
    44Requires at least: 5.6 
    5 Tested up to: 6.9 
     5Tested up to: 6.9.1 
    66Requires PHP: 7.2 
    7 Stable tag: 1.1.2 
     7Stable tag: 1.1.3 
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7474== Changelog ==
    7575
     76= 1.1.3 =
     77* Fix: Removed extra spaces and improved text sanitization in TOC items.
     78
    7679= 1.1.2 =
    7780* Fix: TOC no longer appears in excerpts.
     
    99102== Upgrade Notice ==
    100103
     104= 1.1.3 =
     105* Fix: Removed extra spaces and improved text sanitization in TOC items.
     106
    101107= 1.1.2 =
    102108* Fixes TOC showing in excerpts.
  • smarttoc-lite/trunk/smarttoc-lite.php

    r3448557 r3460020  
    44 * Plugin URI: https://wordpress.org/plugins/smarttoc-lite/
    55 * Description: Create a responsive Table of Contents (TOC) for WordPress posts and pages. Features include automatic insertion, customizable styles, live preview, shortcode support, and accessibility.
    6  * Version: 1.1.2
     6 * Version: 1.1.3
    77 * Author: SinergoData
    88 * Author URI: https://sinergodata.com/
     
    2727         * Plugin version.
    2828         */
    29         const VERSION = '1.1.2';
     29        const VERSION = '1.1.3';
    3030
    3131        /**
Note: See TracChangeset for help on using the changeset viewer.