wip
This commit is contained in:
@@ -86,7 +86,7 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
||||
$kind = empty( $attributes['kind'] ) ? 'post_type' : str_replace( '-', '_', $attributes['kind'] );
|
||||
$is_active = ! empty( $attributes['id'] ) && get_queried_object_id() === (int) $attributes['id'] && ! empty( get_queried_object()->$kind );
|
||||
|
||||
if ( is_post_type_archive() ) {
|
||||
if ( is_post_type_archive() && ! empty( $attributes['url'] ) ) {
|
||||
$queried_archive_link = get_post_type_archive_link( get_queried_object()->name );
|
||||
if ( $attributes['url'] === $queried_archive_link ) {
|
||||
$is_active = true;
|
||||
|
||||
Reference in New Issue
Block a user