diff --git a/extended-toc.php b/extended-toc.php index 02741c2..5d46014 100644 --- a/extended-toc.php +++ b/extended-toc.php @@ -1,14 +1,14 @@ ' . __('Donate', EXTENDED_TOC_ID) . ''; + $links[] = '' . __('Donate', EXTENDED_TOC_ID) . ''; } return $links; @@ -306,7 +306,8 @@ if( !class_exists('ExToC') ) { 'title' => $this->options["heading_text"], ), $atts ) ); - $headers = preg_split('/[\s*,]+/i', $headers); + if( !is_array($headers) ) + $headers = preg_split('/[\s*,]+/i', $headers); if($start) $this->options['start'] = $start; if($headers) $this->options['heading_levels'] = $headers; diff --git a/readme.txt b/readme.txt index 3fb4f80..f137505 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://www.happybooking.de/wordpress/plugins/extended-toc/donate Tags: table of contents, indexes, toc, sitemap, cms, options, list, page listing, category listing Requires at least: 3.0.1 Tested up to: 3.6.1 -Stable tag: 0.9.0 +Stable tag: 0.9.5 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -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.9.3 = +* bugfix preg_split error + = 0.9.3 = * bugfix for headungs enumeration error