diff --git a/README.txt b/README.txt index 5a5bf8a..c373afe 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Donate link: http://codeat.com/ Tags: glossary, vocabulary, dictionary, tooltips Requires at least: 4.2 Tested up to: 4.4 -Stable tag: 1.0.3 +Stable tag: 1.0.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -77,6 +77,10 @@ Yes, we love Genesis Framework and we care about other Genesis fans. SEO, Layout == Changelog == += 1.0.4 = +* Fix to scan unlimit glossary terms +* New filters `glossary_tooltip_html` and `glossary_excerpt` + = 1.0.3 = * New settings to order the Glossary terms archive page alphabetically * Changed the CSS classes for the tooltip to avoid problems with CSS framework by Diego Betto diff --git a/glossary.php b/glossary.php index 2b1002c..796894a 100644 --- a/glossary.php +++ b/glossary.php @@ -11,7 +11,7 @@ * Plugin Name: Glossary * Plugin URI: http://codeat.co/glossary * Description: Easily add and manage a glossary with auto-link, tooltips and more. Improve your internal link building for a better SEO. - * Version: 1.0.3 + * Version: 1.0.4 * Author: Codeat * Author URI: http://codeat.co * Text Domain: glossary diff --git a/public/class-glossary.php b/public/class-glossary.php index f6dcd11..11337e5 100644 --- a/public/class-glossary.php +++ b/public/class-glossary.php @@ -395,9 +395,9 @@ public function search_string( $title ) { */ public function get_the_excerpt( $post ) { if ( empty( $post->post_excerpt ) ) { - return substr( wp_strip_all_tags( $post->post_content ), 0, intval( $this->settings[ 'excerpt_limit' ] ) ); + return apply_filters( 'glossary_excerpt', substr( wp_strip_all_tags( $post->post_content ), 0, intval( $this->settings[ 'excerpt_limit' ] ) ), $post ); } else { - return substr( wp_strip_all_tags( $post->post_excerpt ), 0, intval( $this->settings[ 'excerpt_limit' ] ) ); + return apply_filters( 'glossary_excerpt', substr( wp_strip_all_tags( $post->post_excerpt ), 0, intval( $this->settings[ 'excerpt_limit' ] ) ), $post ); } }