Skip to content

Commit

Permalink
Slugs: fix paged custom post types archives (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
spleen1981 authored May 10, 2023
1 parent 9816c76 commit 30c90b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/slugs/slugs.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function filter_request( $query ) {
}
}
if ( isset( $query['post_type'] ) ) {
if ( count( $query ) == 1 ) {
if ( count( $query ) == 1 || ( count( $query ) == 2 && ! empty( $query['paged'] ) ) ) {
$function = 'get_post_type_archive_link';
$id = $query['post_type'];
} else {
Expand Down

0 comments on commit 30c90b4

Please sign in to comment.