Changeset 3358628
- Timestamp:
- 09/09/2025 01:14:38 PM (7 months ago)
- Location:
- smarttoc-lite/trunk
- Files:
-
- 3 edited
-
includes/class-smarttoc-lite.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
smarttoc-lite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smarttoc-lite/trunk/includes/class-smarttoc-lite.php
r3349744 r3358628 198 198 public function inject_toc_into_content($content) 199 199 { 200 if (!is_singular()) { 200 $queried_id = function_exists('get_queried_object_id') ? (int) get_queried_object_id() : 0; 201 $current_id = get_the_ID(); 202 if (!is_singular() || !is_main_query() || !$current_id || ($queried_id && $current_id !== $queried_id) || is_feed() || (function_exists('is_rest') && is_rest())) { 201 203 return $content; 202 204 } 203 204 if (!is_main_query() || is_feed() || (function_exists('is_rest') && is_rest())) {205 return $content;206 }207 208 205 if (has_shortcode($content, 'smart_toc')) { 209 206 return $content; -
smarttoc-lite/trunk/readme.txt
r3349833 r3358628 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 74 74 == Changelog == 75 75 76 = 1.1.2 = 77 * Fix: TOC no longer appears in excerpts. 78 76 79 = 1.1.1 = 77 80 * Update: improved TOC list in live preview … … 96 99 == Upgrade Notice == 97 100 101 = 1.1.2 = 102 * Fixes TOC showing in excerpts. 103 98 104 = 1.1.1 = 99 105 * Update: improved TOC list in live preview -
smarttoc-lite/trunk/smarttoc-lite.php
r3349833 r3358628 4 4 * Plugin URI: https://wordpress.org/plugins/smarttoc-lite/ 5 5 * 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. 16 * Version: 1.1.2 7 7 * Author: SinergoData 8 8 * Author URI: https://sinergodata.com/ … … 26 26 * Plugin version. 27 27 */ 28 const VERSION = '1.1. 1';28 const VERSION = '1.1.2'; 29 29 30 30 /**
Note: See TracChangeset
for help on using the changeset viewer.