[buddypress-trac] [BuddyPress Trac] #6343: Problem with is_page() conditional tag and member/groups single pages
buddypress-trac
noreply at wordpress.org
Thu Apr 2 19:10:37 UTC 2015
#6343: Problem with is_page() conditional tag and member/groups single pages
---------------------------------+-----------------------------
Reporter: kuperman87 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Members | Version: 2.2.1
Severity: normal | Keywords: needs-testing
---------------------------------+-----------------------------
I’ve tested default TwentyFifteen theme.
When I'm using i.e. the is_page('5') conditional tag for my widget, the
widget is visible on the page with id = 5, but also on all single member
and group pages.
I think that the problem is connected with the fact that body class on
each of single member/group pages looks like:
{{{
... page page-id-0 ...
}}}
in the previous version of BP, single member and group pages had id of the
parent page (i.e. Members, Groups) and the is_page() tag worked properly.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6343>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list