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

Commit d26c010

Browse files
committed
Merge pull request #26 from rasmustaarnby/master
Composer error and filter
2 parents 3d5059b + 9a2444e commit d26c010

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"authors": [
66
{
77
"name": "CodeAtCode",
8-
"email": "",
98
"homepage": "http://codeat.co/",
109
"role": "Developer"
1110
}

public/class-glossary.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,11 @@ public function tooltip_html( $link, $title, $post, $target, $nofollow, $interna
426426
if ( $internal ) {
427427
$readmore = '... <a href="' . get_the_permalink() . '">' . __( 'More' ) . '</a>';
428428
}
429-
$link_tooltip .= "\n" . '<span class="glossary-tooltip-text">' . $this->get_the_excerpt( $post ) . $readmore . '</span>'
429+
$excerpt = $this->get_the_excerpt( $post );
430+
$link_tooltip .= "\n" . '<span class="glossary-tooltip-text">' . $excerpt . $readmore . '</span>'
430431
. "\n" . '</span>'
431432
. "\n" . '</span>';
432-
return $link_tooltip;
433+
return apply_filters( 'glossary_tooltip_html', $link_tooltip, $title, $excerpt, $photo, $post, $target, $nofollow, $internal );
433434
}
434435

435436
/**

0 commit comments

Comments
 (0)