File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ A simple breadcrumb package for Sage 10.
9
9
## Requirements
10
10
11
11
- [ Sage] ( https://github.com/roots/sage ) >= 10.0
12
- - [ PHP] ( https://secure.php.net/manual/en/install.php ) >= 7.3
12
+ - [ PHP] ( https://secure.php.net/manual/en/install.php ) >= 7.4
13
13
- [ Composer] ( https://getcomposer.org/download/ )
14
14
15
15
## Installation
Original file line number Diff line number Diff line change @@ -38,14 +38,15 @@ public function __construct(array $config)
38
38
protected function add ($ key , $ value = null , $ id = null , $ blog = false )
39
39
{
40
40
if (
41
- ( $ value === true && empty ( $ blog) || $ blog === true ) &&
41
+ $ blog === true &&
42
42
get_option ('show_on_front ' ) === 'page ' &&
43
43
! empty ($ blog = get_option ('page_for_posts ' )) &&
44
44
! empty ($ this ->config ['blog ' ])
45
45
) {
46
46
$ this ->add (
47
47
$ this ->config ['blog ' ],
48
- get_permalink ($ blog )
48
+ get_permalink ($ blog ),
49
+ $ blog
49
50
);
50
51
}
51
52
@@ -131,19 +132,25 @@ public function build()
131
132
if (is_month ()) {
132
133
return $ this ->add (
133
134
get_the_date ('F Y ' ),
135
+ null ,
136
+ null ,
134
137
true
135
138
);
136
139
}
137
140
138
141
if (is_year ()) {
139
142
return $ this ->add (
140
143
get_the_date ('Y ' ),
144
+ null ,
145
+ null ,
141
146
true
142
147
);
143
148
}
144
149
145
150
return $ this ->add (
146
151
get_the_date (),
152
+ null ,
153
+ null ,
147
154
true
148
155
);
149
156
}
You can’t perform that action at this time.
0 commit comments