Skip to content

Commit 34d710d

Browse files
author
Petter Walbø Johnsgård
authored
Merge pull request #20 from DekodeInteraktiv/link-title
Use `hogan_get_link_title` to get text on link
2 parents 1a990e1 + 1bf457a commit 34d710d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

class-linklist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function get_list_items( array $list ) : array {
201201
$items[] = [
202202
'href' => $item['link']['url'],
203203
'target' => $item['link']['target'],
204-
'title' => empty( $item['link']['title'] ) ? $item['link']['url'] : $item['link']['title'],
204+
'title' => hogan_get_link_title( $item['link'] ),
205205
];
206206
}
207207
break;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require": {
88
"php": ">=7.0",
99
"composer/installers": "~1.2",
10-
"dekodeinteraktiv/hogan-core": "^1.0"
10+
"dekodeinteraktiv/hogan-core": "^1.1.3"
1111
},
1212
"archive": {
1313
"exclude": [

0 commit comments

Comments
 (0)