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

Commit

Permalink
new filter and bump the version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Mar 12, 2016
1 parent d26c010 commit 24064b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion glossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions public/class-glossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 24064b1

Please # to comment.