[buddypress-trac] [BuddyPress Trac] #5307: is_page() does not work on BP pages and class names are different

buddypress-trac noreply at wordpress.org
Wed Jan 15 21:42:09 UTC 2014


#5307: is_page() does not work on BP pages and class names are different
-------------------------------+-----------------------
 Reporter:  juggledad          |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  2.0
Component:  Core               |     Version:  1.9
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------

Comment (by henry.wright):

 Replying to [comment:14 r-a-y]:
 > henry.wright - Are you saying that `is_page( 'login' )` returns true on
 a user's "Messages" or "Settings" page?
 Yes. In fact, it is any BP component page - activity, settings, messages
 etc.

 It doesn't matter which page I check for i.e. 'login', 'contact', 'hello'
 - they all return {{{true}}} when on one of these BP component pages.

 Non-BP component areas of the site are unaffected. So for example, it
 returns {{{false}}} on the about me page {{{example.com/about/}}}

 I'm sure the conditional is set up properly.

 Could it be something like root profiles causing the problem? They're
 enabled.

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


More information about the buddypress-trac mailing list