[buddypress-trac] [BuddyPress] #5043: Current page is single message check

buddypress-trac noreply at wordpress.org
Fri Jun 7 09:43:19 UTC 2013


#5043: Current page is single message check
--------------------------+-----------------------------
 Reporter:  henrywright   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The template tag reference has checks for the compose, inbox and sentbox
 pages:
 http://codex.buddypress.org/developer/developer-docs/template-tag-
 reference/

 {{{ bp_is_compose_screen }}}
 {{{ bp_is_sentbox }}}
 {{{bp_is_inbox }}}

 The documentation doesn't seem to detail a function which checks if the
 current page being viewed is the single message page. I am using the long
 way of doing it as my work around:

 {{{ if ( bp_is_current_component('messages') && (
 !bp_is_current_action('compose') && !bp_is_current_action('sentbox') &&
 !bp_is_current_action('inbox') ) ) }}}

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


More information about the buddypress-trac mailing list