Changeset 61009 for trunk/src/wp-includes/blocks/navigation-link.php
- Timestamp:
- 10/21/2025 07:11:53 AM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/navigation-link.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation-link.php
r59775 r61009 14 14 * @param array $context Navigation block context. 15 15 * @param array $attributes Block attributes. 16 * @param bool $is_sub_menu Whether the link is part of a sub-menu. 16 * @param bool $is_sub_menu Whether the link is part of a sub-menu. Default false. 17 17 * @return array Colors CSS classes and inline styles. 18 18 */ … … 214 214 $is_active = ! empty( $attributes['id'] ) && get_queried_object_id() === (int) $attributes['id'] && ! empty( get_queried_object()->$kind ); 215 215 216 if ( is_post_type_archive() ) {216 if ( is_post_type_archive() && ! empty( $attributes['url'] ) ) { 217 217 $queried_archive_link = get_post_type_archive_link( get_queried_object()->name ); 218 218 if ( $attributes['url'] === $queried_archive_link ) {
Note: See TracChangeset
for help on using the changeset viewer.