[buddypress-trac] [BuddyPress Trac] #6108: BuddyPress.org - 5 of the 7 navigation links are highlighted in all Member Profile pages

buddypress-trac noreply at wordpress.org
Thu Feb 12 04:31:34 UTC 2015


#6108: BuddyPress.org - 5 of the 7 navigation links are highlighted in all Member
Profile pages
------------------------------------+-----------------------------
 Reporter:  mercime                 |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  BuddyPress.org
Component:  Sites - BuddyPress.org  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:                          |
------------------------------------+-----------------------------

Comment (by r-a-y):

 As of BP 2.2, all BP pages are set to the page ID of zero.

 Using `is_page( 'ANYSLUG' )` on a single BP page with theme compatibility
 enabled will always return `true`.

 This is due to a bug with the `is_page()` function when a page ID is zero.

 The header for buddypress.org uses `is_page( 'PAGE_SLUG' )`:
 https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html
 /wp-content/themes/bb-base/header-nav.php

 This is a WP core bug: #WP24674.

 I've added a patch to the WP ticket for those that are interested:
 https://core.trac.wordpress.org/attachment/ticket/24674/24674.ray.patch

 In the meantime, switching to using a WP nav menu might fix this issue.

 This bug was also mentioned on the forums:
 https://buddypress.org/support/topic/version-2-2-0-and-is_page/

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6108#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list