File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
7
7
## [ Unreleased]
8
8
9
-
10
9
## [ Released]
11
10
11
+ ## [ 1.34.4] - 2021-10-14
12
+
13
+ ### Fixed
14
+ - Fix current menu item check on archive pages.
15
+
12
16
## [ 1.34.3] - 2021-09-30
13
- - Pagination parameter page_count didn't always return the right value. This update will fix it.
17
+
18
+ ### Fixed
19
+ - Pagination parameter page_count didn't always return the right value.
14
20
15
21
## [ 1.34.2] - 2021-08-09
16
22
@@ -22,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
22
28
### Fixed
23
29
- Fix archive pages for custom taxonomies when filtering with another taxonomy.
24
30
- Fix a variable typo
31
+
25
32
## [ 1.34.0] - 2021-06-10
26
33
27
34
### Changed
Original file line number Diff line number Diff line change @@ -292,6 +292,10 @@ private static function is_current( $item, $override ) {
292
292
$ return = ( $ item ->object_id == $ term_id && 'taxonomy ' == $ item ->type )
293
293
|| ( $ item ->object_id == $ override );
294
294
}
295
+ elseif ( \is_archive () ) {
296
+ $ return = ( 'post_type_archive ' == $ item ->type && \is_post_type_archive ( $ item ->object ) )
297
+ || ( $ item ->object_id == $ override );
298
+ }
295
299
else {
296
300
$ return = ( \get_the_ID () == $ item ->object_id
297
301
&& 'post_type ' == $ item ->type )
You can’t perform that action at this time.
0 commit comments