Skip to content
This repository was archived by the owner on May 2, 2018. It is now read-only.

Commit 24064b1

Browse files
committed
new filter and bump the version
1 parent d26c010 commit 24064b1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: http://codeat.com/
44
Tags: glossary, vocabulary, dictionary, tooltips
55
Requires at least: 4.2
66
Tested up to: 4.4
7-
Stable tag: 1.0.3
7+
Stable tag: 1.0.4
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -77,6 +77,10 @@ Yes, we love Genesis Framework and we care about other Genesis fans. SEO, Layout
7777

7878
== Changelog ==
7979

80+
= 1.0.4 =
81+
* Fix to scan unlimit glossary terms
82+
* New filters `glossary_tooltip_html` and `glossary_excerpt`
83+
8084
= 1.0.3 =
8185
* New settings to order the Glossary terms archive page alphabetically
8286
* Changed the CSS classes for the tooltip to avoid problems with CSS framework by Diego Betto

glossary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: Glossary
1212
* Plugin URI: http://codeat.co/glossary
1313
* Description: Easily add and manage a glossary with auto-link, tooltips and more. Improve your internal link building for a better SEO.
14-
* Version: 1.0.3
14+
* Version: 1.0.4
1515
* Author: Codeat
1616
* Author URI: http://codeat.co
1717
* Text Domain: glossary

public/class-glossary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ public function search_string( $title ) {
395395
*/
396396
public function get_the_excerpt( $post ) {
397397
if ( empty( $post->post_excerpt ) ) {
398-
return substr( wp_strip_all_tags( $post->post_content ), 0, intval( $this->settings[ 'excerpt_limit' ] ) );
398+
return apply_filters( 'glossary_excerpt', substr( wp_strip_all_tags( $post->post_content ), 0, intval( $this->settings[ 'excerpt_limit' ] ) ), $post );
399399
} else {
400-
return substr( wp_strip_all_tags( $post->post_excerpt ), 0, intval( $this->settings[ 'excerpt_limit' ] ) );
400+
return apply_filters( 'glossary_excerpt', substr( wp_strip_all_tags( $post->post_excerpt ), 0, intval( $this->settings[ 'excerpt_limit' ] ) ), $post );
401401
}
402402
}
403403

0 commit comments

Comments
 (0)