Change History (6)

current_page_parent is meant to make the menus work in a backwards-compatible way with the classes given to pages in lists, thanks to Walker_Page.

Specifically, Walker_Page, which generates the class names for many page lists, considers everything not a page to be a child of the "posts page." Maybe it shouldn't, but that's the behavior that would need to be changed first.

Instead, you can use the "current-menu-parent" class to specify elements that are parents of the currently-requested page, without this backwards-compatibility quirk.