Thanks for logging this issue. I had the same problem. I’ve solved it without PHP, just jQuery.
For what it’s worth, here’s what it looks like:
<script>
jQuery(document).ready(function() {
if (jQuery('#bbpress-forums')) {
jQuery('.current_page_parent').toggleClass('current_page_parent').next().toggleClass('current_page_parent')
}
});
</script>
It deselects the “current page” and selects the next
one (which is the forum page, for me) as current. But only if #bbpress-forums
is on the page.
I’ve added this to the footer.php
file of my theme (GeneratePress), just before the </body>
statement.
Hackish, but given that it’s noted as a bug it’ll do for now.