Bug for permalinks fixed
This commit is contained in:
parent
09c7fc0401
commit
b14ec0a4b3
|
@ -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.5
|
||||
Version: 0.8.6
|
||||
Author: Daniel Boldura, HappyBooking UG
|
||||
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.5' );
|
||||
define( 'EXTENDED_TOC_VERSION', '0.8.6' );
|
||||
define( 'EXTENDED_TOC_ID', 'extended_toc' );
|
||||
define( 'EXTENDED_TOC_NAME', 'Extended-ToC' );
|
||||
define( 'TOC_MIN_START', 2 );
|
||||
|
@ -382,7 +382,7 @@ if( !class_exists('ExToC') ) {
|
|||
/** build html */
|
||||
$items .= '<li class="header-level-' . ($currentLevel - $this->minLevel + 1) . '">';
|
||||
// echo $currentLevel . ' - ' . $this->minLevel . ' <br>';
|
||||
$items .= '<a href="?p='.$this->ID.($pagenum>1?'&page='.$pagenum:'').'#' . $anchor . '">';
|
||||
$items .= '<a href="?p='.$this->ID.($pagenum>0?'&page='.$pagenum:'').'#' . $anchor . '">';
|
||||
|
||||
// Show numbers only if user wants it
|
||||
if( $this->options['number_list_items'] ) {
|
||||
|
|
|
@ -40,6 +40,9 @@ You can change the default settings and more under Plugins > Extended-ToC
|
|||
If you have any questions or suggestions please contact us at any time: support@happybooking.de or http://www.happybooking.de/
|
||||
|
||||
== Changelog ==
|
||||
= 0.8.6 =
|
||||
* Permalink bug not linking correctly to the first page of the ToC fixed
|
||||
|
||||
= 0.8.5 =
|
||||
* Bug in display of the HTML content in wordpress 3.5.0 fixed
|
||||
|
||||
|
|
Loading…
Reference in New Issue