From cbde70e87479621e171a0bd265018b3684f68150 Mon Sep 17 00:00:00 2001 From: happybooking Date: Thu, 8 Aug 2013 15:58:51 +0000 Subject: [PATCH] * Bug influence with SEO Plugin fixed / Bug numbering item list fixed --- extended-toc.php | 9 ++++++--- readme.txt | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/extended-toc.php b/extended-toc.php index f52c360..b6d57ae 100644 --- a/extended-toc.php +++ b/extended-toc.php @@ -3,7 +3,7 @@ Plugin Name: Extended Table of Contents (with nextpage support) Plugin URI: http://www.happybooking.de/wordpress/plugins/extended-toc Description: This plugin automatically generates and inserts a table of contents (ToC) to your pages and posts, based on tags h1-h6. Whenever the plugin discovers more than a certain amount of headings (default: 3) the ToC is inserted at the top of the page. This plugin also can handle posts that are divided into pages by the nextpage-wordpress-tag. By using the markups [extoc] you can decide where to insert the ToC. Also you can use a whitelist by disable general ToC insertion and insert the ToC to special pages/subpages/posts by [extoc]. Otherwise you can use a blacklist and disable the ToC only on special pages/subpages/posts by using the [noextoc] markup. Any feedback or suggestions are welcome. -Version: 0.8.1 +Version: 0.8.2 Author: HappyBooking UG // Daniel Boldura Author URI: http://www.happybooking.de/ @@ -34,7 +34,7 @@ Author URI: http://www.happybooking.de/ * 4. Config the ToC within a markup e.g. [extoc start=5 headers=1,2,3 title="My table of contents"] oder [extoc start=5 headers=1,2,3 notitle] */ -define( 'EXTENDED_TOC_VERSION', '0.8.1' ); +define( 'EXTENDED_TOC_VERSION', '0.8.2' ); define( 'EXTENDED_TOC_ID', 'extended_toc' ); define( 'EXTENDED_TOC_NAME', 'Extended-ToC' ); define( 'TOC_MIN_START', 2 ); @@ -76,7 +76,7 @@ if( !class_exists('ExToC') ) { } else { /** Add the content filter and enqueue css **/ - add_filter( 'the_content', array(&$this, 'the_content'), 10 ); + add_filter( 'the_content', array(&$this, 'the_content'), 100 ); add_action( 'wp_enqueue_scripts', array(&$this, 'wp_enqueue_scripts') ); } } @@ -222,6 +222,9 @@ if( !class_exists('ExToC') ) { public function the_content($content) { global $post; + // Reset the counter + $this->counter = array(); + if ( is_feed() ) return $content; diff --git a/readme.txt b/readme.txt index 8dec0db..793e238 100644 --- a/readme.txt +++ b/readme.txt @@ -39,6 +39,9 @@ If you have any questions or suggestions please contact us at any time: support@ == Changelog == += 0.8.2 = +* Bug influence with SEO Plugin fixed / Bug numbering item list fixed + = 0.8.1 = * Switch on/off the numbering of the list items (headers) * Anchor bugs fixed