---
date: 2025-04-21T10:48:14+00:00
modified: 2025-04-21T10:48:14+00:00
permalink: https://kaspars.net/note/mastodon-social-114376264569414164
post_type: note
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
---

# On April 21, 2025 at 13:48

The WP core navigation-link block doesn't support current-ancestor feature which was available in the legacy menu system.

Previously we had the following classes available:

– current-menu-ancestor  
– menu-item-has-children  
– current\_page\_ancestor

This render method no longer has any of that logic: <https://github.com/WordPress/gutenberg/blob/9122cc34fb1d972cdfc59614bf6f140a9b6f7d94/packages/block-library/src/navigation-link/index.php#L172-L295>

And there doesn't appear to be an issue for this in the repo.