[buddypress-trac] [BuddyPress] #4479: bp_is_page(BP_GROUPS_SLUG) return true in group home page

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Aug 28 09:40:33 UTC 2012

#4479: bp_is_page(BP_GROUPS_SLUG) return true in group home page
 Reporter:  megainfo      |      Owner:  MegaInfo
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.6
 Severity:  major         |   Keywords:  reporter-feedback

 Tested in : buddypress 1.6.1 + default theme

 I add this code in the content of members/single/home.php

 if ( bp_is_page(BP_MEMBERS_SLUG) ) :  echo [BP_MEMBERS_SLUG]" endif;
 if ( bp_is_member() ) : ech o"[bp_is_member]" endif;

 bp_is_page(BP_MEMBERS_SLUG)  return false, bp_is_member() return true.

 And in groups/single/home.php

 if ( bp_is_page(BP_GROUPS_SLUG) ) : echo "BP_GROUPS_SLUG" endif;
 if ( bp_is_group() ) : echo "bp_is_group" endif;

 bp_is_page(BP_GROUPS_SLUG)   return true  and bp_is_group() return true.

 I think bp_is_page(BP_GROUPS_SLUG) must return false in group home page ?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4479>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list